On Sat, 27 May 2006 15:47:20 +0200
Jan Filip Tristan <[EMAIL PROTECTED]> wrote:
> Am Freitag, 26. Mai 2006 20:38 schrieben Sie:
>
> > hum, what is this "give_info" method your are wanting to call ?
>
> I've send you a piece of my game.
> In Player is the code:
> r[0].parent.schuss(self)
> When you run into the katapullt you get the error.
Actually r[0].parent is the object hit by the ray, which may not be the
catapult, but e.g. the Cal3DVolume inside the catapult.
You should do something like :
i = r[0].parent
while i:
if hasattr(i, "schuss"):
i.schuss(self)
break
i = i.parent
BTW nice game ;-)
Jiba
_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user