IsPlayerDucked: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(→Syntax) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool IsPlayerDucked ( player player )</syntaxhighlight> | |||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''player''': A [[player]] object referencing the specified player | ||
==Example== | ==Example== |
Revision as of 03:23, 20 May 2006
Description
This function returns a boolean value (true or false) depending on whether the specified player is ducked (crouched) or not.
Syntax
bool IsPlayerDucked ( player player )
Required Arguments
- player: A player object referencing the specified player
Example
player = getPlayerFromID ( 1 ) if ( IsPlayerDucked ( player ) ) serverChat ( GetPlayerName ( player ) , " is currently crouching." ) end