Jump to content

Scripting Help, can you edit this?


wazwolf

Recommended Posts

I know this should be simple, but I'm lost for now. I want to make a change to the "Fire Wolf" summon. This is the original script. It is the spell that explodes when the wolf charges after an enemy. But I'm trying to make two changes. One, I don't want it to harm friendlies, only hostiles. Two, I don't want it to blow up the caster when enemies are out of range (which is mostly moot if #1 works).

Scriptname spellSummonDraugrBomb extends ACTOR


EXPLOSION PROPERTY fireballExplosion AUTO
EffectShader Property AtronachUnsummonDeathFXS Auto

BOOL doOnce=TRUE

EVENT onLoad()

utility.wait(5)

IF(doOnce && SELF.is3DLoaded())
SELF.placeAtMe(fireballExplosion)
doOnce = FALSE
utility.wait(0.1)
disable()
utility.wait(0.5)
delete()
ENDIF

ENDEVENT

EVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)

IF(doOnce)
SELF.placeAtMe(fireballExplosion)
doOnce = FALSE
utility.wait(0.1)
disable()
utility.wait(0.5)
delete()
ENDIF

ENDEVENT

EVENT onDying(actor myKiller)
AtronachUnsummonDeathFXS.Play(self)
ENDEVENT


Link to comment
Share on other sites

  • Recently Browsing   0 members

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