Guest User

Untitled

a guest
Nov 30th, 2017
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Scriptname damageBloatflyLarvaPoisonSCRIPT extends ActiveMagicEffect
  2.  
  3. ;the bloatfly we're spawning
  4. OBJECTREFERENCE PROPERTY bloatfly AUTO
  5.  
  6. ;the explosino to play when it comes out
  7. EXPLOSION PROPERTY flyExplosion AUTO
  8.  
  9. ACTOR victim
  10.  
  11. EVENT OnEffectStart( Actor akTarget, Actor akCaster, int TimeElapsed, BodyGen )
  12.  
  13. ;save off the victim
  14. victim = akTarget
  15. power = (TimeElapsed as int)
  16. BodyGen.SetMorph(akTarget, true, "PregnancyBelly", power)
  17. BodyGen.UpdateMorphs(akTarget)
  18. ENDEVENT
  19.  
  20. EVENT OnDying(Actor akKiller)
  21.  
  22. ;play the explosion, spawn the fly
  23. victim.placeAtMe(flyExplosion)
  24. victim.Dismember("Torso", TRUE, TRUE)
  25.  
  26. ENDEVENT
Add Comment
Please, Sign In to add comment