Player.RemoveLimb

From Liberty Unleashed Wiki
Revision as of 03:35, 24 September 2011 by Stormeus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This Player class member removes one of a players' limbs, or body parts.

Syntax

  1. Player.RemoveLimb( int bodyPart )

Arguments

Example

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "nohead" )
  5. {
  6. pPlayer.RemoveLimb( BODYPART_HEAD );
  7. MessagePlayer( "You're Jack the Ripper!", pPlayer );
  8. }
  9. return 1;
  10. }
  11.  

Notes

The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox