• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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