setViewTarget
setViewTarget(
authority,player,entity):void
Makes entity the one player’s camera follows from the tick’s end,
or the scene’s camera with null: her kart as she gets in, the player
she watches while she waits, a cutscene’s rig. Her presence stays where
it is, so watching another moves no nameplate of hers. The last of a
setViewTarget and a control with viewTarget: true in one tick
wins. Takes the room’s step, requireAuthority, or a join hook’s step
for her and what her join spawned. A refusal throws in development and
is logged in a deployed room, which changes nothing. As Unreal’s
SetViewTarget.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
EntityAuthority |
player |
Entity |
entity |
Entity | null |
Returns
Section titled “Returns”void