• 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.

About Actors {How is UnitBirth different from UnitBirth.UnitID}

Status
Not open for further replies.
Level 22
Joined
Feb 4, 2005
Messages
3,971
Afaik (not expert on actor events), Unit Birth, Create tells the current unit for which the actor refers to be created. Without it the unit may not appear at all so this is a main event. UnitBirth.UnitID(actor?) tells what actor to be created different from the current one, since the UnitBirth-Create doesn't specify a unit does it?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
But will unitbirth without reference to a unit result in creating the actor for EVERY unit that pops out?
Logic implies that it should. Unless a scope is specifily refined, it should take the largest possible scope which is the birth of all units.

There are technical limitations to the engine though that can break this rules. The engine only reserves a certain number of slots for global events. If many events are allocated to a global scope it is possible the slot pool will be depleted and so 1 or more might not function at all.
 
Status
Not open for further replies.
Top