Sure you can link the effects. Just assing it is the object to create and link the effects.
effect
eEffectsLinked (){
effect Effect1 = EffectVisualEffect(nVFX);
effect Effect2 = EffectVisualEffect(nVFX2);
return EffectLinkEffects( Effect1,Effect2);
}
void main()
{
AssignCommand(GetObjectByTag("EC_MYVFX"), ApplyEffectToObject(DURATION_TYPE_TEMPORARY,
eEffectsLinked (), oPC, 60.));
}
Or a little cleaner
void eEffectsApplyed to ( object oTarget)
{
effect Effect1 = EffectVisualEffect(nVFX);
effect Effect2 = EffectVisualEffect(nVFX2);
effect eEffect = EffectLinkEffects( Effect1,Effect2);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,
eEffect, oTarget, 60.)
}
void main()
{
object oPC = GetEnteringObject();
AssingCommand(GetObjectByTag("EC_MYVFX"),eEffectsApplyed to(oPC));
}
Modifié par Lightfoot8, 29 novembre 2011 - 11:32 .