Player States: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "PLAYER_STATE_NONE 0 PLAYER_STATE_ONFOOT 1 PLAYER_STATE_AIM 2 PLAYER_STATE_DRIVER 3 PLAYER_STATE_PASSENGER 4 PLAYER_STATE_ENTER_VEHICLE_DRIVER 5 PLAYER_STATE_ENTER_VEHICLE_PASS...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
PLAYER_STATE_NONE 0 PLAYER_STATE_ONFOOT 1 PLAYER_STATE_AIM 2 PLAYER_STATE_DRIVER 3 PLAYER_STATE_PASSENGER 4 PLAYER_STATE_ENTER_VEHICLE_DRIVER 5 PLAYER_STATE_ENTER_VEHICLE_PASSENGER 6 PLAYER_STATE_EXIT_VEHICLE 7 PLAYER_STATE_WASTED 8
__NOTOC__  __NOEDITSECTION__
<big>
To be used with [[GetPlayerState]]
=== Often used ===
{| class="wikitable"
|-
! ID !! Macro !! Description
|-
| 0|| PLAYER_STATE_NONE || (while initializing)
|-
| 1|| PLAYER_STATE_ONFOOT || Player is onfoot
|-
| 2|| PLAYER_STATE_AIM || Player is aiming
|-
| 3|| PLAYER_STATE_DRIVER || Player is driver of a vehicle
|-
| 4|| PLAYER_STATE_PASSENGER || Player is passenger of a vehicle
|-
| 8|| PLAYER_STATE_WASTED || Player is dead or in class selection
|-
| 9|| PLAYER_STATE_SPAWNED || Player is spawned
|}
 
=== Internally Used ===
{| class="wikitable"
|-
! ID !! Macro !! Description
|-
| 5|| PLAYER_STATE_ENTER_VEHICLE_DRIVER || Player enters a vehicle as driver
|-
| 6|| PLAYER_STATE_ENTER_VEHICLE_PASSENGER || Player enters a vehicle as passenger
|-
| 7|| PLAYER_STATE_EXIT_VEHICLE || Player exits a vehicle
|}
</big>

Latest revision as of 15:14, 24 March 2022

To be used with GetPlayerState

Often used

ID Macro Description
0 PLAYER_STATE_NONE (while initializing)
1 PLAYER_STATE_ONFOOT Player is onfoot
2 PLAYER_STATE_AIM Player is aiming
3 PLAYER_STATE_DRIVER Player is driver of a vehicle
4 PLAYER_STATE_PASSENGER Player is passenger of a vehicle
8 PLAYER_STATE_WASTED Player is dead or in class selection
9 PLAYER_STATE_SPAWNED Player is spawned

Internally Used

ID Macro Description
5 PLAYER_STATE_ENTER_VEHICLE_DRIVER Player enters a vehicle as driver
6 PLAYER_STATE_ENTER_VEHICLE_PASSENGER Player enters a vehicle as passenger
7 PLAYER_STATE_EXIT_VEHICLE Player exits a vehicle