Freespace03
New Member
- Reaction score
- 0
Hi everybody I've made this and can't seem to make Warcraft recognize the "SpectateModifier" variable, meaning I can't destroy the visibility modifier in another trigger. Is the issue visible in the trigger below? Any help and info is greatly appreciated.
Trigger:
- Vision
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) is A Hero) Equal to True
- Actions
- Set VisionCheckPlayer = (Owner of (Dying unit))
- Set VisionCheck1 = (Units in CurrentArena <gen> matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an ally of VisionCheckPlayer) Equal to True))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in VisionCheck1) Equal to 0
- Then - Actions
- Visibility - Destroy SpectateModifier
- Player Group - Add VisionCheckPlayer to SpectatingPlayers
- Player Group - Pick every player in SpectatingPlayers and do (Actions)
- Loop - Actions
- Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across CurrentArena <gen>
- Set SpectateModifier = (Last created visibility modifier)
- Loop - Actions
- Else - Actions
- If - Conditions
- Events