STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
108
IN-GAME
1,104
ONLINE
Founded
February 7, 2012
olly Feb 24, 2013 @ 5:41am
Papyrus script help
Hello!

I've compiled my basic script which causes the camera to shake, wait 2 seconds then shake again, with more force. I've only been learning Papyrus for 5 minutes, so I just wanted a little help with the script.

Here's the script:

Scriptname MODtTriggerTest extends ObjectReference

int EnterDetector=0


Event OnTriggerEnter(ObjectReference akActionRef)

if(EnterDetector==0)
Game.ShakeCamera(afDuration=2.0)
Utility.Wait(2.0)
Game.ShakeCamera(afStrength=1.0, afDuration=2.0)
EnterDetector=1
else
EnterDetector=1
endif

EndEvent



OK, so I want to add a sound and make it play when the player enters the trigger area, and I also want to add a script to another object that checks to see if 'EnterDetector' is 1 and will only display the object if this is the case.

Thanks :)