Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Question about a force power script.

Page: 1 of 1
 Exile007
02-10-2008, 8:37 PM
#1
Okay, I did everything needed to get the power in game, and it worked great!Except that the effect I wanted (lightning) will not show up, so my power now will apply the force push effect, but not the lightning one, so my target will be pushed back by nothing. This is the script I am using



#include "k_inc_force"

void main()
{
SWFP_DAMAGE_TYPE = DAMAGE_TYPE_LIGHT_SIDE;

object oSource = OBJECT_SELF;
object oTarget = GetSpellTargetObject();

effect eBeam = EffectBeam(1021, oSource, 3);
effect eVFX = EffectVisualEffect(1014);
effect eDamage = EffectDamage(GetCasterLevel(oSource)*10);

ApplyEffectToObject(1, eBeam, oTarget, 8.0f);
ApplyEffectToObject(1, eVFX, oTarget, 3.0f);
ApplyEffectToObject(1, eDamage, oTarget, 2.0f);
}

Can anyone tell me what I did wrong?
Page: 1 of 1