Hi welcome to the forum.
I will do my best to answer your questions.
1. allow changes to weather events during runtime from code - ie not just start and stop storms, but change the parameters of the storm during runtime also from code.
Yes from LUA using the time of day function, you can also set the multiplier for the day and night cycle speed etc etc and in your code you can change the variables when you want to.
2. access to time of day and able to use that time to link to events in the game
Yes, you can access it via code, for example on 7pm the lights in a scene turn on and say 6am they turn off but the lights have to be registered (so to speak) to turn on and off at these times.
- Code: Select all
To register the lights:
int entity.registerTodEven(objectIDNumber);
To remove the light from the TOD system
entity.removeRegisteredTodEvent(objectIDNumber);
From APIEnvironment: https://api.aurasoft-skyline.co.uk/classenv.htmlTalking about weather patterns you could have the weather change on a random time or at say midnight in code, days and months for seasons would be easy to code counting the days that pass in the day/night cycle and 30 days equal a month so on and so on.
3. able to speed up time with sun rotation etc when needed like sleeping etchehehe I answered this above, yes the day/night cycle is controlled by a speed multiplier again this can by accessed via code.
- Code: Select all
function onUpdate(td)
env.setTOD_TimeMultiplier(2); -- run at 2x speed.
env.setTOD_Time(12); -- midday , sun rises at 6 and goes down at 10
end
4. does it has an inventory system to use or do you need to code that yourself ?The Dev's are currently working on a inventory system but you could also write your own using the GUI editor to lay it out and the lua hooks to code the image change and mouse trap etc etc,
5. able to separate rain effects from inside or underneath a building ?This has been talked about not long ago and having a volume/plane that would kull the particles, I believe this is on the to do list for the dev's they would have to speak more about this.
for weather you could use the following API hooks:
Fog: https://api.aurasoft-skyline.co.uk/classscene.htmlParticles:
https://api.aurasoft-skyline.co.uk/classparticle.html