Client Scripting Events: Difference between revisions
No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
void [[onClientRender]] ( ) | void [[onClientRender]] ( ) | ||
void [[onClientClick]] ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clicked ) | void [[onClientClick]] ( string button, string state, float cursorX, float cursorY, float worldX, float worldY, float worldZ, [[element]] clicked ) | ||
void [[onClientCursorMove]] ( float cursorX, float cursorY, float worldX, worldY, worldZ ) | void [[onClientCursorMove]] ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ ) | ||
void [[onClientColShapeHit]] ( [[entity]] theEntity, bool matchingDimension ) | void [[onClientColShapeHit]] ( [[entity]] theEntity, bool matchingDimension ) |
Revision as of 14:41, 5 April 2007
This is a list of client-side scripting events that currently exist. More will come soon.
Client Events
void onClientResourceStart ( string name )
void onClientResourceStop ( string name )
void onClientPlayerJoin ( void )
void onClientPlayerQuit ( string reason )
void onClientPlayerWeaponFire ( int weapon, int ammo, int ammoInClip, float hitX, float hitY, float hitZ, element hitElement )
void onClientPlayerTarget ( element target )
void onClientPlayerDamage ( player attacker, int weapon, int bodypart )
void onClientPlayerSpawn ( team hisTeam )
void onClientPlayerWasted ( void )
void onClientPlayerVehicleEnter ( vehicle theVehicle, int seat )
void onClientPlayerVehicleExit ( vehicle theVehicle, int seat )
void onClientPlayerChangeNick ( string oldNick )
void onClientPlayerTask ( string priority, int type, string name )
void onClientVehicleRespawn ( void )
void onClientVehicleEnter ( player thePlayer, int seat )
void onClientVehicleExit ( player thePlayer, int seat )
void onClientVehicleStartEnter ( player thePlayer, int seat )
void onClientVehicleStartExit ( player thePlayer, int seat )
void onClientTrailerAttach ( vehicle towedBy )
void onClientTrailerDetach ( vehicle towedBy )
void onClientGUIClicked ( element theElement )
void onClientGUIChanged ( element theElement )
void onClientGUIAccepted ( element theElement )
void onClientGUIClose ( element theElement )
void onClientGUIKeyDown ( element theElement )
void onClientConsole ( text )
void onClientRender ( )
void onClientClick ( string button, string state, float cursorX, float cursorY, float worldX, float worldY, float worldZ, element clicked )
void onClientCursorMove ( float cursorX, float cursorY, int absoluteX, int absoluteY, float worldX, float worldY, float worldZ )
void onClientColShapeHit ( entity theEntity, bool matchingDimension )
void onClientColShapeLeave ( entity theEntity, bool matchingDimension )
void onClientElementColShapeHit ( colshape theShape, bool matchingDimension )
void onClientElementColShapeLeave ( colshape theShape, bool matchingDimension )