Jump to content

Paralyzing the player through papyrus


DavidD

Recommended Posts

By button, do you mean a button on your keyboard, or an activator in the game? I'm not sure it's possible right now to create custom hot keys for your mods. If you mean an activator in the game, just have the activator cast a paralyze spell on whoever activates it.
Link to comment
Share on other sites

Try this:

 

Scriptname YourActivatorScript extends ObjectReference

Spell property Paralyze auto

Event OnActivate(ObjectReference akActionRef)

Paralyze.Cast(Self, akActionRef)

EndEvent

 

Of course! I'm so dumb I forgot about using Cast(). I can't do it now though. I'll report back later

Link to comment
Share on other sites

  • 3 months later...

Hi ,

 

Trying to get something similar to work, but I need a npc to cast it to the player. Please, if you can look at my script and give me any ideas?

 

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...