GetBodyPartName

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function returns a name for the given bodypart.

Syntax

  1. string GetBodyPartName( int iBodyPart )

Arguments

  • iBodyPart - The ID of the bodypart in question

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "bodypart" ) Message( "The bodypart name is: " + GetBodyPartName( text.tointeger() ) );
  5. }
  6.  

Notes

This function is used to get the body part name of the given integer.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox