Referencing cloned objects
duggold
09 Jun 2012, 22:36I have a few monsters created in my first room, set as invisible. When someone enters a room, I run a script to randomly generate a monster. I clone it, move it to the players room and set it visible. I then want to setup AI timers to fire to move him around, attack etc. How do I reference the newly created object? I could have 10 ogres and need a unique ID or something to keep them straight.

Pertex
10 Jun 2012, 08:13the name of a cloned object is name +"1", the next clone's name is name +"2"
If you have an object ogre, his cloned brothers are ogre1, ogre2...
If you have an object ogre, his cloned brothers are ogre1, ogre2...
duggold
10 Jun 2012, 12:33Ah, that is a very important piece of info that should go into the wiki/help. Thanks for the info!