Hey guys i have made this trigger but it doesn't work properly. anyone could help me with it?
-
Sun Light
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Set GroupType = (Units of type Sun Light)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (In-game time of day) Greater than or equal to 18.00
- (In-game time of day) Less than or equal to 6.00
-
Then - Actions
- Unit Group - Pick every unit in GroupType and do (Unit - Add Sun Light to (Triggering unit))
- Custom script: call DestroyGroup (udg_GroupType)
-
Else - Actions
- Unit Group - Pick every unit in GroupType and do (Unit - Remove Sun Light from (Triggering unit))
- Custom script: call DestroyGroup (udg_GroupType)
-
If - Conditions
-
Events