SetPedHeadless: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 3: Line 3:
With this function, you can set if a ped has a head or not.
With this function, you can set if a ped has a head or not.
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">bool setPedHeadless  ( ped thePed )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPedHeadless  ( ped thePed, bool headState )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
*'''thePed''': The [[ped]] to check.
*'''thePed''': The [[ped]] to check.
*'''headState''': head state, use false if you want the ped be headless, use true to give him head back


===Returns===
===Returns===

Revision as of 03:35, 1 January 2009