SetActorUseAt
An activity anywhere - the actor at a place you name.
activity is an activity of the activities ("sit_ground", "pray_kneel" …); x, y, z and yaw say
where the actor is while in it, facing yaw degrees - on a seat, the seat’s surface. It walks there first.
Syntax
Section titled “Syntax”SetActorUseAt(id, activity, x, y, z, yaw)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
activity |
string | the activity’s name |
x |
number | metres |
y |
number | metres |
z |
number | metres |
yaw |
number | degrees (0 = +Y, counter-clockwise) |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”local x, y, z = GetEntityPos(beggar)SetActorUseAt(beggar, "sit_ground", x, y, z, 90)See also
Section titled “See also”SetActorUse · StopActorUse · the Actor life group of the index
