Squirrel/Server/Functions/Players/RemoveLimb

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|Player.RemoveLimb}} This ''Player'' class member removes one of a players' limbs, or body parts. == Syntax == <code>Pl…')
 

Latest revision as of 03:35, 24 September 2011

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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

[edit] Syntax

  1. Player.RemoveLimb( int bodyPart )

[edit] Arguments

[edit] 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.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox