How do I scale the size of a creature not on screen?
Stoneking
Member Posts: 39
So I know you can increase the size of a creature or object on the screen, but how do I do it so the size increase sticks permanently in the creature list on the right? Could someone give me a script I an put in heartbeat or onspawn please?
0
Comments
https://nwnlexicon.com/index.php/Builders_Guide_To_Horses#Creature_Scaling
if (GetLocalInt(OBJECT_SELF,"NO_SCALE")!=1)
{
float fScaleSize=GetLocalFloat(OBJECT_SELF,"SCALE_SIZE");
if (fScaleSize==0.0)
{
fScaleSize=1.0+(IntToFloat(Random(11))/100.0)*IntToFloat(Random(3)-1);
}
SetObjectVisualTransform(OBJECT_SELF,OBJECT_VISUAL_TRANSFORM_SCALE,fScaleSize);
}
If you just want a fixed size, just put the last line of code in your OnSpawn script, and substitute fScaleSize with whatever value you prefer.
Thank you