PDA

View Full Version : SIOC Question



Jerrymc3
10-16-2013, 10:18 PM
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

kiek
10-17-2013, 03:07 AM
You have to add an intermediate value:


C0 = TESTBIT v0590, 4
IF C0
{
v0631 = 0
v0632 = 1
}
ELSE
{
v0631 = 1
v0632 = 0
}



Nico

Seaiii
02-14-2014, 03:49 PM
Does anyone have a SIOC script for cold and dark for default FSX and the OC MCP?

Seaiii
02-14-2014, 04:08 PM
Does anyone have a SIOC script for cold and dark for the FSX default 737 and the OC MCP?

Seaiii
02-14-2014, 04:11 PM
Does anyone have a SIOC script for cold and dark for the FSX default 737 and an OC MCP?

Seaiii
02-14-2014, 10:19 PM
Sorry, I guess I don't know how to post here either.....