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

[General] RPG Camera that stop at cliffs and walls

Status
Not open for further replies.
I made an RPG camera that works fine, but the only problem is that when it rotates and there is a cliff, the hero hides from view. Is there a way to make the camera stop rotating when it is about to hit a wall?

  • Ordered Camera
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(smart))
          • (Issued order) Equal to (Order(move))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Rotation of the current camera view) Not equal to (Facing of (Triggering unit))
        • Then - Actions
          • Camera - Set (Owner of (Triggering unit))'s camera Rotation to (Facing of (Triggering unit)) over 1.00 seconds
        • Else - Actions
EDIT:

So the camera should not rotate when there is a cliff behind the hero when he is ordered to move
 

Attachments

  • RPG cam.w3x
    19.5 KB · Views: 34
Last edited:
Status
Not open for further replies.
Top