Page 1 of 1

accessing clones properties

PostPosted: Tue Feb 27, 2007 9:28 am
by zoiba
I have some cloned objects in game as backround elements.
I wish some of them, sometimes, are colidable with player while are not collidable with enemies.
Flexible solution could be having a property, rapresented by an actor variable, that event actor can check collide actor for deciding if react to the collision or not.

Well, is there a way so that the event actor can access collide actor's variable from script?

Hope this make sense.

Thanks

PostPosted: Tue Feb 27, 2007 10:12 am
by DilloDude
Just use
Code: Select all
collide.variable
If you have a lot of properties to check, try setting up a single-integer system like in Fuzzy's 'Dealing with Qualities' thread. In my current project I am using this, even though I only have two states to check.

PostPosted: Tue Feb 27, 2007 5:27 pm
by zoiba
D'oh! I'm a stupid!
Many thanks DilloDude! :)