Author Topic: And another VCE problem...  (Read 740 times)

Hello again,

No edit button so I made a new topic. How do I get it to check two bl_id's? It half works, however, I get the scanner going red and giving me the text and the sound but the door still opens and for the other guy it goes green, opens, no error message but plays sound?



Sorry for another topic, trying to make this build fancy :P

here's the setup you want i think
0 input>check ID>target lines 1 2
1 onfalse>check ID> target lines 2 3
2 ontrue>open stuff
3 onfalse>error message

Have you removed the onActivate event from the actual door?
Because if you don't, it will open no matter what.

here's the setup you want i think
0 input>check ID>target lines 1 2
1 onfalse>check ID> target lines 2 3
2 ontrue>open stuff
3 onfalse>error message
Will give it a try.
Have you removed the onActivate event from the actual door?
Because if you don't, it will open no matter what.
Yup.

No edit button:

Okay, phflack, it works, but the print aint changing. Not sure why. Thanks for helping.

have them be triggered...
i just gave you a theory of it, not the actual events, ie, you may want to increase the range of the numbers to include those of the print events, post another picture and i'll tell you what you're doing wrong

You could duplicate the events on the same brick and have one ifbl_id on one set and one on the other, using the outputs on the ends to determine which true/falses are being used.

or use my way and have one brick :D


As you requested.



I think that number three should be enabled and that three should not be in the the top one either. Was messing about trying to get it to work.


Code: [Select]
(0 Delay) onActivate -> Self -> VCE_ifValue -> <var:client:bl_id> -> == ->10705 -> 1 2
(0 Delay) onVariableFalse -> Self -> VCE_ifValue -> <var:client:bl_id> -> == -> 16360 -> 2 4
(0 Delay) onVariableTrue -> Self -> setPrint -> ScannerG
(0 Delay) onVariableFalse -> Self -> setPrint -> ScannerR
(0 Delay) onVariableFalse -> Self -> playSound -> Beep_Denied.wav
(4000 Delay) onActivate -> Self -> setPrint -> ScannerH

Try that.

Posting from phone!
Will give it a try, thanks.

Thanks for the help guys, finally fixed it.

I'll lock this now.