wektis Posted December 1, 2011 Author Posted December 1, 2011 :biggrin: Finally found a snippet on the Bethesda forums that is working for me, still have no idea why my previous tries didn't work. SCN HAWTimerTestScript short DoOnce Float nDeliveryDay Begin GameMode If DoOnce == 0 Set DoOnce to 1 Set nDeliveryDay to GameDaysPassed EndIf If GameDaysPassed >= (nDeliveryDay + 1) && DoOnce == 1 Set DoOnce to 2 ShowMessage HAWTimeTestMesg EndIfEnd Wek
seularts Posted December 1, 2011 Posted December 1, 2011 Ok, this is what worked for me in the end: scn CTActivateAllHangarLightsScript01 ref light ref seclight float timer BEGIN OnTriggerEnter Player set light to CTHangarLightsRef set seclight to CTHangarLightsRefA if light.GetDisabled light.Enable PlaySound QSTEndPowerUpTurbine set timer to 5 endif endif END BEGIN GameMode if ( timer >0 ) set timer to timer - getSecondsPassed else if seclight.GetDisabled seclight.Enable PlaySound OBJSwitchLights2D endif endif END I didn't know I can use two BEGIN statements in the same script.
wektis Posted December 1, 2011 Author Posted December 1, 2011 I only just realised that myself a day or two ago >< Yay for scripts based on time haha
davidlallen Posted December 1, 2011 Posted December 1, 2011 (edited) (failed to read to end of thread, solution already found) Edited December 1, 2011 by davidlallen
Recommended Posts