Squirrel/Server/Functions/Misc/GetBodyPartName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 15: Line 15:
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
if ( command == "bodypart" ) GetBodyPartName( text.tointeger() )
+
if ( command == "bodypart" ) Message( "The bodypart name is: " + GetBodyPartName( text.tointeger() ) );
 
}
 
}
 
</code>
 
</code>

Latest revision as of 23:43, 9 July 2013

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

This function returns a name for the given bodypart.

[edit] Syntax

  1. string GetBodyPartName( int iBodyPart )

[edit] Arguments

  • iBodyPart - The ID of the bodypart in question

[edit] Example

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

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox