Jump to content

Quick and Noobie question: Setting an Actor on Fire with Script


DesertEaglePWN

Recommended Posts

Hey guys; I know this is probably pretty simple, but I figured that it would take me at least an hour to figure out all the components and 5 minutes to get a response:

 

I'm trying to light all the actors (except the player) in a trigger on fire so that they take damage until they die. The trigger is being enabled by a scene and this is when I need the effect to occur. I have the conditionals to ignore the player setup and attatched to the trigger script, I just don't know exactly what calls/spell effects I'm needing to make this work and I figured someone might be able to fire them right off at me and help me troubleshoot a small bit if things start acting funny.

 

It's that simple, I need them to burn until they die, anyone know what functions I need to call and/or what spell effects I need?

Link to comment
Share on other sites

I'm pretty sure the Magic Effect "AbOnFire" should make them at least look like they're on fire, though I don't know if it will do damage. I'd suggest making your own spell of the Ability type that uses AbOnFire and AbDamageHealthConstant effects. You could even try the vampire sun damage ability, but I'm not sure if that shows them on fire or not.

Link to comment
Share on other sites

  On 7/22/2014 at 7:42 PM, DesertEaglePWN said:

Alright, thanks for that I'll try it out! And I can do that witha simple "Actor.AddSpell " call right?

Papyrus is where I am entirely clueless, unfortunately. Hopefully someone else can answer that for you.

Link to comment
Share on other sites

I got it to work; gotta do some tweaks to get the timing right for my scene, but it does what it's supposed to:

 

I used an Ability Spell Type with Hazard Fire Health Damage and sent it to all actors in the trigger OnTrigger() event using (akActionRef as actor).AddPell(SpellProperty)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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