Disabling Barrier via Shout

Post » Thu Jun 11, 2015 8:29 pm

Hello, I'm fairly new to the Creation Kit and I've been working on a quest that involves breaking through a barrier by using the Unrelenting Force Shout (All 3 words). This is the script I'm using.

Scriptname AABarrierShoutScript extends ObjectReference   Quest Property myQuest  Auto   ObjectReference Property Barrier  Auto   MagicEffect Property VoicePushEffect3  Auto   Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)    if akCaster == Game.GetPlayer()    debug.notification("BarrierHit")        if akEffect == VoicePushEffect3            debug.notification("BarrierDisabled")            Barrier.Disable()        endif    endifendEvent
User avatar
Oceavision
 
Posts: 3414
Joined: Thu May 03, 2007 10:52 am

Post » Thu Jun 11, 2015 2:07 pm

It's likely that Unrelenting Force does not actually apply its "magic effect" to your barrier object so that event never gets sent. Try an http://www.creationkit.com/OnHit_-_ObjectReference event instead.

User avatar
Brian Newman
 
Posts: 3466
Joined: Tue Oct 16, 2007 3:36 pm

Post » Thu Jun 11, 2015 2:27 pm

Thanks for the quick reply, what would the parameters for onHit look like in this case? I've never used it before.
User avatar
Trent Theriot
 
Posts: 3395
Joined: Sat Oct 13, 2007 3:37 am


Return to V - Skyrim