MissKerrigan
Active Member
- Reaction score
- 23
Hello Guys,
I got about 100 pylons in my game
I created 4 regions of 2x2 but circled regions and called them:
- marine 1 follow
- marine 2 follow
- marine 3 follow
- marine 4 follow
These regions follows the marine of the players if they are in game
For so far this works...
Now I made a trigger that makes the pylon the color of the player that moved his marine to it
But the pylon must turn neutral if the marine leaves the pylon
Question 1: does the trigger below works?
event: unit leaves 'marine 1 follow'
event: unit leaves 'marine 2 follow'
event: unit leaves 'marine 3 follow'
event: unit leaves 'marine 4 follow'
condition: unit type of unit is 'pylon'
action: change player color of 'triggering unit' to 'player 0 (white)'
Question 2: if a marine of player 2 controls a pylon and a marine of player 3 enters the pylon, how do I stop the pylon changing to player 3??
MissKerrigan
I got about 100 pylons in my game
I created 4 regions of 2x2 but circled regions and called them:
- marine 1 follow
- marine 2 follow
- marine 3 follow
- marine 4 follow
These regions follows the marine of the players if they are in game
For so far this works...
Now I made a trigger that makes the pylon the color of the player that moved his marine to it
But the pylon must turn neutral if the marine leaves the pylon
Question 1: does the trigger below works?
event: unit leaves 'marine 1 follow'
event: unit leaves 'marine 2 follow'
event: unit leaves 'marine 3 follow'
event: unit leaves 'marine 4 follow'
condition: unit type of unit is 'pylon'
action: change player color of 'triggering unit' to 'player 0 (white)'
Question 2: if a marine of player 2 controls a pylon and a marine of player 3 enters the pylon, how do I stop the pylon changing to player 3??
MissKerrigan