Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
its quite simple.
-add an on/off input to your chip that connects to whatever part you want to provide the input (for example the engine on/off toggle. note however that for this case of an engine being on/off you should rather check whether its rps is within the stall limit)
-inside the chips logic connect that on/off signal to a composite write and choose a channel
-connect that composite to your lua script
-get the boolean value from the composite signal with the input.getBool(channelnumber)
-you can now use that boolean value inside your script. if you want to draw a filled rectangle do a simple if booleanname==true then screen.drawRectF() end
of course the opposite is also true. you can export any boolean by doing output.setBool(), do a composite read and hook that up to a logical output.