Scripting/Server/Events/onPlayerActionChange
(v0.3-r2+) The player's ped changed what it is doing: jumping, falling, staggering, getting up, aiming, entering / leaving a vehicle, dying ... Values are the ACTION_* constants (appendix A.12). Reported by the player's own game, only while he is spawned. With player.NoFallAnim / player.NoStumble the suppressed states never show up here.
Syntax
onPlayerActionChange(player, oldAction, newAction)Arguments
- Player player
- any oldAction
- any newAction
Example
function onPlayerActionChange( player, oldAction, newAction )
{
MessagePlayer( "onPlayerActionChange fired", player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- onPlayerRequestSpawn
- onPlayerSpawn
- onPlayerDeath
- onPlayerBusted
- onPlayerShoot
- onPlayerKill
- onPlayerShotPlayer
- onPlayerWeaponChange
- onPlayerUseDetonator
- onPlayerShootObject
- onPlayerCheat
- onPlayerCLEO
Section: Spawning, deaths and combat
Categories: Server events | Spawning, deaths and combat