• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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?
 
Level 14
Joined
Nov 17, 2010
Messages
1,265
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 --------
 
Level 3
Joined
May 26, 2014
Messages
41
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?
 
Level 14
Joined
Nov 17, 2010
Messages
1,265
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.
Top