Community Forum

filling function

Forum Overview >> Scripting

CategoryScripting
Created03.11.2015 07:23


Ludovic Fritz (mrludo40) 03.11.2015 07:25
Hello,
I just ask if there is a command that I could use for the filling function to my code

code:

if self.isTurnedOn then


if self.attacherVehicle == nil then
bar = 0;
else
bar = 2;
bar = bar + (math.random()-0.01)
end;

end; ;

because his works when I vacuum is I wish it also works for filling.
I think it is in (if self.isTurnedOn and "?" then), but I even find it on the website or find the code .lua
thank you

Emil Drefers (Unknown) 05.11.2015 18:01
Hi,

please check the fillable.lua at http://ls-mods.de/scriptDocumentation.php to see how the filling works.

Cheers,
Emil


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