- Joined
- Jun 12, 2007
- Messages
- 1,261
Oke, I made a trigger to circle around a terrain for selecting a map.
At start you get to map 1. When you press right or left you browse through the maps and circle around the center of the selected map.
The problem is that the very first time it rotates not around the point I tell him to, but at the edge.
At start you get to map 1. When you press right or left you browse through the maps and circle around the center of the selected map.
The problem is that the very first time it rotates not around the point I tell him to, but at the edge.
-
Show
-
Events
-
Time - Elapsed game time is 2.00 seconds
-
-
Conditions
-
Actions
-
Set Map = 1
-
Environment - Set fog to style Linear, z-start 0.00, z-end 7000.00, density 0.50 and color (60.00%, 60.00%, 100.00%)
-
Environment - Change water tinting color to (60.00%, 60.00%, 100.00%) with 0.00% transparency
-
Set TempCamPoint = (Center of Battle Zone 1 <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Camera - Set the camera bounds for (Picked player) to Battle Zone 1 <gen>
-
Camera - Pan camera for (Picked player) to TempCamPoint over 0.00 seconds
-
Camera - Rotate camera 360.00 degrees around TempCamPoint for (Picked player) over 60.00 seconds
-
-
-
Game - Display to (All players) for 30.00 seconds the text: (PlayerColor[7] + Temerai Forest)
-
Custom script: call RemoveLocation(udg_TempCamPoint)
-
-
-
Left
-
Events
-
Player - Player 1 (Red) Presses the Left Arrow key
-
-
Conditions
-
Actions
-
Custom script: call ClearTextMessages()
-
Set Map = (Map - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Map Equal to 0
-
-
Then - Actions
-
Set Map = 4
-
Set TempCamPoint = (Center of Battle Zone 4 <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Camera - Set the camera bounds for (Picked player) to Battle Zone 4 <gen>
-
Camera - Pan camera for (Picked player) to TempCamPoint over 0.00 seconds
-
Camera - Rotate camera 360.00 degrees around TempCamPoint for (Picked player) over 60.00 seconds
-
-
-
Game - Display to (All players) for 30.00 seconds the text: (PlayerColor[7] + Not Available)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Map Equal to 1
-
-
Then - Actions
-
Set TempCamPoint = (Center of Battle Zone 1 <gen>)
-
Environment - Set fog to style Linear, z-start 0.00, z-end 7000.00, density 0.50 and color (60.00%, 60.00%, 100.00%)
-
Environment - Change water tinting color to (60.00%, 60.00%, 100.00%) with 0.00% transparency
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Camera - Set the camera bounds for (Picked player) to Battle Zone 1 <gen>
-
Camera - Pan camera for (Picked player) to TempCamPoint over 0.00 seconds
-
Camera - Rotate camera 360.00 degrees around TempCamPoint for (Picked player) over 60.00 seconds
-
-
-
Game - Display to (All players) for 30.00 seconds the text: (PlayerColor[7] + Temerai Forest)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Map Equal to 2
-
-
Then - Actions
-
Set TempCamPoint = (Center of Battle Zone 2 <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Camera - Set the camera bounds for (Picked player) to Battle Zone 2 <gen>
-
Camera - Pan camera for (Picked player) to TempCamPoint over 0.00 seconds
-
Camera - Rotate camera 360.00 degrees around TempCamPoint for (Picked player) over 60.00 seconds
-
-
-
Game - Display to (All players) for 30.00 seconds the text: (PlayerColor[7] + Not Available)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Map Equal to 3
-
-
Then - Actions
-
Set TempCamPoint = (Center of Battle Zone 3 <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Camera - Set the camera bounds for (Picked player) to Battle Zone 3 <gen>
-
Camera - Pan camera for (Picked player) to TempCamPoint over 0.00 seconds
-
Camera - Rotate camera 360.00 degrees around TempCamPoint for (Picked player) over 60.00 seconds
-
-
-
Game - Display to (All players) for 30.00 seconds the text: (PlayerColor[7] + Not Available)
-
-
Else - Actions
-
-
-
-
-
-
-
-
Custom script: call RemoveLocation(udg_TempCamPoint)
-
-