GetPlayerOccupiedVehicle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''player''': The [[player]] whose | *'''player''': The [[player]] whose vehicle you're looking up. | ||
==Example== | ==Example== |
Revision as of 17:24, 26 March 2006
Description
This function returns a vehicle that the player is currently in, if any. This function returns false if the player is on foot, or the player doesn't exist.
Syntax
vehicle getPlayerOccupiedVehicle ( player player )
Required Arguments
- player: The player whose vehicle you're looking up.
Example
if ( vehicle = getPlayerOccupiedVehicle ( findPlayer ( "Someguy" ) ) ) serverchat ( "Someguy is in a vehicle with ", getVehicleHealth ( vehicle ), " health." ) else serverchat ( "Someguy is not in a vehicle." ) end