- Joined
- Sep 25, 2013
- Messages
- 792
I'm making a mult-level city out of walkable doodads and I need a camera system which will change a players camera height depending on which level of the city their camera is centered on. I currently have this, but how do I make it functional for multiple players? I don't know anything about custom scripts, I found this trigger on another post. Is the "set udg_CamX = GetCameraTargetPositionX()" function running for each player or how is it working?
-
Untitled Trigger 001 Copy
-

Events
-


Time - Every 0.10 seconds of game time
-
-

Conditions
-

Actions
-


Custom script: set udg_CamX = GetCameraTargetPositionX()
-


Custom script: set udg_CamY = GetCameraTargetPositionY()
-


Set VariableSet TempPoint = (Point(CamX, CamY))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






(Region 000 <gen> contains TempPoint) Equal to True
-






(Region 002 <gen> contains TempPoint) Equal to True
-
-
-
-



Then - Actions
-




Camera - Set Player 1 (Red)'s camera Distance to target to 2000.00 over 0.50 seconds
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Region 001 <gen> contains TempPoint) Equal to True
-
-



Then - Actions
-




Camera - Set Player 1 (Red)'s camera Distance to target to 3000.00 over 0.50 seconds
-
-



Else - Actions
-
-


Custom script: call RemoveLocation(udg_TempPoint)
-
-


