GetEntityCarrier
Who carries the body.
Syntax
Section titled “Syntax”GetEntityCarrier(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity - a body, or an NPC actor |
Returns
Section titled “Returns”string, number - the kind - "player" or "actor" - and the id (a player’s id, or the entity id); nil when nobody carries it
Example
Section titled “Example”if GetEntityCarrier(corpse) then return end -- not while somebody has it on their shoulderDestroyEntity(corpse)See also
Section titled “See also”GetPlayerCarrying · CarryEntity · the Carrying group of the index
