villr Posted July 30, 2012 Posted July 30, 2012 Is there anyhow i can see the sun position or see if the sun is up ? I want to make an sun power thing with it. Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS! Scripted since summer 2010
Jaysds1 Posted July 30, 2012 Posted July 30, 2012 well, your going to need to use the time right now, there's no function for getting the sun position or checking if the sun is up... My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
robhol Posted July 30, 2012 Posted July 30, 2012 Based on how difficult R* chose to be when coding it, it probably has a more or less fixed position based on the time. You could probably calculate it somehow. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
Slothman Posted July 31, 2012 Posted July 31, 2012 yes, as far as I have seen, there are no seasons in GTASA, so the sun will always be in a certain position relative to the player depending on the game time. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now