Is there a way I can modify the 'Unit - Any Unit Enters Region' event to work with variables? When I go to set the region in the trigger window, it wont let me bring up any of my variable regions.
I tried to use script as a workaround to add my events, but I'm getting an error. Is there a better way to do it or is something wrong?
Heres what I did:
General - While (Conditions) are true, do (Actions)
Conditions
i < 10
Actions
powerupRegions and weaponRegions are two size 10 region arrays that I am trying to add as a unit enters region event to my 'Pickups - PickupItem' trigger
Is there a way I can modify the 'Unit - Any Unit Enters Region' event to work with variables? When I go to set the region in the trigger window, it wont let me bring up any of my variable regions.
I tried to use script as a workaround to add my events, but I'm getting an error. Is there a better way to do it or is something wrong?
Heres what I did:
General - While (Conditions) are true, do (Actions)
Conditions
i < 10
Actions
powerupRegions and weaponRegions are two size 10 region arrays that I am trying to add as a unit enters region event to my 'Pickups - PickupItem' trigger
You would have to create a custom event, but at the moment it is broken what you have is workaround for that. you also need to put a small wait in there too like .05 at the start of your while loop.
Is there a way I can modify the 'Unit - Any Unit Enters Region' event to work with variables? When I go to set the region in the trigger window, it wont let me bring up any of my variable regions.
I tried to use script as a workaround to add my events, but I'm getting an error. Is there a better way to do it or is something wrong?
Heres what I did:
General - While (Conditions) are true, do (Actions)
Conditions
i < 10
Actions
General - Custom Script:
TriggerAddEventUnitRegion(gt_PickupspickupItem, null, gv_powerupRegions[lv_i], true)
General - Custom Script:
TriggerAddEventUnitRegion(gt_PickupspickupItem, null, gv_weaponRegions[lv_i], true)
Variable - Modify i: + 1
--------
powerupRegions and weaponRegions are two size 10 region arrays that I am trying to add as a unit enters region event to my 'Pickups - PickupItem' trigger
You would have to create a custom event, but at the moment it is broken what you have is workaround for that. you also need to put a small wait in there too like .05 at the start of your while loop.