Here i have created a Power Generator Script. This will control the "off/on-state" for perks & lights(inc light models), as well as enabling/disbling perks trigs along with any other "powered machine" you wish to add to it. Its quite handy for maps that rely on lights & also for those who just want to add a little something extra to ur map to keep players busy then this'll do that too aha.
CREDITS: TheRevenantSkull - for helping me out with understanding "turning fx's on/off" on an earlier version of this. HitmanVere - for helping me out with understanding how to make a var a global one and for the general approach of the buy/deposit fuel func. "some dude on ugx" - who posted a topic about using a hud to display engine(player health). Ive since deleted that bookmark so i dont know his name but i am essentially using the same example he provided in his tut. & of course the "gang": JohnDoe Numan Dr. Dronken - for all their help along the way.
Link to the map_source file: https://mega.nz/file/Y9x0SbqA#zrVbnjfBBXLFMoFFsWfg_nXho4JLKM2VLFBdiFbGgak I've incuded the map_source file coz i have setup the lights kvps pretty well as seen in the video so if you wish to use them for ur map then open the map and copy the light & info-full. Or if you want to build off this template map then feel free to do so.
End result video: https://www.youtube.com/watch?v=Nlq44ORuwhs&ab_channel=PhilGibson NOTE: in this video ive set the "tank limit" to 15 seconds for testing purposes & to obv show you its on/off state w/out the video lasting for 30mins lol However: In the mod folder download ive set the "full tank limit" to 30 minutes with each fill up consisting of 5 minutes(6 fill ups for a full tank) with each fill up costing 500 points(3000 points for a full tank). Installation: Hope you enjoy it! Phil