The Old Man
2002-08-31, 23:32
Author Message
converted_posts
Joined: 05 Aug 2002
Posts: 7
Posted: 05 Aug 2002 01:53 am Post subject: Buttons Doors in MP and no scripts. Finally. by omnix
--------------------------------------------------------------------------------
Because I did not go to the trouble of getting the information, I won't act like I came up with this, so I will post What NIB said. it does work, though kinda a pain still but better than script movers and such..........
NIB said.............
After getting just as annoyed as everyone else about button based doors not working in MP without scripts, I asked the question of one of the Gray Matter guys over on the #$@#$ (edited for peace sake) center forums. He responded by saying that you actually CAN make doors without scripting. Here's how:
Alright, well here is how you make a func_door open only by a func_button (Of course this is only for multiplayer).
Assuming you already have a func_button and func_door.
The func_button and the func_door(s) do not need anything special.
Have the func_button target the 4 following entities:
"target_lock" with the settings:
key 0 (unlocks the door)
target the_func_door
"target_delay" settings:
wait 0.25
target the_func_door
"target_delay" settings:
wait 0.5
target target_lock (the one below)
"target_lock" settings:
key -1
target the_func_door
So, if you kind of play everything in your head, when the func_button is pressed, it will fire the target_lock, unlocking the door (cause when the door is "targeted" the game automatically locks it). Then the target_delay of 0.25 will open the door 0.25 seconds after the button is pressed. Then the target_delay (with 0.5) will fire the target_lock (key -1) which locks the door therefore only the button can open the door.
I hope this helps. Let me know if you need more examples or more of an explanation.
--------------------
I am cacabunny
And here's the kicker, IT WORKS! The only thing I did differently is that he says to target all 4 entities with the func_button. I don't think you're really supposed to do that. You have the func_button target all 3 entities except the second "target_lock" since that is targeted by the previous target_delay. So, get out there and make your button based doors! Oh, and make sure your angle on your button is set right. In my first one the button slid to the right.
-Posted by omnix32
Back to top
omnix32
Joined: 07 Aug 2002
Posts: 10
Posted: 07 Aug 2002 01:11 pm Post subject: um
--------------------------------------------------------------------------------
Any one need help with this as Nib missed a step just post.
fun mapping.
converted_posts
Joined: 05 Aug 2002
Posts: 7
Posted: 05 Aug 2002 01:53 am Post subject: Buttons Doors in MP and no scripts. Finally. by omnix
--------------------------------------------------------------------------------
Because I did not go to the trouble of getting the information, I won't act like I came up with this, so I will post What NIB said. it does work, though kinda a pain still but better than script movers and such..........
NIB said.............
After getting just as annoyed as everyone else about button based doors not working in MP without scripts, I asked the question of one of the Gray Matter guys over on the #$@#$ (edited for peace sake) center forums. He responded by saying that you actually CAN make doors without scripting. Here's how:
Alright, well here is how you make a func_door open only by a func_button (Of course this is only for multiplayer).
Assuming you already have a func_button and func_door.
The func_button and the func_door(s) do not need anything special.
Have the func_button target the 4 following entities:
"target_lock" with the settings:
key 0 (unlocks the door)
target the_func_door
"target_delay" settings:
wait 0.25
target the_func_door
"target_delay" settings:
wait 0.5
target target_lock (the one below)
"target_lock" settings:
key -1
target the_func_door
So, if you kind of play everything in your head, when the func_button is pressed, it will fire the target_lock, unlocking the door (cause when the door is "targeted" the game automatically locks it). Then the target_delay of 0.25 will open the door 0.25 seconds after the button is pressed. Then the target_delay (with 0.5) will fire the target_lock (key -1) which locks the door therefore only the button can open the door.
I hope this helps. Let me know if you need more examples or more of an explanation.
--------------------
I am cacabunny
And here's the kicker, IT WORKS! The only thing I did differently is that he says to target all 4 entities with the func_button. I don't think you're really supposed to do that. You have the func_button target all 3 entities except the second "target_lock" since that is targeted by the previous target_delay. So, get out there and make your button based doors! Oh, and make sure your angle on your button is set right. In my first one the button slid to the right.
-Posted by omnix32
Back to top
omnix32
Joined: 07 Aug 2002
Posts: 10
Posted: 07 Aug 2002 01:11 pm Post subject: um
--------------------------------------------------------------------------------
Any one need help with this as Nib missed a step just post.
fun mapping.