Hello everyone,
I have an issue regarding this line in introselect.py :
if chr.RaceToJob(race) == JOB_WOLFMAN:
chr.SetScale(0.50,0.50,0.50)
I can't make this work or at least scaling does nothing ...
here is the pythoncharactermodule.cpp part that i've create for that purpose:
PyObject* chrSetScale(PyObject* poSelf, PyObject* poArgs)
{
float fScaleX;
if (!PyTuple_GetFloat(poArgs, 0, &fScaleX))
return Py_BuildException();
float fScaleY;
if (!PyTuple_GetFloat(poArgs, 1, &fScaleY))
return Py_BuildException();
float fScaleZ;
if (!PyTuple_GetFloat(poArgs, 2, &fScaleZ))
return Py_BuildException();
CInstanceBase* pCharacterInstance = CPythonCharacterManager::Instance().GetSelectedInstancePtr();
if (!pCharacterInstance)
return Py_BuildNone();
pCharacterInstance->GetGraphicThingInstanceRef().SetScale(fScaleX, fScaleY, fScaleZ);
return Py_BuildNone();
}
Since I have Lennt Acce and Scaling system I have tried with his SetScale(fScaleX, fScaleY, fScaleZ, true) function too but same result scaling is not affected.
I have also tried to let the basic SetScale function alone (creating a different SetScaleAcce function for the acce scaling with the same logic using another vector than m_v3Scale like the obj scaling system SetScale function, eveything works fine for acce scaling) but nothing works for character scaling ...
Hope I could get some help here,
Thanks anyway !
Best regards !