Get Weather Script Help Please

Post » Fri Jan 23, 2015 8:14 am

I'm having a lot of trouble scripting this. What I want is that when player is inside a trigger "OnEnter" that the weather is checked to see if it is raining. If it is then some objects are enabled. I'll change the event to whatever is required later but for now "OnEnter" is the basis. I've been through the Wiki and tried various scripts. The error I usually get is that I can't compare a none to an integer. I'd show you my script but I'm sure its way off what I need. Help please.

User avatar
Alexxxxxx
 
Posts: 3417
Joined: Mon Jul 31, 2006 10:55 am

Post » Thu Jan 22, 2015 11:26 pm

The mod Real Shelter does this exact thing, have a look and see if their source files are included.
User avatar
Amy Gibson
 
Posts: 3540
Joined: Wed Oct 04, 2006 2:11 pm

Post » Thu Jan 22, 2015 5:01 pm

I'm not using SKSE so some scripts I can't look at. I'll show you where my limited knowledge has got me in the script.

Import WeatherImport DebugObjectReference Property ObjRef AutoWeather Property CurrentWeather AutoCurrentWeather = Weather.GetCurrentWeather()Event OnTrigger(objectreference akactionref)        If akactionref == Game.GetPlayer()If CurrentWeather = ; no idea what to put hereObjRef.Enable()EndIfEndIfElse; do nothingEndEvent
User avatar
gemma
 
Posts: 3441
Joined: Tue Jul 25, 2006 7:10 am


Return to V - Skyrim