A button doing two things with outputs?

Freelancer

Newbie
Joined
Mar 9, 2005
Messages
335
Reaction score
0
hi ! Ive got a button. im going to create a "lock down" i first press button bars slides and door locks and light changes to red. ok i know how to do that. but i whant so next time i press the button i whant a reverse effect. lock down lock up sortof :) any idea on how to make this button work like this?


Thanks ! /Freelancer
 
Try using an logic_branch, it's a boolean. I think that and a filter, hmm... Experimentation.
 
uh problem is that i donno how to use anything else then func_button.... so there is no way to use Outputs more and better or something? there is a output button i dont know what it does.. any of you know? called "Mark" ... man i just whant a button do two stuffs one at first press and another at the sec press...
 
Mark just means to look up what entity it's bound to (The input or output..).

Anyway, if you only want to have that, make two buttons with nodraw on them, and a model or textured button (Which is just a brush or a model!). Place the two nodraw buttons infront of the brush/model, I'd say one unit thick so that they aren't noticable.

Have one start locked, the one you want to use later, and the other start unlocked (usable). When you press the first button (Don't forget to tick the flag "Don't move" on both buttons!),;
Add output - YOUR DESIRED ACTION/S HERE!
Add output - Unlock NameOfTheOtherButtonHere
Add output - Lock THISBUTTON.

Add the same on the other button.
If it doesn't work, make the buttons as strips beside eachother, they might not both get compiled with your map if they're "inside" eachother.

Regards
Dead-Inside
 
yea i knew i could do that but i whanted one button.. ive gaved up and made two then.. but now i need to figure out how to easly create an on off texture becouse H-L2 dosnt have sutch a tex. i think
 
You can have a light or sprite go on/off, that way you can fake an on/off state.
 
Check "toggle" option in button's options and make the outputs "in" and "out"...
 
meh ... allready fixed go download the map and see what ive done ( see other topic )
 
Back
Top