Squirrel/Server/Functions/Misc/GetBodyPartName

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function returns a name for the given bodypart. == Syntax == <code>string GetBodyPartName( int iBodyPart )</code> == Arguments == * '''iBodyPart''' - The ID of the bodyp...)
 
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "bodypart" ) GetBodyPartName( text.tointeger() )
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
This function is used to get the body part name of the given integer.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Misc}}
 
{{Squirrel/Server/Functions/Misc}}

Revision as of 02:37, 7 January 2010

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" ) 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