View Full Version : UE3 - UT3 Kismet Question
Kantham
9th Mar 2008, 01:15 PM
I need a action switch/toggle that will basically cut all connections from "In" to "Out" once a clock enters "toggle". Like in the picture below.
http://img252.imageshack.us/img252/6615/kismetquestionpngnf2.png
I tried all available switches and toggle, and it doesn't seem to give me want I want. Anyone know how I could work this out? Thanks.
InAction
10th Mar 2008, 05:02 AM
Are you saying that you want to cut it when a clock reaches a certain time? Tried making a comparison action? "If I've passed this time, cut it" :)
haslo
10th Mar 2008, 05:27 AM
Make a boolean variable, test for it between the bunch of actions and the switch in the center. Set it to true initially, and with a clock thingy set it to false once enough time has passed.
Kantham
10th Mar 2008, 09:33 AM
Are you saying that you want to cut it when a clock reaches a certain time?:)
No, a counter below is going to shoot that clock. Why I want to do this is because a bunch of AI factories are going in, and I want to make it stop. Abort inside the factories don't work since all the connections are out of "all dead" so it never ends, I thought that having a manual cut in there would do it.
Make a boolean variable, test for it between the bunch of actions and the switch in the center. Set it to true initially, and with a clock thingy set it to false once enough time has passed.
Not sure exactly what you're suggesting here. Maybe it's because I haven't worked with boolean so far, but maybe if you could picture me that, I'd get it. :)
InAction
10th Mar 2008, 09:42 AM
A boolean is just a true or false check, isn't it what you need? "If the counter shot the clock" - return true and cut. :)
Kantham
10th Mar 2008, 10:51 AM
Okay I just messed and I think I get the point of "Compare bool". How do I make the variable take the clock effect and change to "False"?
http://img111.imageshack.us/img111/8563/kismetquestion2pngnf8.png
InAction
10th Mar 2008, 11:15 AM
You need to add a "New Action > Set Variable > Bool" that is activated somewhere in your clock effect. So let's say you want the compare bool to always return true and cut it with false - your default bool in the image should be true. Add the set variable node, connect target to your bool, add a new bool with false to value.
So let's say I want to use button A, but for the door to open, I need to press button B first. So when I press button B, it must send a true value to my compare bool for Button A.
I hope it's understandable. :)
Edit*
This should help (image)
http://xs225.xs.to/xs225/08111/kismetsample419.png
http://xs225.xs.to/xs225/08111/kismetsample419.png
Kantham
10th Mar 2008, 11:45 AM
Heck yeah. :)
Worked. Thanks.
Now I'll be able to make the final scene without all the dummies spawning in my movies.
InAction
10th Mar 2008, 12:00 PM
Glad to be of assistance. ;)
willhaven
11th Mar 2008, 04:08 PM
You can also use a Toggle on/off to Toggle true/false of a Bool. In that particular instance, I would have used a Gate action (G+click). You can set a Gate to be initially closed, then Button A would go to the Open of the gate and Button B would go to the In of the Gate.
I only use Bools if I want something specific to happen if Button A hasn't already been pressed.
FWIW there are a few useful shortcuts too:
G+Click - Gate
B+Click - Bool
Ctrl+B+Click - Compare Bool
T+Click - Toggle
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.