Skip to content

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.

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

nothing

function OnPlayerCarryStart(pid, kind, id)
Log(GetPlayerName(pid), "picks up", kind, id)
end

OnPlayerCarryEnd · OnPlayerCarry · the Carrying group of the index