Server Scripting Events: Difference between revisions
No edit summary |
|||
Line 4: | Line 4: | ||
===Server Events=== | ===Server Events=== | ||
void [[onClientLogin]] ( [[account]] previous_account, [[account]] current_account, bool auto-login ) | |||
void [[onClientLogout]] ( [[account]] previous_account, [[account]] current_account ) | |||
void [[onColShapeHit]] ( [[player]] player, bool matchingDimension ) | |||
void [[onColShapeLeave]] ( [[player]] player, bool matchingDimension ) | |||
void [[onElementDataChange]] ( string name ) | void [[onElementDataChange]] ( string name ) | ||
Line 11: | Line 19: | ||
void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ ) | void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ ) | ||
void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension ) | void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension ) | ||
Line 56: | Line 60: | ||
void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ ) | void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ ) | ||
void [[ | void [[onResourceLoad]] ( string name ) | ||
void [[ | void [[onResourceUnload]] () | ||
void [[onSpawnpointUse]] ( [[player]] player ) | void [[onSpawnpointUse]] ( [[player]] player ) | ||
Line 79: | Line 83: | ||
void [[onTrailerDetach]] ( [[vehicle]] towedBy ) | void [[onTrailerDetach]] ( [[vehicle]] towedBy ) | ||
===Client Events=== | ===Client Events=== |
Revision as of 20:36, 25 January 2007
This is a list of scripting events that currently exist. More will come soon.
Server Events
void onClientLogin ( account previous_account, account current_account, bool auto-login )
void onClientLogout ( account previous_account, account current_account )
void onColShapeHit ( player player, bool matchingDimension )
void onColShapeLeave ( player player, bool matchingDimension )
void onElementDataChange ( string name )
void onElementColShapeHit ( colshape hitcolshape, bool matchingDimension )
void onElementColShapeLeave ( colshape leftcolshape, bool matchingDimension )
void onElementClicked ( string button, string state, player clicker, float posX, float posY, float posZ )
void onMarkerHit ( player hitplayer, bool matchingDimension )
void onConsole ( string message )
void onPlayerChat ( string message, bool teamchat )
void onPlayerDamage ( player attacker, int attackerweapon, int bodypart, float loss )
void onPlayerJoin ()
void onPlayerQuit ( string reason )
void onPlayerSpawn ( spawnpoint spawnpoint, team )
void onPlayerWasted ( int ammo, player killer, int killerweapon, int bodypart )
void onPlayerTarget ( element targetedElement )
void onPlayerEnterVehicle ( vehicle vehicle, int seat, player jacked )
void onPlayerExitVehicle ( vehicle vehicle, int seat, player jacker )
void onPlayerWeaponSwitch ( int previousWeaponID, int currentWeaponID )
void onPlayerTask ( string priority, int type, string name )
void onPlayerMarkerHit ( marker hitmarker, bool matchingDimension )
void onPlayerPickupHit ( pickup hitpickup, bool matchingDimension )
void onPlayerPickupUse ( pickup usedpickup )
void onPickupSpawn ()
void onPickupHit ( player player, bool matchingDimension )
void onPickupUse ( player player )
void onPlayerClick ( string button, string state, element clickedElement, float posX, float posY, float posZ )
void onResourceLoad ( string name )
void onResourceUnload ()
void onSpawnpointUse ( player player )
void onVehicleDamage ( float loss )
void onVehicleRespawn ( bool explosion )
void onVehicleStartEnter ( player player, int seat, player jacked )
void onVehicleStartExit ( player player, int seat, player jacker )
void onVehicleEnter ( player player, int seat, player jacked )
void onVehicleExit ( player player, int seat, player jacker )
void onVehicleExplode ()
void onTrailerAttach ( vehicle towedBy )
void onTrailerDetach ( vehicle towedBy )
Client Events
void onClientMapLoad ( string name )
void onClientMapUnload ( void )
void onClientWeaponFire ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, element hitElement )
bool guiWindowEventOnKeyDown ( element theElement, callback )
bool guiWindowEventOnClose ( element theElement, callback )
bool guiEditEventOnChanged ( element theElement, callback )
bool guiEditEventOnAccepted ( element theElement, callback )