Server Scripting Events: Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
void [[onPlayerChat]] ( string message ) | void [[onPlayerChat]] ( string message ) | ||
void [[onPlayerDamage]] ( float loss ) | void [[onPlayerDamage]] ( float loss, [[player]] attacker, int attackerweapon, int bodypart ) | ||
void [[onPlayerJoin]] () | void [[onPlayerJoin]] () | ||
Line 23: | Line 23: | ||
void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint ) | void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint ) | ||
void [[onPlayerWasted]] ( int totalammo, [[player]] killer, int killerweapon ) | void [[onPlayerWasted]] ( int totalammo, [[player]] killer, int killerweapon, int bodypart ) | ||
void [[onTargeted]] () | void [[onTargeted]] () |
Revision as of 14:56, 17 June 2006
This is a list of scripting events that currently exist. More will come soon.
void onElementDataChange ( string name )
void onMapLoad ( string name )
void onMapUnload ()
void onMarkerHit ( player hitplayer )
void onConsole ( string message )
void onPlayerChat ( string message )
void onPlayerDamage ( float loss, player attacker, int attackerweapon, int bodypart )
void onPlayerJoin ()
void onPlayerQuit ()
void onPlayerSpawn ( spawnpoint spawnpoint )
void onPlayerWasted ( int totalammo, player killer, int killerweapon, int bodypart )
void onTargeted ()
void onPlayerEnterVehicle ( vehicle vehicle, int seat, player jacked )
void onPlayerExitVehicle ( vehicle vehicle, int reason, player jacker )
void onPickupSpawn ()
void onPickupHit ( player player )
void onPickupUse ( player player )
void onColShapeHit ( player player )
void onSpawnpointUse ( player player )
void onVehicleDamage ( float loss )