|
Bitfighter
021
The Bitfighter Lua Documentation - Robots, Levelgens, and Plugins
|
The Event enum represents different events that the game fires that scripts might want to respond to. Below are the signatures of methods you can implement to respond to these events. Note that you will also have to subscribe to the event to be notified of it.
See the subscribe methods for bots and levelgens, and the Events section of the scripting overview page.
Event.TickonTick()Event.ShipSpawnedonShipSpawned(Ship ship)Event.ShipKilledonShipKilled(BfObject shooter)Event.PlayerJoinedonPlayerJoined(PlayerInfo player)Event.PlayerLeftonPlayerLeft(PlayerInfo player)Event.PlayerTeamChangedonPlayerTeamChanged(PlayerInfo player)Event.MsgReceivedonMsgReceived(bool messageIsGlobal)Event.NexusOpenedonNexusOpened()Event.NexusClosedonNexusClosed()Event.ShipEnteredZoneonShipEnteredZone(Zone zone)Event.ShipLeftZoneonShipLeftZone(Zone zone)Event.ObjectEnteredZoneonObjectEnteredZone(Zone zone)Event.ObjectLeftZoneonObjectLeftZone(Zone zone)Event.ScoreChangedonScoreChanged(PlayerInfo player)Event.GameOveronGameOver()Event.CoreDestroyedonCoreDestroyed(CoreItem core)