Squirrel/Client/Functions/Players/RemoveLimb
From Liberty Unleashed Wiki
(Difference between revisions)
(→Notes) |
(→Notes) |
||
Line 30: | Line 30: | ||
=== Notes === | === Notes === | ||
− | Any Bomb Makes The Body Part Of Player Remove If The <code lang="squirrel"> | + | Any Bomb Makes The Body Part Of Player Remove If The <code lang="squirrel"> ( g_LocalPlayer.Immune == true ) </code> |
+ | True |
Latest revision as of 13:54, 10 August 2013
This function allows you to remove one of the client's limbs.
[edit] Syntax
g_LocalPlayer.RemoveLimb( int Bodypart )
[edit] Example
g_LocalPlayer <- FindLocalPlayer(); function onClientShot( pPlayer, iWeapon, iBodypart ) { if ( g_LocalPlayer.Immune == true ) { if ( iWeapon == WEP_EXPLOSION ) { g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM ); g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM ); g_LocalPlayer.RemoveLimb( BODYPART_LEFTLEG ); g_LocalPlayer.RemoveLimb( BODYPART_HEAD ); g_LocalPlayer.RemoveLimb( BODYPART_RIGHTLEG ); } } return 1; }
[edit] Notes
Any Bomb Makes The Body Part Of Player Remove If The
( g_LocalPlayer.Immune == true )
True