OnPlayerCarryStart
A player began carrying a body - the grab starts.
After the grab was allowed (or ordered): the carrier’s game plays the grab, which takes about three seconds, then the carry.
Not run for a carry an NPC actor makes (ActorCarryEntity) - poll GetEntityCarrier for those. kind and id are as in OnPlayerCarry.
Syntax
Section titled “Syntax”function OnPlayerCarryStart(pid, kind, id) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the carrier |
kind |
string | "player", "corpse" or "actor" |
id |
number | the player’s id, or the entity id |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerCarryStart(pid, kind, id) Log(GetPlayerName(pid), "picks up", kind, id)endSee also
Section titled “See also”OnPlayerCarryEnd · OnPlayerCarry · the Carrying group of the index
