Skip to content

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.

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)

boolean

local x, y, z = GetEntityPos(beggar)
SetActorUseAt(beggar, "sit_ground", x, y, z, 90)

SetActorUse · StopActorUse · the Actor life group of the index