LUA:Physgunable Entities

From DarkRP
Jump to navigation Jump to search

Physgun Override[edit]

DescriptionMake the entity's owner (or admins) able to physgun your entity.
Code
function ENT:PhysgunPickup(ply, ent)
    return (ply == self:Getowning_ent()) or ply:IsAdmin()
end
OutputAdmins and the entity's owner may physgun it.