OnLeaveTeam||doc136895

September 20, 2022

Format

local event = Entity:GetEvent("OnLeaveTeam")

Description

Triggered event when entity leaves team.

Callback function parameters

Type Name Introduction
Entity entity Entity that left the team
int teamID Team ID left

Code Example

local event = Event:GetEvent("OnLeaveTeam")
event:Bind(function(entity, teamID)
    print(entity.. " leave team " .. teamID)
end)