• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,198
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