@ -598,11 +598,13 @@ PYTHON_GLOBAL_METHOD_DEFINITION(PtFakeLinkAvatarToObject, args, "Params: avatar,
PYTHON_RETURN_NONE ;
PYTHON_RETURN_NONE ;
}
}
PYTHON_GLOBAL_METHOD_DEFINITION ( PtWearDefaultClothingType , args , " Params: key,type \n Forces the avatar to wear the default clothing of the specified type " )
PYTHON_GLOBAL_METHOD_DEFINITION_WKEY ( PtWearDefaultClothingType , args , kw , " Params: key,type,broadcast=fals e \n Forces the avatar to wear the default clothing of the specified type " )
{
{
char * kwlist [ ] = { " broadcast " , NULL } ;
PyObject * keyObj = NULL ;
PyObject * keyObj = NULL ;
unsigned long type ;
unsigned long type ;
if ( ! PyArg_ParseTuple ( args , " Ol " , & keyObj , & type ) )
bool broadcast = false ;
if ( ! PyArg_ParseTupleAndKeywords ( args , kw , " Ol|b " , kwlist , & keyObj , & type , & broadcast ) )
{
{
PyErr_SetString ( PyExc_TypeError , " PtWearDefaultClothingType expects a ptKey and an unsigned long " ) ;
PyErr_SetString ( PyExc_TypeError , " PtWearDefaultClothingType expects a ptKey and an unsigned long " ) ;
PYTHON_RETURN_ERROR ;
PYTHON_RETURN_ERROR ;
@ -613,7 +615,7 @@ PYTHON_GLOBAL_METHOD_DEFINITION(PtWearDefaultClothingType, args, "Params: key,ty
PYTHON_RETURN_ERROR ;
PYTHON_RETURN_ERROR ;
}
}
pyKey * key = pyKey : : ConvertFrom ( keyObj ) ;
pyKey * key = pyKey : : ConvertFrom ( keyObj ) ;
cyMisc : : WearDefaultClothingType ( * key , type ) ;
cyMisc : : WearDefaultClothingType ( * key , type , broadcast ) ;
PYTHON_RETURN_NONE ;
PYTHON_RETURN_NONE ;
}
}