AKPiggott Posted May 14, 2002 Share Posted May 14, 2002 I got my button brush (entitied func_usable) with the "player-use" flag ticked, but when I activate it, it disappears. What gives? Link to comment Share on other sites More sharing options...
RelFexive Posted May 15, 2002 Share Posted May 15, 2002 Now, I can't remember who posted this little tutorial and I can't find the thread, so they'll just have to live with it.... This is how I create buttons for doors and force fields. This method can likely work with lifts too. Basic door with button: Step 1 Create your walls and door with brushes Assigned 'func_door' to the brush you want as the door A CHECK the 'TOGGLE' checkbox Give the door brush a texture Create a 'targetname' key with a 'door1' value Step 2 Create a new brush for your "off state button" Set the button brush to a 'func_usable' Size and position the button on the wall (or wherever) Give the button a 'kejim/switch' texture Press "S" to edit the texture, use the 'Fit' button near 'Axial' Create a 'targetname' key with a 'door1' value (like door brush) Step 3 Select your "off" state button and clone it Place the new "on" state button in exact same place as the "off" state button Give the new "on" state button a 'kejim/switch_on' Press "S" to edit the texture, use the 'Fit' button near 'Axial' CHECK the 'STARTOFF' checkbox Create a 'targetname' key with a 'door1' value (like door and off state brush) Step 4 Create a new brush slightly overlap and near the switch brushes Set the classname to 'trigger_multiple' Give the new brush a 'system/trigger' texture Position and size the brush where you'd stand to press switch Set angle of the brush (180, 90 etc) so angle arrow points in the XY Top view CHECK the 'PLAYERONLY' checkbox CHECK the 'FACING' checkbox CHECK the 'USE_BUTTON' checkbox Create a 'target' key with a 'door1' value Create a 'wait' key with a '1' value Compile map and test. This is just one basic framework of a door and button. It can be used on force fields too, and 'func_wall' brushes as well. And one can of course change the settings to obtain different results from a door/field/lift. But if you use a 'wait' key on the 'func_door' brush, the door will close after it is opened automatically. To keep a door up till the button is pressed again, do not use a 'wait' key on the door brush. Only thing is, the TOGGLE does not exist in JK2radient. Plus, each button only switches between the 'off' state and the 'on' state when the button is pressed; I'm trying to find out how to make it switch automatically from 'on' to 'off' after the button is used.... Link to comment Share on other sites More sharing options...
Manquesa Posted May 15, 2002 Share Posted May 15, 2002 I think I saw somewhere that func_usables are one-time only things. Therefore, once you use it, it's gone. I may be wrong though. I'd use func_buton instead. Link to comment Share on other sites More sharing options...
B0MBER II Posted May 15, 2002 Share Posted May 15, 2002 Fexx posted that under one of my topics Link to comment Share on other sites More sharing options...
Cmdr. Antilles Posted May 15, 2002 Share Posted May 15, 2002 You have to check the 'always on' box for it to stay where it is, and just activate it's target. ^^ It's in the entity info box. ^^ Link to comment Share on other sites More sharing options...
AKPiggott Posted May 20, 2002 Author Share Posted May 20, 2002 Sorry for the delayed reply, but I just wanted to say thanks everyone. Link to comment Share on other sites More sharing options...
Cmdr. Antilles Posted May 20, 2002 Share Posted May 20, 2002 No problem. Glad we could help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.