| 11-29-2003, 05:38 PM | #1 |
How can I set up a trigger to spawn another trigger that uses a local variable generated in the parent in the condition of the child trigger. Here is the sadly unworking version of what I want: Code:
set unload = CreateTrigger( )
call TriggerAddCondition( unload, [b]Condition( GetTriggerUnit==myLocalUnit )[/b] ) |
| 11-29-2003, 06:53 PM | #2 |
What you wanted to do would never work, as the function condition takes type code, which is a function name. Right now, I don't know any other solution than storing the unit to some global var (you can use existing blizzard.j globals for that). |
