Newbwc3
Sephiroth_VII
- Reaction score
- 157
QUOTE:
Ok let me get this straight, "Last created unit" refers only to the unit last created in the trigger that "last created unit" is put into? I thought "Last created unit" refers to the last created unit that is made by ANY trigger.
Also in "bj_lastCreatedUnit" what does bj stand for?
SOLVED
Code:
when you use GUI to create a unit, it sets the global bj_lastCreatedUnit to the created unit. (Last created unit) uses this global, and if you create a second unit between creating a unit and referring (Last created unit) in the same trigger, it will refer the wrong unit.
Ok let me get this straight, "Last created unit" refers only to the unit last created in the trigger that "last created unit" is put into? I thought "Last created unit" refers to the last created unit that is made by ANY trigger.
Also in "bj_lastCreatedUnit" what does bj stand for?
SOLVED