I know that the devs are working on triggers at the moment so I was wondering if it would be possible to code some type of triggering system to automatically repair a damaged car after a given "x" amount of time. My thought on that was to be able to create a pit stop of sorts with maybe a car sized trigger box so when you pull into it and stop, it will repair the damage instead of using the reset button. My thought is that when we eventually have multiplayer capability, you don't want people being able to instantly repair damage because of sloppy driving ( like myself ) by hitting control+R and then continuing on with the race. By creating maps with maybe a couple of garages/pits strategically placed about the map, people with damaged cars could pull into the pits, wait a few seconds ( a wait penalty ) and then continue on. Your thoughts?
I think that the trigger system will be tied into lua, and since the repair button is just tied into a lua function it should be easy to repair, refuel, and otherwise change the attributes of a vehicle.
That sounds entirely doable. Even if the devs don't add it you could probably do it your self once the scripting system in implemented.
Triggers are working now. For example, the following code will return the car (with id = 0) to the spawn (CTRL + I): Code: local b = BeamEngine:getSlot(0) if b ~= nil then b:queueLuaCommand("obj:requestReset(RESET_PHYSICS)") end I will ask tdev, is it possible to reset the car in place by the LUA (like CTRL + R).
Sounds promising, but I wonder if that could still be done without it effecting the respawn. In other words if you manually repair the vehicle would it take you back to the pit/repair station?