[Command] cameraFocus

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post by Raddeck »

cameraFocus(Actor) and cameraFocus(x,y,z)


USE:
Makes the camera focus on the given actor or point.


TYPE: Command, Non-Ref
RETURNS: /
THEME: Camera
COMPARE: cameraMove()


EXAMPLE:

Code: Select all

cameraMove( 0, 0, 800 ) // Move camera to the middle of the room
cameraFocus(MainActor)  // Make cam point to the main actor
    
// OR
    
MainActor.show(40,5,0)  // Make main actor walk to the door
cameraFocus(40,5,200)   // Make the cam focus the door
// cameraFocus(MainActor)  // would not do the same, as the cam would focus on the position that the actor currently is at (not the destination)
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply