BedAlarmTriggered

Fires when a bed alarm is triggered.

-- Send out a broadcast to the game server when a bed alarm is triggered
Events.BedAlarmTriggered(function(event)
    local alert = event.intruder.displayName .. " invaded " .. event.team.name .. "'s base!"
    MessageService.broadcast(alert)
end)

Parameters

intruder: Player

The intruder player that triggered the bed alarm.

team: Team

The team whose bed alarm went off.

Last updated