Files
Anphillia_PRC8/_module/nss/x3_dm_tool02.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

19 lines
485 B
Plaintext

#include "anph_inc"
#include "nwnx_time"
void main()
{
object oUser = OBJECT_SELF;
object oTarget = GetSpellTargetObject();
if (oTarget == OBJECT_INVALID)
{
SendMessageToPC(oUser, "This tool is used to shrink an object, must target a valid object.");
return;
}
float fScale = GetObjectVisualTransform(oTarget, OBJECT_VISUAL_TRANSFORM_SCALE);
fScale -= 0.02;
SetObjectVisualTransform(oTarget, OBJECT_VISUAL_TRANSFORM_SCALE, fScale);
}