COMMUNITY FORUM

Can I capture start / stop commands for a FillTrigger?

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created29.01.2017 15:34


Tim Derks (timmiej93) 29.01.2017 15:38
Is it possible to capture the starting and terminating command for a filltrigger? I would like to perform an action when "R" is pressed to start filling, and again when it is pressed to stop filling. does anyone know if this is even possible, and if so, how?

Bilbo Beutlin (BBeutlin) 29.01.2017 19:12
At the standard FillTrigger, you CAN start/stop the overloading.
There must be something incompatible inside your custom LUA.

Tim Derks (timmiej93) 29.01.2017 20:53
I think you misunderstood my question. I'm asking if I can capture the action itself, the action that starts or stops the filling. The starting and stopping of filling works fine, but I want to do more on the same button press (say turn on a lamp when filling is started and turn it off when it stops).

To clarify:
When you hit R when you're next to a FillTrigger, the function "fill" starts looping (it gets called constantly). What I'm looking for is a function that gets called once at the exact moment you hit R to start or stop the filling.

Bilbo Beutlin (BBeutlin) 29.01.2017 23:07
You can bypass (nearly) all standard functions to a customized one by using "Utils.appendedFunction()" or "Utils.overwrittenFunction()".
All you have to know is the original entry point. If you're lucky, you'll find it in the standard LUAs or perhaps in other mods' LUAs. If not, you'll have to track stepwise the system upside-down by dumping one table after another until you find the right entry point. In most cases the function names are self-explanatory.

Tim Derks (timmiej93) 30.01.2017 18:01
For those who might want to know: The start/stop for filling is done in the Fillable class, by the function "setIsFilling()"


Note: Log in to post. Create a new account here.