BasePlayer Events |
The BasePlayer type exposes the following members.
Name | Description | |
---|---|---|
CancelClickTextDraw |
Occurs when the OnCancelClickTextDraw(PlayerEventArgs) is being called.
This callback is called when a player cancels the textdraw select mode(ESC).
| |
Cleanup |
Occurs when the OnCleanup(DisconnectEventArgs) is being called.
This callback is called after a player disconnects from the server.
| |
ClickMap |
Occurs when the OnClickMap(PositionEventArgs) is being called.
This callback is called when a player places a target/waypoint on the pause menu map (by right-clicking).
| |
ClickPlayer |
Occurs when the OnClickPlayer(ClickPlayerEventArgs) is being called.
Called when a player double-clicks on a player on the scoreboard.
| |
ClickPlayerTextDraw |
Occurs when the OnClickPlayerTextDraw(ClickPlayerTextDrawEventArgs) is being called.
This callback is called when a player clicks on a player-textdraw. It is not called when player cancels the select
mode (ESC).
| |
ClickTextDraw |
Occurs when the OnClickTextDraw(ClickTextDrawEventArgs) is being called.
This callback is called when a player clicks on a textdraw. It is not called when player cancels the select
mode (ESC)
| |
CommandText |
Occurs when the OnCommandText(CommandTextEventArgs) is being called.
This callback is called when a player enters a command into the client chat window, e.g. /help.
| |
Connected |
Occurs when the OnConnected(EventArgs) is being called.
This callback is called when a player connects to the server.
| |
DialogResponse |
Occurs when the OnDialogResponse(DialogResponseEventArgs) is being called.
This callback is called when a player responds to a dialog shown using Dialog by
either clicking a button, pressing ENTER/ESC or double-clicking a list item (if using a list style dialog).
| |
Died |
Occurs when the OnDeath(DeathEventArgs) is being called.
This callback is triggered when the gamemode starts.
| |
Disconnected |
Occurs when the OnDisconnected(DisconnectEventArgs) is being called.
This callback is called when a player disconnects from the server.
| |
Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) | |
EditAttachedObject |
Occurs when the OnEditAttachedObject(EditAttachedObjectEventArgs) is being called.
This callback is called when a player ends attached object edition mode.
| |
EditGlobalObject |
Occurs when the OnEditGlobalObject(EditGlobalObjectEventArgs) is being called.
This callback is called when a player ends object edition mode.
| |
EditPlayerObject |
Occurs when the OnEditPlayerObject(EditPlayerObjectEventArgs) is being called.
This callback is called when a player ends object edition mode.
| |
EnterCheckpoint |
Occurs when the OnEnterCheckpoint(EventArgs) is being called.
This callback is called when a player enters the checkpoint set for that player.
| |
EnterExitModShop |
Occurs when the OnEnterExitModShop(EnterModShopEventArgs) is being called.
This callback is called when a player enters or exits a mod shop.
| |
EnterRaceCheckpoint |
Occurs when the OnEnterRaceCheckpoint(EventArgs) is being called.
This callback is called when a player enters a race checkpoint.
| |
EnterVehicle |
Occurs when the OnEnterVehicle(EnterVehicleEventArgs) is being called.
This callback is called when a player starts to enter a vehicle, meaning the player is not in vehicle yet at the
time this callback is called.
| |
ExitedMenu |
Occurs when the OnExitedMenu(EventArgs) is being called.
Called when a player exits a menu.
| |
ExitVehicle |
Occurs when the OnExitVehicle(PlayerVehicleEventArgs) is being called.
This callback is called when a player exits a vehicle.
| |
GiveDamage |
Occurs when the OnGiveDamage(DamageEventArgs) is being called.
This callback is called when a player gives damage to another player.
| |
InteriorChanged |
Occurs when the OnInteriorChanged(InteriorChangedEventArgs) is being called.
Called when a player changes interior.
| |
KeyStateChanged |
Occurs when the OnKeyStateChanged(KeyStateChangedEventArgs) is being called.
This callback is called when the state of any supported key is changed (pressed/released). Directional keys do not
trigger this callback.
| |
LeaveCheckpoint |
Occurs when the OnLeaveCheckpoint(EventArgs) is being called.
This callback is called when a player leaves the checkpoint set for that player.
| |
LeaveRaceCheckpoint |
Occurs when the OnLeaveRaceCheckpoint(EventArgs) is being called.
This callback is called when a player leaves the race checkpoint.
| |
PickUpPickup |
Occurs when the OnPickUpPickup(PickUpPickupEventArgs) is being called.
This callback is called when a player picks up a pickup.
| |
RequestClass |
Occurs when the OnRequestClass(RequestClassEventArgs) is being called.
Called when a player changes class at class selection (and when class selection first appears).
| |
RequestSpawn |
Occurs when the OnRequestSpawn(RequestSpawnEventArgs) is being called.
Called when a player attempts to spawn via class selection.
| |
SelectedMenuRow |
Occurs when the OnSelectedMenuRow(MenuRowEventArgs) is being called.
This callback is called when a player selects an item from a menu.
| |
SelectGlobalObject |
Occurs when the OnSelectGlobalObject(SelectGlobalObjectEventArgs) is being called.
This callback is called when a player selects an object after Select(BasePlayer) has been used.
| |
SelectPlayerObject |
Occurs when the OnSelectPlayerObject(SelectPlayerObjectEventArgs) is being called.
This callback is called when a player selects an object after Select(BasePlayer) has been used.
| |
Spawned |
Occurs when the OnSpawned(SpawnEventArgs) is being called.
This callback is called when a player spawns.
| |
StateChanged |
Occurs when the OnStateChanged(StateEventArgs) is being called.
This callback is called when a player exits a vehicle.
| |
StreamIn |
Occurs when the OnStreamIn(PlayerEventArgs) is being called.
This callback is called when a player is streamed by some other player's client.
| |
StreamOut |
Occurs when the OnStreamOut(PlayerEventArgs) is being called.
This callback is called when a player is streamed out from some other player's client.
| |
TakeDamage |
Occurs when the OnTakeDamage(DamageEventArgs) is being called.
This callback is called when a player takes damage.
| |
Text |
Occurs when the OnText(TextEventArgs) is being called.
Called when a player sends a chat message.
| |
Update |
Occurs when the OnUpdate(PlayerUpdateEventArgs) is being called.
This callback is called everytime a client/player updates the server with their status.
| |
WeaponShot |
Occurs when the OnWeaponShot(WeaponShotEventArgs) is being called.
This callback is called when a player fires a shot from a weapon.
|