GetBodyPartName

From Liberty Unleashed Wiki
Revision as of 23:43, 9 July 2013 by Shadow (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 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