Whats the easiest way to determine if Actor actually is AHuman? (not DropShip, for ex.) Also, is it possible to store actor's own variables? I mean, like:
Code:
for actor in actors actor.MyVariable = <value> end
To answer your questions: 1. if actor.ClassName == "AHuman" 2. Unfortunately no. However, you can store local variables within that for loop. i.e. for actor in MovableMan.Actors do local variable = property. This can only be accessed within the for loop and there will, I think, be a different variable for each actor in the loop. If not and it does get overwritten, it doesn't really make a difference since you can't access a local variable declared in a loop outside of it anyway.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum