OnEnterMap||doc136896

September 20, 2022

Format

local event = Entity:GetEvent("OnEnterMap")

Description

Triggered when entity enters the map.

Callback function parameters

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

Code Example

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