• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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

Last edited:
Status
Not open for further replies.
Back
Top