Aller au contenu

Photo

set array of objects active?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Karma

Karma
  • Members
  • 391 messages
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?

#2
Proleric

Proleric
  • Members
  • 2 354 messages
UT_TeamAppears.

#3
FollowTheGourd

FollowTheGourd
  • Members
  • 572 messages
Alternatively, GetObjectByTag also has an optional index argument, which you could probably loop on until it returns an invalid object.

#4
Karma

Karma
  • Members
  • 391 messages
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.

#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
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.