ActorCarryPlayer
Has an NPC actor carry a player.
The player shows knocked out for the carry and wakes after it, unless the mode knocked them out (SetPlayerKnockedOut). The same rules as
CarryPlayer; false when the actor is not a standing NPC actor, either is busy, or the player’s game cannot be carried.
IsPlayerCarried and GetPlayerCarriedBy tell it is going on.
Syntax
Section titled “Syntax”ActorCarryPlayer(actorId, pid)| Parameter | Type | |
|---|---|---|
actorId |
number | the NPC actor that carries |
pid |
number | the player |
Returns
Section titled “Returns”boolean - true when the grab started
Example
Section titled “Example”SetPlayerKnockedOut(pid, true, 60)ActorCarryPlayer(guard, pid)See also
Section titled “See also”ActorCarryEntity · ActorPutDown · GetPlayerCarriedBy · the Carrying group of the index
