lua/wrappers/game/lua_body_part.cpp
/**
	 * Returns the name of the body part.
	 * A nil return indicates that there was an error.
	 * @returns string Body part name.
	 */
Returns the name of the body part.
A nil return indicates that there was an error.
@returns string Body part name.
Returns the name of the body part . A nil return indicates that there was an error . @returns string Body part name .
int BodyPart_name(lua_State *lua)
	{
		BodyPart *part = castUData<BodyPart>(lua, 1);
		if (part)
		{
			lua_pushstring(lua, part->getName());
			return 1;
		}
		return LuaState::expectedContext(lua, "name", "am.body_part");
	}
int BodyPart_name ( lua_State * lua ) { BodyPart * part = castUData < BodyPart > ( lua , 1 ) ; if ( part ) { lua_pushstring ( lua , part -> getName ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the name of the body part.
Returns the name of the body part .