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
| Parameter | Type | Description |
|---|---|---|
object | game_object | Object whose sight direction is updated. |
target | game_object | Object to look at. |
Returns
void