I put several of the same type of creatures into an area (generic wolves and bears - just whatever was available in the toolset), but I don't want them to show up in the area until a plot condition has been met. The problem is that they all have the same tags, so the way I'd normally do it for a unique object doesn't work. What's the best way to script this?
set array of objects active?
Débuté par
Karma
, août 01 2010 03:23
#1
Posté 01 août 2010 - 03:23
#2
Posté 01 août 2010 - 09:12
UT_TeamAppears.
#3
Posté 01 août 2010 - 07:39
Alternatively, GetObjectByTag also has an optional index argument, which you could probably loop on until it returns an invalid object.
#4
Posté 02 août 2010 - 02:25
Thanks for your help - both of you.
UT_TeamAppears is exactly what I was looking for. I knew there had to be a function to set an entire team active rather than just one creature at a time, but I just couldn't find it in the listing. Thanks again.
UT_TeamAppears is exactly what I was looking for. I knew there had to be a function to set an entire team active rather than just one creature at a time, but I just couldn't find it in the listing. Thanks again.
#5
Posté 02 août 2010 - 07:13
UT_TeamAppears is the easiest, but if you wanted to use teams for some other purpose and the tags are all the same, GetObjectsInArea(oArea, "Your_tag") would return an array you could cycle through.





Retour en haut







