Skip to content

Set Camera Target

Set Camera Target

Changes what the camera follows, such as an actor, a fixed coordinate, or the default party target.

Properties

System

Name Explanation Type
Fix Position to Coordinate Whether the camera is locked to a fixed coordinate position. Toggle
Follow Actor Whether the camera follows a specific actor. Toggle
Reset Target Whether to reset the camera target to the default party member. Toggle
Target The actor for the camera to follow. Actor Reference
X The X coordinate for the fixed camera position. Variable or Value
Y The Y coordinate for the fixed camera position. Variable or Value
Z The Z coordinate for the fixed camera position. Variable or Value

Examples

Set Camera to Follow Entity 0

This sets the camera to follow the actor referenced by entity index 0.

set_camera_target(entity(0));
{"Data":{"IsFixedPositionTarget":false,"IsResetTarget":false,"IsTargetingActorReference":true,"Target":{"ReferenceType":0,"Index":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Z":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapCameraSetTargetCommand"}

Set Camera to a Fixed Position

This locks the camera to a fixed coordinate position at (5, 0, 10).

set_camera_target(5, 0, 10);
{"Data":{"IsFixedPositionTarget":true,"IsResetTarget":false,"IsTargetingActorReference":false,"Target":{"ReferenceType":0,"Index":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"5","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Z":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"10","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapCameraSetTargetCommand"}

Reset Camera Target to Default Party Member

This resets the camera target back to the default, following the lead party member.

set_camera_target(reset);
{"Data":{"IsFixedPositionTarget":false,"IsResetTarget":true,"IsTargetingActorReference":false,"Target":{"ReferenceType":0,"Index":0,"Metadata":null},"X":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Y":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Z":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapCameraSetTargetCommand"}