OnLeaveMap||doc136897

September 20, 2022

Format

local event = Entity:GetEvent("OnLeaveMap")

Description

Triggered when entity leaves the map.

Callback function parameters

Type Name Introduction
Entity entity Entity that left the map
Map map Map left

Code Example

local event = Event:GetEvent("OnLeaveMap")
event:Bind(function(entity, map)
    print(entity.. " leave map " .. map)
end)