AlicanC
New Member
- Reaction score
- 2
In my map if a player enters "-camera 1" this trigger gets enabled:
This works perfect; but now I want to make a command "-camera normal" to teke the camera back to normal; but this doesn't work:
What now!?!?
Code:
Camera Copy
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
-------- Third-Person camera --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Last_Camera Equal to 1
Then - Actions
Set Last_UnitGroup = (Units owned by Last_Player matching (((Matching unit) is selected by Last_Player) Equal to True))
Set Last_Integer = (Number of units in Last_UnitGroup)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Last_Integer Equal to 1
Then - Actions
Set Last_Unit = (Random unit from Last_UnitGroup)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Hero_Picked[(Player number of Last_Player)] Equal to True
Hero_Alive[(Player number of Last_Player)] Equal to True
Then - Actions
Set Last_Unit = Hero[(Player number of Last_Player)]
Else - Actions
Skip remaining actions
Camera - Pan camera for Last_Player to (Position of Last_Unit) over 1.00 seconds
Camera - Lock camera target for Last_Player to Last_Unit, offset by (0.00, 0.00) using Default rotation
Camera - Set Last_Player's camera Distance to target to 1100.00 over 0.75 seconds
Camera - Set Last_Player's camera Angle of attack to -20.00 over 0.75 seconds
Camera - Set Last_Player's camera Rotation to (Facing of Last_Unit) over 0.75 seconds
Else - Actions
Do nothing
Code:
Camera Copy
Events
Blah blah
Conditions
Actions
Camera - Pan camera for Last_Player to (Position of Last_Unit) over 1.00 seconds
Camera - Lock camera target for Last_Player to Last_Unit, offset by (0.00, 0.00) using Default rotation
Camera - Set Last_Player's camera Distance to target to 1100.00 over 0.75 seconds
Camera - Set Last_Player's camera Angle of attack to -20.00 over 0.75 seconds
Camera - Set Last_Player's camera Rotation to (Facing of Last_Unit) over 0.75 seconds
What now!?!?