- Joined
- Jul 30, 2018
- Messages
- 445
Hey!
So, here's my trigger:
Is there a different way to get a player's current position of camera?
(And yeah, I know it leaks, I'm just testing at the moment!)
So, here's my trigger:
-
Order Attack East
-
Events
-
Conditions
-
Actions
-
For each (Integer LoopInteger_OrderUnit) from 1 to 21, do (Actions)
-
Loop - Actions
-
Custom script: if GetLocalPlayer() == udg_TempPlayer[0] then
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Grid[LoopInteger_OrderUnit] contains (Target of (Current camera))) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
LoopInteger_OrderUnit Not equal to 7
-
LoopInteger_OrderUnit Not equal to 14
-
LoopInteger_OrderUnit Not equal to 21
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(TempPlayer[0] is an ally of Player 13 (Maroon)) Equal to True
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units in Grid[LoopInteger_OrderUnit] owned by Player 13 (Maroon)) and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Attack-Move To (Center of Grid[(LoopInteger_OrderUnit + 1)])
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(TempPlayer[0] is an ally of Player 14 (Navy)) Equal to True
-
-
Then - Actions
-
Unit Group - Pick every unit in (Units in Grid[LoopInteger_OrderUnit] owned by Player 14 (Navy)) and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Attack-Move To (Center of Grid[(LoopInteger_OrderUnit + 1)])
-
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
Custom script: endif
-
-
-
-
Is there a different way to get a player's current position of camera?
(And yeah, I know it leaks, I'm just testing at the moment!)