Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname damageBloatflyLarvaPoisonSCRIPT extends ActiveMagicEffect
- ;the bloatfly we're spawning
- OBJECTREFERENCE PROPERTY bloatfly AUTO
- ;the explosino to play when it comes out
- EXPLOSION PROPERTY flyExplosion AUTO
- ACTOR victim
- EVENT OnEffectStart( Actor akTarget, Actor akCaster, int TimeElapsed, BodyGen )
- ;save off the victim
- victim = akTarget
- power = (TimeElapsed as int)
- BodyGen.SetMorph(akTarget, true, "PregnancyBelly", power)
- BodyGen.UpdateMorphs(akTarget)
- ENDEVENT
- EVENT OnDying(Actor akKiller)
- ;play the explosion, spawn the fly
- victim.placeAtMe(flyExplosion)
- victim.Dismember("Torso", TRUE, TRUE)
- ENDEVENT
Add Comment
Please, Sign In to add comment