Skip to content

Function: setObjectLookAtAnotherObject() ​

ts
function setObjectLookAtAnotherObject(object: game_object, target: game_object): void;

Point one object's sight direction at another object's current position.

Parameters ​

ParameterTypeDescription
objectgame_objectObject whose sight direction is updated.
targetgame_objectObject to look at.

Returns ​

void