Greet to all!
I have made a little script that it would turn on and off the smoke depending on the left engine RPM.
It uses export.lua
-------------------------------------------------------
to section "function LuaExportStart()" insert
-------------------------------------------------------
status1 = 3
status2 = 0
-------------------------------------------------------
-------------------------------------------------------
to section "function LuaExportBeforeNextFrame()"
-------------------------------------------------------
if (status1 == 1) then
if (status1 ~= status2)
then
LoSetCommand( 78 )
status2 = status1
end
end
if (status1 == 0) then
if (status1 ~= status2)
then
LoSetCommand( 78 )
status2 = status1
end
end
local engine = LoGetEngineInfo()
if (engine.RPM.left >= 80 ) and (engine.RPM.left <= 100) then
status1 = 1
else
status1 = 0
end
------------------------------------------------------
This script will make smoke turn on between 80% and 100%.
If you press smoke once on start than it will turn off smoke in this range.
I have been able to make it work properly so on start you wont get smoke turned on.
Greet!