• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Camera

Status
Not open for further replies.
Level 5
Joined
Sep 27, 2011
Messages
141
I have just purchased starcraft 2 and am trying to make a mapwith a third person camera. I cannot use lock camera mouse relative mode as this does not work with my other triggers and stop moved mouse event from working is there any way around this I tried this but it doesnt work any ideas anyone?
  • Rotation
    • Events
      • UI - Player Any Player moves mouse.
    • Local Variables
      • Temp_Int = 0 <Integer>
    • Conditions
    • Actions
      • Camera - Lock camera mouse relative mode Off for player Temp_Int
      • Variable - Set Temp_Int = (Triggering player)
      • Variable - Set Rotation = (Mouse_X[Temp_Int] - (Mouse X position in the UI))
      • General - If (Conditions) then do (Actions) else do (Actions)
        • If
          • Rotation < 0
        • Then
          • Unit - Make Player_Hero[Temp_Int] face ((Facing of Player_Hero[Temp_Int]) + 3.0) over 0.0 seconds
        • Else
          • Unit - Make Player_Hero[Temp_Int] face ((Facing of Player_Hero[Temp_Int]) - 3.0) over 0.0 seconds
      • Trigger - Turn (Current trigger) Off
      • General - Wait 0.05 Game Time seconds
      • Camera - Lock camera mouse relative mode On for player Temp_Int
      • Trigger - Turn (Current trigger) On
Thanks.
 
Level 25
Joined
May 11, 2007
Messages
4,651
Camera - Lock camera mouse relative mode Off for player Temp_Int
Variable - Set Temp_Int = (Triggering player) <<-- Move this above the Camera lock, because you are currently locking it for player 0 every time someone moves their mouse.
 
Level 1
Joined
Mar 18, 2013
Messages
6
I use the 3rd person camera made by OneTwoSC from sc2mpaster ages ago spiced up by me a little. The problem is, when close to a cliff, the camera goes up and I can't make it ignore the cliffs and to move through them like it does through doodads - I think HotS also doesn't fix it . Still, it's a ready system. Download (rename extention to SC2Map)
 
Level 25
Joined
May 11, 2007
Messages
4,651
  • Camera - Lock camera mouse relative mode Off for player Temp_Int
  • Variable - Set Temp_Int = (Triggering player)

Move the Variable - Set Temp_int above the camera, currently you are locking the camera for player temp in, which is always 0 when you call the function.
  • Variable - Set Temp_Int = (Triggering player)
  • Camera - Lock camera mouse relative mode Off for player Temp_Int
Like this.
 
Status
Not open for further replies.
Top