cannot cast a globalvariable to a floatint, types are incomp

Post » Mon Jun 18, 2012 5:09 am

Sorry to ask another stupid question, but can anyone help me with this?

What I want to do is:

Set InfectDay to GameDay ; GameDay is a Global

I have defined GameDay as a GlobalProperty, and defined InfectDay, but I get the error 'cannot cast a globalvariable to a float, types are incompatible' or 'cannot cast a globalvariable to a int, types are incompatible'. So how do I do this?
The code I am using is:

[code]
NewInfectDay = GameDay as float
NewInfectDay = GameDay as int
[code]

Thanks again, and hopefully this will be the last stupid question... :S
User avatar
Patrick Gordon
 
Posts: 3366
Joined: Thu May 31, 2007 5:38 am

Post » Sun Jun 17, 2012 4:24 pm

I thought you'd have to use the globalvariable script for that ?
http://www.creationkit.com/GlobalVariable_Script
User avatar
..xX Vin Xx..
 
Posts: 3531
Joined: Sun Jun 18, 2006 6:33 pm

Post » Sun Jun 17, 2012 9:03 pm

I thought you'd have to use the globalvariable script for that ?
http://www.creationkit.com/GlobalVariable_Script

Of course! :facepalm: I am so used to how it used to be :S Thanks. I knew it was a stupid question!
User avatar
Peetay
 
Posts: 3303
Joined: Sun Jul 22, 2007 10:33 am


Return to V - Skyrim