Skip to content

overview

These functions are used for the callback OnEventFired

moonlight.game.events.get_player

Parameters

  • number player

Returns

  • number

moonlight.game.events.get_int

Parameters

  • number event - Event address that is passed in OnEventFired
  • string name

Returns

  • number

moonlight.game.events.get_float

Parameters

  • number event - Event address that is passed in OnEventFired
  • string name

Returns

  • number

moonlight.game.events.get_string

Parameters

  • number event - Event address that is passed in OnEventFired
  • string name

Returns

  • string

moonlight.game.events.get_bool

Parameters

  • number event - Event address that is passed in OnEventFired
  • string name

Returns

  • boolean

moonlight.game.events.listen

Remarks

  • Depreciated