
sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Nov 17, 2008 03:27 AM
Msg. 1 of 6
i need to know how to make door lock after you enter a trigger volumn. so origonally they are unlocked and once i go through to the other side of the door its locks after you. (i need to know it from scratch) or if u can give me a tut on how to do this.
|
|
|

Ermac
Joined: Nov 24, 2006
Pops up from time to time
|
Posted: Nov 17, 2008 12:23 PM
Msg. 2 of 6
Negative. All you need to do is lock it with a script. (script startup lock_door (sleep_until (= (volume_test_objects lockdoortrigvol (players))15) (device_set_power door1 0) )
The problem with my script above is that it locks the door in whatever position it was in. To counter this, use this script: (script startup lock_door_shut (sleep_until (= (volume_test_objects lockdoortrigvol (players))15) (sleep 10) (sleep_until (= (device_get_position door1) 0) 15) (device_set_power door1 0) )
Should work - as long as you don't go back through the door before it shuts. You'd need a failsafe script of some sort for that occurrence. Edited by drillinstructor on Nov 17, 2008 at 12:30 PM
|
|
|

FoxtrotZero
Joined: Aug 3, 2008
Digging Foxholes by Profession
|
Posted: Nov 17, 2008 08:24 PM
Msg. 3 of 6
You would first need to find out the exact time it takes your door to close. You then need to place. the trigger volume to close the door when you walk into it, and THEN initiate the lock script.
Or you could make sure that, through some algebra, have the door suddenly lock behind you, but before you can have the time to run back. This was done in halo at least once, i think.
Or you could have it lead to a drop, so that when you walk off the edge you hit the trigger volume that closes it. Depending on the geight of the drop, you may not even need to close or lock the door.
Or you could make it a one way door, where the trigger volume in front of the door opens it, and the one behind it closes it. So it can't be opened again.
|
|
|

sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Nov 18, 2008 12:46 AM
Msg. 4 of 6
uh Foxtrot thats not what i had in mind but for other maps ill make ill keep that in reference ty other guys
but the thing im doing is after a bit of walking and fighting so you cant get back out side is but it give the door enough time to close before you make a attempt of getting back outside Edited by sierra117 on Nov 18, 2008 at 12:48 AM
|
|
|

FoxtrotZero
Joined: Aug 3, 2008
Digging Foxholes by Profession
|
Posted: Nov 19, 2008 11:11 PM
Msg. 5 of 6
Like i said, you can make it so the door closes after you. As soon as it is closed, it locks. Just make it so that when you are out of proximity, so it closes, then it will close and then you touch the volume that makes it lock.
Like this. Player walks through door. Player keeps walking. Door closes behind player.
Now, i assume there is a range that a player must be in to have the door open? a few steps out of that range is the script that closes the door.
Player hits trigger volume. Door is instantly locked, and already closed.
It could be done if it was a hallway or the like.
|
|
|

FoxtrotZero
Joined: Aug 3, 2008
Digging Foxholes by Profession
|
Posted: Nov 25, 2008 04:21 AM
Msg. 6 of 6
Your moronic references don't bother me, and i am still ignoring you on the pointless subject. Quote: --- Original message by: FoxtrotZero Like i said, you can make it so the door closes after you. As soon as it is closed, it locks. Just make it so that when you are out of proximity, so it closes, then it will close and then you touch the volume that makes it lock.
Like this. Player walks through door. Player keeps walking. Door closes behind player.
Now, i assume there is a range that a player must be in to have the door open? a few steps out of that range is the script that closes the door.
Player hits trigger volume. Door is instantly locked, and already closed.
It could be done if it was a hallway or the like. Allow me to lay this out again. Think of a hallway. At the end of which is a door. The door opens before the player. And when he is a distance from the door, it closes behind him. Then, some steps later, when you can be sure the door has closed by the time the player is here, a trigger volume will lock the door. This guarintees that the door is fully closed and that the player cannot run back and it will not lock in the process of opening.
|
|
|
| |
|
|
 |
|