API > MLStation > OnPlayerSeated
MLStation.OnPlayerSeated⚓︎
Read-Only
This property is Read-Only
Name | Type |
---|---|
OnPlayerSeated | EventHandler |
Event callback function requirement⚓︎
Info
This property is an event. It means that you need to add a listener function to it. Here how that function needs to look like.
function();
Usage⚓︎
--- @type
local mlstation;
--- callback function called when event triggers
local function CallBack()
-- code to handle event call back
end
-- Regsiter callback function
mlstation.OnPlayerSeated.Add(CallBack);
Description⚓︎
Event that triggers when a player gets attached to the station.