• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Destroy all actors of the same kind

Status
Not open for further replies.
Level 9
Joined
Dec 21, 2006
Messages
490
hi there

is there a way to destroy all other actors of one kind at the creation of one actor of the same kind?
i wanna have only 1 pickup text at once. i would like to send a actor msg to all actors of the same kind but there seem to be no data only solution to this.
 
  • Like
Reactions: Rui

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Apparently there is some way to cap the number of actor instance that can exist at any given time in the data editor.

You can definatly do this via script by destroying all previous actor instances of a certain type and then creating a new one where you want.
 
Level 9
Joined
Dec 21, 2006
Messages
490
having a cap of the same actor is easy but to have a cap of the same class of actors is hard. do you know how to do it?
currently i add a ::global.Text1 , ...Text2 ... reference to all text actors. then i added a makro that destroys all actors :global.Text1 ... , it works fine but i dunno if this affects performance and i have to add every text to the makro ( annoying somehow).
 
Status
Not open for further replies.
Top