Vehicle light properties; script to set all vehicles - Lua Help!
Posted: Tue Aug 03, 2021 11:52 am
Hi All,
I've tried to figure out Lua on a number of occasions but as a relatively proficient python/php/javascript scripter I still cannot get my head around where to start with a lua script...
All I want to do is have a script that blanket sets the headlights (Ctrl+F) for all vehicles to a greater range.. I have no idea where to start; do you do it when the game loads the file at the beginning do you just do it when each vehicle loads, do you do it when you actually switch the light on???
...and then how do you even begin with this; what files do I need how do I structure it etc.
Where do I look for reference to figure out what functions to use, looking at the Giants documentation just confuses me even further!?
Then how is the best way to test stuff (loading the game over and over takes way too long!)
Can anyone point me to any scripts or examples of something that might be half similar to what I want to achieve. If anyone has any advice at all I would greatly appreciate it!.
Note: I'm not asking for someone to just write me a script; I genuinely want to figure out how to do this lua scripting as I've got so many ideas that I could do!
I've tried to figure out Lua on a number of occasions but as a relatively proficient python/php/javascript scripter I still cannot get my head around where to start with a lua script...
All I want to do is have a script that blanket sets the headlights (Ctrl+F) for all vehicles to a greater range.. I have no idea where to start; do you do it when the game loads the file at the beginning do you just do it when each vehicle loads, do you do it when you actually switch the light on???
...and then how do you even begin with this; what files do I need how do I structure it etc.
Where do I look for reference to figure out what functions to use, looking at the Giants documentation just confuses me even further!?
Then how is the best way to test stuff (loading the game over and over takes way too long!)
Can anyone point me to any scripts or examples of something that might be half similar to what I want to achieve. If anyone has any advice at all I would greatly appreciate it!.
Note: I'm not asking for someone to just write me a script; I genuinely want to figure out how to do this lua scripting as I've got so many ideas that I could do!