The online racing simulator
IS_OCO help with setting 2 bulbs
Hey,
I'm trying to add a packet to set a traffic light to red1 + red2. When I do this though, I get this error:




Is there a way around this?
No & yes | Smile

true BulbInfo.Red1 | BulbInfo.Red2
Quote from EfsaneTosun :No & yes | Smile

true BulbInfo.Red1 | BulbInfo.Red2

Hi,
I've just tried that, but I get this error?



I'm probably missing something so simple, but I've put my code below (in plain text) if it helps?

while(LightSequenceID1 == true)
{
insim.Send(new IS_OCO
{
ReqI = 0, // Request ID
OCOAction = OCOAction.OCO_LIGHTS_SET, // Tells the lights to be set
Index = OCOIndex.AXO_START_LIGHTS, // Selects temporary lights
Identifier = 1, // Traffuc light Identifier set in SHIFT + U
Data = true, BulbInfo.Red1 | BulbInfo.Red2
});
}

translate sorry Big grin


while(LightSequenceID1 == true)
{
insim.Send(new IS_OCO
{
ReqI = 0, // Request ID
OCOAction = OCOAction.OCO_LIGHTS_SET, // Tells the lights to be set
Index = OCOIndex.AXO_START_LIGHTS, // Selects temporary lights
Identifier = 1, // Traffuc light Identifier set in SHIFT + U
Data = BulbInfo.Red1 | BulbInfo.Red2
});
}

Quote from EfsaneTosun :translate sorry Big grin


while(LightSequenceID1 == true)
{
insim.Send(new IS_OCO
{
ReqI = 0, // Request ID
OCOAction = OCOAction.OCO_LIGHTS_SET, // Tells the lights to be set
Index = OCOIndex.AXO_START_LIGHTS, // Selects temporary lights
Identifier = 1, // Traffuc light Identifier set in SHIFT + U
Data = BulbInfo.Red1 | BulbInfo.Red2
});
}


Thanks, it worked Smile

FGED GREDG RDFGDR GSFDG