Jump to content

Spreading Flames


gatorman666uk

Recommended Posts

Hi all,

I'm trying to add a scripted effect to the flamer effect so that anything within 1-2 feet will also catch fire.

I've added an effect to EnchFlamerEffect that has an area, which has the following script linked to it:

 

ref Target

 

Begin ScriptEffectStart

 

set Target to GetSelf

if (Target.GetItemCountAsh == 0) ; I use a dummy item to check whether something is already burning to stop the flames constantly switching back and forth.

Target.CastImmediateOnSelf EnchFlamerEffect; self propagation of the burning effect

Target.Additem Ash 1

endif

End

 

Begin ScriptEffectFinish

 

Target.RemoveItem Ash 1

 

End

 

I know that it'd be easier to check if the NPC is affected by EnchFlamerEffect than the item but I chucked that in to speed through to getting it working. Currently the effect only spreads to other NPCs if they are in range when the source initially catches on fire. I know this is because I made the effect with ScriptEffectStart, I've tried using the same script inside a ScriptEffectUpdate block but it doesn't seem to work. I never really used ScriptEffectUpdate whilst Oblivion modding so I don't know it's limits. Does anyone know what I need to do with the script to get it to function properly?

Thanks in advance

Gator

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...