Jump to content

Scripting a lever


xenic

Recommended Posts

Posted

I want to turn a valve and summon a flame atronach. I'm not really sure how best to do that. Any help would be great.

EDIT: It seems I need a script for this, I changed the title to reflect that.

Posted

Have you checked out levelers tower? The author has buttons that summon enemies in the Arena.

Nice thought but dead end. However they are linked doesn't show up in CK.

Posted

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
Posted

 

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.

Archived

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

  • Recently Browsing   0 members

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