• 🏆 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!

[Trigger] 3rd person camera problem

Status
Not open for further replies.
Level 11
Joined
Apr 17, 2011
Messages
302
So basically this is the error

Capture.jpg


And this is the trigger


  • CameraSet
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set temp_point[0] = (Position of CameraUnit[1])
      • Custom script: set udg_CamHeight[1] = GetLocationZ(udg_temp_point[0])
      • Custom script: set udg_Z_camera = GetLocationZ(udg_temp_point[0])
      • Camera - Set Player 1 (Red)'s camera Distance to target to 600.00 over 0.50 seconds
      • Camera - Set Player 1 (Red)'s camera Height Offset to (Z_camera + 90.00) over 0.50 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.50 seconds
      • Camera - Lock camera target for Player 1 (Red) to CameraUnit[1], offset by (0.00, 0.00) using The unit's rotation
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of CameraUnit[1]) over 0.50 seconds
      • Custom script: call RemoveLocation(udg_temp_point[0])
Anyone know what's wrong? and how to fix it?
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
So basically this is the error

Capture.jpg


And this is the trigger


  • CameraSet
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set temp_point[0] = (Position of CameraUnit[1])
      • Custom script: set udg_CamHeight[1] = GetLocationZ(udg_temp_point[0])
      • Custom script: set udg_Z_camera = GetLocationZ(udg_temp_point[0])
      • Camera - Set Player 1 (Red)'s camera Distance to target to 600.00 over 0.50 seconds
      • Camera - Set Player 1 (Red)'s camera Height Offset to (Z_camera + 90.00) over 0.50 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 350.00 over 0.50 seconds
      • Camera - Lock camera target for Player 1 (Red) to CameraUnit[1], offset by (0.00, 0.00) using The unit's rotation
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of CameraUnit[1]) over 0.50 seconds
      • Custom script: call RemoveLocation(udg_temp_point[0])
Anyone know what's wrong? and how to fix it?

CamHeight is the correct name? coz maybe u created it with a bit different name
 
Status
Not open for further replies.
Top