GameEvent
Detailed information about the bf2.gameLogic.sendGameEvent(playerObject, event, data)
method:
Event # | Data | ||
Sets GameStatus to zero. | Status zero, however, doesn't exist. Appears to turn the current game mode off. | ||
Sets GameStatus to Playing. | |||
Sets GameStatus to EndGame. | This ends the current round. | ||
Sets GameStatus to PreGame. | |||
Sets GameStatus to Paused. | Causes many odd things to happen. | ||
Sets GameStatus to RestartServer. | |||
Sets GameStatus to NotConnected. | |||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Unknown function for the moment. | ||
None | Appears to do nothing. | ||
"You got a targeting assist!" | |||
"You got a kill damage assist!" | |||
"You got a driver kill assist!" | |||
"You got a healing point!" | |||
"You got a repair point" | |||
"You got an ammo giving point!" | |||
"You got an driver ability assist!" | |||
"You got a revive score!" | |||
"You got points for destroying strategic object" | |||
"Team damage! Don't hurt your teammates" | |||
"Team vehicle damage!" | |||
"You have received points for Flag Capture!" | |||
"Defended flag!" | |||
"You got a capture assist point!" | |||
"You got a neutralize point!" | |||
"You got a neutralize assist point!" | |||
"You have destroyed strategic objective!" | |||
None | |||
Blurs the players screen for a short period. | If player is in a jet, blur lasts much longer. Bug or intended? |
NOTE: Although things like "You got a capture assist point!" give you points during normal gameplay, this is not the case when sending the same game event. Instead it only gives the player the message, but no points.
The above table was made possible through the efforts of =Mad=
Event # | |
To the left is a table that connects event numbers up to their internal name in the Battlefield 2 game engine. Hopefully knowing the names of these events will help us figure out what data needs to be sent to them. --King of Camelot 17:21, 7 Aug 2005 (MDT)