Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
18
_module/nss/x3_dm_tool01.nss
Normal file
18
_module/nss/x3_dm_tool01.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#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 grow 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user