Aantioch_Infernum/_module/nss/scalesize.nss

16 lines
384 B
Plaintext
Raw Normal View History

///scalesize.nss
///Set variable on creature SCALE_SIZE float -> 0.0 to size desired
void main()
{
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);
}
}