> I'm make a shooting game where you shot targets. I am starting to rotate
> the targets using the rotation command.
>
> if w.model("targetStand01").isInWorld() > 0 then
> w.model("targetStand01").rotate(0,0,2)
> end if
>
> I thought this would take into account the fact that the model has been
> removed. Because I'm using the isInWorld() command. But after I hit the
> target and remove it I get an error saying that the model doesn't exist.
>
> Thanks in advanced
> Colin
I think you will find that this is because the reference to the model
itself doesn't exist ie you can't use a deleted object to check if that same
deleted object exists or not what you can say is
i think this could work
if w.model("targetStand01") = not(void) then
w.model("targetStand01").rotate(0,0,2)
end if
John
http://www.liquid-idea.com/john
m: +44 (0)7941 219093
e:[EMAIL PROTECTED]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]