17 lines
386 B
Plaintext
17 lines
386 B
Plaintext
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("FIZZLE");
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_S), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_LIGHTNING_S), GetLocation(oTarget));
|
|
|
|
}
|
|
|