IsActorButchered
Whether a player butchered the animal’s carcass.
Syntax
Section titled “Syntax”IsActorButchered(id)| Parameter | Type | |
|---|---|---|
id |
number | the animal |
Returns
Section titled “Returns”boolean - false for a whole carcass, a living animal and anything that is no server animal
Example
Section titled “Example”-- a butchered carcass is taken away a minute laterif IsActorButchered(deer) then SetTimer(function() DestroyEntity(deer) end, 60000) endSee also
Section titled “See also”SetActorButcher · OnPlayerButcher · the NPC actors group of the index
