Forget using the wrapper function and just stick to basics. Try the applying the EffectPetrify() function.
EDIT: What kind of creature are you testing this on? I hope it's not a skeleton.
[snapback]28174[/snapback]
I was originally using the EffectPetrify() Function, but it wouldn't work either >.< I'm using a human model
-Elessar
void main()
{
object oTarget = OBJECT_SELF;
effect eEffect = SupernaturalEffect(EffectPetrify());
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}
I just wrote and tested this script and put it in the OnSpawn of a creature and it worked. Make sure the creature is not plot or it will be immune to petrify.
If you want it to be plot you can try to make it Immortal instead or apply a cut-scene paralyze combined with the stone skin VFX.
-420
[snapback]28178[/snapback]
teehee, thanks, it was because it was plot xD
-Elessar
void main()
{
object oTarget = OBJECT_SELF;
effect eEffect = SupernaturalEffect(EffectPetrify());
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}
I just wrote and tested this script and put it in the OnSpawn of a creature and it worked. Make sure the creature is not plot or it will be immune to petrify.
If you want it to be plot you can try to make it Immortal instead or apply a cut-scene paralyze combined with the stone skin VFX.
-420
[snapback]28178[/snapback]
or set it to plot after it's petrified?
or set it to plot after it's petrified?
[snapback]28180[/snapback]
that'll help