OnWearEquipment||doc136893

September 20, 2022

Format

local event = Entity:GetEvent("OnWearEquipment")

Description

Triggered event when entity equips item.

Callback function parameters

Type Name Introduction
Entity entity Entity equipped with item
Item item Equipped item object

Code Example

local event = Event:GetEvent("OnWearEquipment")
event:Bind(function(entity, item)
    print(entity.. " wear equipment " .. item)
end)