• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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: 39
Last edited:
Status
Not open for further replies.
Top