Visual Transform - Wings

So… I have this trigger that I want the players wings to resize a little larger but I am having a little bit of a problem to make it work…

the script compiles fine, hehe still no resize happening…
could I get a hand with the script please.

void main()
{
// Define the object and transformation parameters
object oCreature = OBJECT_SELF;
int nTransform = OBJECT_VISUAL_TRANSFORM_SCALE;
float fValue = 3.0; // Scale factor
int nScope = OBJECT_VISUAL_TRANSFORM_DATA_SCOPE_CREATURE_WINGS;

// Apply the visual transformation
SetObjectVisualTransform(oCreature, nTransform, fValue, OBJECT_VISUAL_TRANSFORM_LERP_NONE, 0.0, TRUE, nScope, OBJECT_VISUAL_TRANSFORM_BEHAVIOR_DEFAULT, 0);

}

L0BSTER

Even though I work with NWN2, this should apply here too…

If you use this script on a trigger, the OBJECT_SELF is the trigger and not the creature entering it.

So maybe define oCreature as:

object oCreature = GetFirstPC();

or maybe

object oCreature = GetEnteringObject();
if(!GetIsPC(oCreature)) return;

depending on what you’re after.

1 Like

Thanks man !! :smiley: hahaha - I thought I would not need the GetEnteringObject() so it was overlooked.

1 Like