S
shadowvzs
Guest
Code:
Press Up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Player - Player 2 (Blue) Presses the Up Arrow key
Player - Player 3 (Teal) Presses the Up Arrow key
Player - Player 4 (Purple) Presses the Up Arrow key
Conditions
Actions
Set Tempory_nr[10] = 1
Trigger - Run Go Up <gen> (ignoring conditions)
Code:
Go Up
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
If ((Tempory_nr[10] Equal to 1) or ((Owner of CameraTarget[0]) Equal to [B]"Player who pressed the up key"[/B])) then do (Unit - Order CameraTarget[0] to Move To ((Position of CameraTarget[0]) offset by 300.00 towards (Facing of CameraTarget[0]) degrees)) else do (Do nothing)
Set Tempory_nr[10] = 0
Else - Actions
my problem is this row If ((Tempory_nr[10] Equal to 1) or ((Owner of CameraTarget[0]) Equal to "Player who pressed the up key")) then do (Unit - Order CameraTarget[0] to Move To ((Position of CameraTarget[0]) offset by 300.00 towards (Facing of CameraTarget[0]) degrees)) else do (Do nothing)
because i have 3 player,unit variable with different player, every player a unit, i want every player will control his unit.
cameratarget the unit variable array, signrace the player variable array
cameratarget(0)-signrace(0),cameratarget(1)-signrace(1),cameratarget(2)-signrace(2)