Gamehour scripting help please

Post » Fri Mar 28, 2014 1:50 am

I must have done this 10 times without a hitch. Been away from CK for some time and know I'm dumb, I can't see what is wrong with this...

ObjectReference Property Xmark1 AutoEvent OnTriggerEnter(ObjectReference akActionRef)If akActionRef == Game.GetPlayer()                Float fTime = GameHour.GetValue()If fTime > 10.0 && fTime < 15.0 ;enable pullbarXmark1.Enable()ElseIf fTime < 10.0 || fTime > 15.0 ;disable pullbarXmark1.Disable()EndIfEndifEndifEndEvent

Errors are-

psc(7,14): variable GameHour is undefined

psc(7,23): none is not a known user-defined type

psc(7,6): type mismatch while assigning to a float (cast missing or types unrelated)

I'm sure it's under my nose but can't figure it.

Thanks for your time.

User avatar
Keeley Stevens
 
Posts: 3398
Joined: Wed Sep 06, 2006 6:04 pm

Post » Thu Mar 27, 2014 7:46 pm

You need to add GameHour as a property in the script, that should solve all your problems.

GlobalVariable Property GameHour Auto

Don't forget to fill it in the CK.

User avatar
Emily Graham
 
Posts: 3447
Joined: Sat Jul 22, 2006 11:34 am


Return to V - Skyrim