Why do I get errors when I compile this:confused:
void main() {
effect EffectDeath(int nSpectacularDeath=TRUE, int nDisplayFeedback=TRUE, int nNoFadeAway=TRUE);
}
This script was supposed to create a Death effect...
You can't declare integer variables inside a function like that.
effect eDeath = EffectDeath(TRUE, TRUE, TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, OBJECT_SELF);
You'd want something like that.
The correct script should look something like this:
void main()
{
object oNPC = GetObjectByTag("YOUR_TAG_HERE");
effect eDeath = EffectDeath(TRUE, TRUE, TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oNPC, 0.0);
}
Just change the Red text to whatever you want in the mod! This should work! ;)
EDIT: Varsity, one step ahead of me! :xp:
Er yeah, Istorian's is better, more health conscious.
Er yeah, Istorian's is better, more health conscious.
Haha! Thanks to both of you guys.
And istorian: euxaristw re...