-
SIOC Question
How do you use the testbit function to turn off rather than turn on a led?
EX. This is on the Project Magenta B747-400 Overhead Panel
Var 0590, name DRIVE_DISC, Link FSUIPC_INOUT, Offset $5635, Length 2
{
V0631 = TESTBIT V0590 ,4 I want this led (V0631) to turn off when
V0632 = TESTBIT V0590 ,4 this led (V0632) turns on and vise versa
V0633 = TESTBIT V0590 ,5
V0634 = TESTBIT V0590 ,5
V0635 = TESTBIT V0590 ,6
V0636 = TESTBIT V0590 ,6
V0637 = TESTBIT V0590 ,7
V0638 = TESTBIT V0590 ,7
}
Jerry
-
Re: SIOC Question
You have to add an intermediate value:
Code:
C0 = TESTBIT v0590, 4
IF C0
{
v0631 = 0
v0632 = 1
}
ELSE
{
v0631 = 1
v0632 = 0
}
Nico
-
Re: SIOC Question
Does anyone have a SIOC script for cold and dark for default FSX and the OC MCP?
-
Re: SIOC Question
Does anyone have a SIOC script for cold and dark for the FSX default 737 and the OC MCP?
-
Re: SIOC Question
Does anyone have a SIOC script for cold and dark for the FSX default 737 and an OC MCP?
-
Re: SIOC Question
Sorry, I guess I don't know how to post here either.....