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

[Trigger] Help making this camera closer to unit.. It's frustrating.

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2009
Messages
94
The attachment holds the camera trigger.
It's like, in the unit, but not First Person like it should be.
Any ideas?
EDIT:Incase you just want the triggers.
  • Camera Point
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Rotation to ((Facing of Shoota 0001 <gen>) + 0.00) over 0.10 seconds
      • Camera - Set Player 1 (Red)'s camera Distance to target to 10.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 358.00 over 0.00 seconds
  • Camera Setup
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Camera - Lock camera target for Player 1 (Red) to Shoota 0001 <gen>, offset by (0.00, 0.00) using Default rotation
      • Camera - Set Player 1 (Red)'s camera Rotation to 90.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 358.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Distance to target to 10.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Field of view to 70.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Height Offset to 86.00 over 0.00 seconds
      • Selection - Select Shoota 0001 <gen> for Player 1 (Red)
 

Attachments

  • Dunno.w3x
    125.9 KB · Views: 41
Last edited:
Level 8
Joined
Aug 4, 2006
Messages
357
All you need to do is make the camera target in front of the unit instead of the unit itself. Try changing your triggers to the following (I used these values in a first person cam system in my map, so they should work). You need to make 2 global point variables CameraTarget, TempPoint.

  • Camera Point
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set TempPoint = (Position of Shoota 0001 <gen>)
      • Set CameraTarget = (TempPoint offset by 45.00 towards (Facing of Shoota 0001 <gen>) degrees)
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Shoota 0001 <gen>) over 0.03 seconds
      • Camera - Pan camera for Player 1 (Red) to CameraTarget over 0.03 seconds
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_CameraTarget)
The custom script is to remove point leaks that can cause your map to lag over time.
  • Camera Setup
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Rotation to 90.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 358.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Distance to target to 100.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Field of view to 70.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Height Offset to 86.00 over 0.00 seconds
      • Selection - Select Shoota 0001 <gen> for Player 1 (Red)
Edit: fixed the custom scripts. Thanks for catching that, ap0calpyse.
 
Last edited:
Level 28
Joined
Jan 26, 2007
Messages
4,789
It should be: "Custom script: call RemoveLocation(udg_[Your Variable])"
The "[Your Variable]" is the exact name of your location-variable (case sensitive)

You forgot the "udg_" ^^
(Probably caused due to the fact that JASS-script don't need the "udg_" prefix when you use local variables, but that's something for later :p)
 
Last edited:
Status
Not open for further replies.
Top