I was given a script by someone who's an experienced LUA coder, but the script itself is rather unoptimized and unfinished (so sayeth the author - he just didn't have interest in it), but it recreates rain, fog, thunder, and lightning in such a great way that I have to use it for a map set in a hurricane.
Here's my previous thread, where they tell me to ask you guys:
The problem I'm having is that in-game, I can run the script no problem in the console. Getting it to run through triggers in the map is quite different.
The script is located in /lua/hurricane/rain.lua but directing the trigger to RunPassedCode of TRIGGER_PLAYER:SendLua(string.format('include(%q)' ,location)) simply corrupts the VMF. The comma in the way it's formatted ends up corrupting the VMF, and while the map will build, it won't run in-game when triggered.
If needed, I can post the script if you need to see it, but my question is this: is there a way to for my map to tell each client to start rain.lua once they enter the map? And if so, how would it be formatted since Hammer doesn't like quotation marks, commas, or backslashes? What am I doing wrong?