IsPedChoking: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}
This function checks if the specified [[ped]] is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can.  
This function checks if the specified [[ped]] is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can.  


Line 13: Line 13:


==Example==
==Example==
<section class="both" name="Server or client">
This example checks if a random player is choking or not, and if so displays a message in the chat box.
This example checks if a random player is choking or not, and if so displays a message in the chat box.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 21: Line 22:
end
end
</syntaxhighlight>
</syntaxhighlight>
</section>


==See Also==
==See Also==
{{Client_ped_functions}}
{{Ped functions}}

Revision as of 20:12, 25 May 2008

This function checks if the specified ped is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can.

Syntax

bool isPedChoking ( ped thePed )

Required Arguments

  • thePed: The ped you wish to check

Returns

Returns true if the ped is choking, false otherwise.

Example

Click to expand [+]
Server or client

See Also