Move Camera to a position and then back.

Status
Not open for further replies.
Level 3
Joined
May 26, 2014
Messages
41
Hello, i'm making an anti maphack system and for that i need the camera to apply to a certain point at the map and then get back to where it was before. Is there a way for camera to go back after viewing the location that i need? Couldnt find that in the triggers. To move the camera to the point i use Apply camera trigger. Could anyone help?
 
Save the point in the center of the visible area before moving the camera. Then move the camera back to that point when you are done.

  • Wonderful Camera Trigger
    • Events
    • Conditions
    • Actions
      • Set Cam_Point = (Target of current camera view)
      • Camera - Apply Your_Cam for Player 1 (Red) over 0.00 seconds
      • -------- Do stuff --------
      • Camera - Pan camera for Player 1 (Red) to Cam_Point over 0.00 seconds
      • -------- Remove Leaks and such --------
 
Save the point in the center of the visible area before moving the camera. Then move the camera back to that point when you are done.

  • Wonderful Camera Trigger
    • Events
    • Conditions
    • Actions
      • Set Cam_Point = (Target of current camera view)
      • Camera - Apply Your_Cam for Player 1 (Red) over 0.00 seconds
      • -------- Do stuff --------
      • Camera - Pan camera for Player 1 (Red) to Cam_Point over 0.00 seconds
      • -------- Remove Leaks and such --------
Oh, thanks a lot, can I do that to all of the players at once? Or I can't set the current camera view of all of them?
 
I guess I'm not sure about different players. I'm so used to doing stuff for a single player campaign that I don't think about MUI or MPI stuff (Multi Unit Instancability) (Multi Player Instancability)
 
Status
Not open for further replies.
Back
Top