- Joined
- Jun 27, 2010
- Messages
- 2,763
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?
So the camera should not rotate when there is a cliff behind the hero when he is ordered to move
-
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
-
-
-
So the camera should not rotate when there is a cliff behind the hero when he is ordered to move
Attachments
Last edited: