Jump to content

how to paralyze the player


tonycubed2

Recommended Posts

Greetings,

 

In my mod I am having some ambushers wear special armor that when hit will paralyze the player 20% of the time. All triggers fine and executes but the player is never paralyzed. Any thoughts?

 

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
 bool abBashAttack, bool abHitBlocked)
PlayerRef = Game.GetPlayer()
Debug.Notification("You hit silver!")
if akAggressor == PlayerRef
howfar = Game.GetPlayer().GetDistance(Self)
;
if howfar < 150 && DeadlyWeapons.GetStage() != 40
If RandomInt() > 70
PlayerRef = Game.GetPlayer()
Debug.Notification ("The Silver Armor is Blessed... You are Paralyzed!!!")
Paralyze.Cast(Self, akAggressor) 
placeAtMe(DA10ReanimateExplosion)
stuck.play(PlayerRef)
DeadlyWeapons.SetStage(30)
EndIf
EndIf
;
;mySpell.Cast(getLinkedRef(), actronaut)
EndIf
EndEvent

Link to comment
Share on other sites

  • Recently Browsing   0 members

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