BlightWarden
New Member
- Reaction score
- 6
Can I use the same variable for multipul actions, even if they are all happening at once or will I need a new variable for each action?
Situation:
I have multipul regions where units will spawn, I am spawning them in Temp_point_A. Can Temp_Point_A be used by more than one trigger at the same time? If I kill a creep in region A and you kill a creep in region B and both spawn at the same time, will it work if I only use a single variable? Do we share?
Trigger exsamples. (These units spawn in different regions using the same point variable. Both spawn at the same time? Will it work?
I just want to know if I can use a single variable to clean all the spawn leaks or if I will need Temp_Point A,B,C and so on.
Thanks for any and all replies.
[edit] Can't slip nothing past you guys! Fixed triggers.
Situation:
I have multipul regions where units will spawn, I am spawning them in Temp_point_A. Can Temp_Point_A be used by more than one trigger at the same time? If I kill a creep in region A and you kill a creep in region B and both spawn at the same time, will it work if I only use a single variable? Do we share?
Trigger exsamples. (These units spawn in different regions using the same point variable. Both spawn at the same time? Will it work?
Trigger:
- Creep Spawner A
- Events
- Conditions
- Actions
- Set Temp_point_A = (Center of (Playable map area))
- Unit - Create 1 Footman for Player 1 (Red) at Temp_point_A facing Default building facing degrees
- Custom script: call RemoveLocation (udg_Temp_Point_A)
Trigger:
- Creep Spawner B
- Events
- Conditions
- Actions
- Set Temp_point_A = (Center of (Playable map area))
- Unit - Create 1 Knight for Player 2 (Blue) at Temp_point_A facing Default building facing degrees
- Custom script: call RemoveLocation (udg_Temp_Point_A)
I just want to know if I can use a single variable to clean all the spawn leaks or if I will need Temp_Point A,B,C and so on.
Thanks for any and all replies.
[edit] Can't slip nothing past you guys! Fixed triggers.