Skip to main content

OnEvent

Binds a script to an in-game event.
When the event happens, the script will execute.
Find events using 'serhelp events' command.

Syntax

!-- OnEvent eventName

Inline argument

  • Name: eventName
  • Required: Yes
  • Description: The name of the event to bind to.
!-- OnEvent RoundStarted

Options

-- require

A list of variables that have to be present in order for this script to execute.

Required: No

-- require @evPlayer *evItem