Jump to content

Scripting a lever


xenic

Recommended Posts

It's probably in the resources esp and tied to a papyrus script.

Okay, now we're on track I think. So to make an item (turning a lever) summon an enemy, I need a script? 

 

Here is a start.  (I've never done a script before)

 

ScriptName ElemEngineFrost Extends ObjectReference
 
Bool bToggle
 
Event OnActivate(ObjectReference akActionRef)
bToggle = !bToggle ; Set Bool to whatever it's not
If bToggle ; True
; Summon EncAtronachFrost
Else ; False
; Do Nothing
Endif
EndEvent
Link to comment

 

ScriptName ElemEngineFrost Extends ObjectReference
 
Bool bToggle = false
Spell Property summonSpell Auto
 
Event OnActivate(ObjectReference akActionRef)
    bToggle = !bToggle
    If bToggle
        summonSpell.Cast(self)
    Endif
EndEvent

I think that should do it, then just make sure to put the spell you want to use into the summonSpell property in CK.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use