Hoping someone can help here.
I want an appropriate vfx to trigger when a boulder is destroyed, i have tried some that sound like something appropriate, but they don't trigger, these are
eVFX = EffectVisualEffect(VFX_COM_CHUNK_STONE_MEDIUM);
and
eVFX = EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL);
But they do not trigger...AT ALL.
Here's my script:
/*
* Script generated by LS Script Generator, v.TK.0
*
* For download info, please visit:
*
http://nwvault.ign.c....Detail&id=1502
*/
// Can go OnDamaged, OnDisturbed, OnSpellCastAt, etc.
// This is a generic script, calling GetLastHostileActor() instead of the event-sepcific command.
void main()
{
effect eVFX;
object oSelf = OBJECT_SELF;
// Get the creature who triggered this event.
object oPC = GetLastHostileActor();
// If the PC's current strength is at least 16.
if ( GetAbilityScore(oPC, ABILITY_STRENGTH) >= 16 )
{
// Destroy an object (not fully effective until this script ends).
eVFX = EffectVisualEffect(VFX_COM_CHUNK_STONE_SMALL);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSelf);
DestroyObject(oSelf, 1.0);
// Have text appear over the PC's head.
FloatingTextStringOnCreature("" + GetName(oPC) + " Destroyed the boulder blocking the way.", oPC);
// Give 100 experience to us.
GiveXPToCreature(oSelf, 100);
}
else
{
// Have text appear over the PC's head.
FloatingTextStringOnCreature("" + GetName(oPC) + " Is not strong enough to destroy the boulder.", oPC);
}
}
Any ideas? or is the vfx i'm looking for another different one that i may be overlooking.