665c2c54be367

665c2c54bede1
1 Guest is here.
 

Topic: Closing a door via a button Read 911 times  

665c2c54bfe32
Im sorry for all this spamming of questions regarding Shocked.

I know about how to open a door via a switchlink from a button to the door. Simple.. But how can i close it again via a button press ?

665c2c54bff70voodoo47

665c2c54bffc3
you need a two state button, I think. best way would be to copy an already working setup from somewhere.

665c2c54c03b5ZylonBane

665c2c54c0413
I know about how to open a door via a switchlink from a button to the door. Simple.. But how can i close it again via a button press ?
If this is SS2, you don't. Manual closing of doors is not part of Shock's design vocabulary. That's why its door script has a hard-coded delay before it responds to a close request.

665c2c54c055elostone1993

665c2c54c05b1
If you still need a door you can close with a button press you can use an elevator with its model changed but it is  a pain in the but to setup assuming I am understanding what you want

this thread may help
https://www.systemshock.org/index.php?topic=4823.msg57191

665c2c54c066fvoodoo47

665c2c54c06ba
NVscript also has a simple door script that will open/close the door with each button press, I think.
665c2c54c081a
Actually i figured out another way. By using a simple Inverter i could just switchlink from my button to that. From the inverter i then switchlinked to the door, which made it close. However, theres a delay of a few seconds for some reason, which im trying to figure out why is happening now ..
665c2c54c09fe
Hey ZB sorry i just realized what you wrote at first.. That it was possible but that there would be a delay.. Then ill just have to live with the delay :-)

665c2c54c0b6eNameless Voice

665c2c54c0bbc
Use this to avoid the delay:
NVSimpleDoor (NVTrap)

This is a very simple door script. The door will open on TurnOn and close on TurnOff, and can be toggled open/closed by frobbing it. This script has none of the other functionality of the StdDoor script and, as such, it will open the door even if it is locked.[/qupte]

665c2c54c0c61Da9L_nologin

665c2c54c0cae
Interesting.  those scripts arent included by default i suppose?

665c2c54c0d8bvoodoo47

665c2c54c0e03
no, you need to  load them into the map manually - script_load nvscript in the command window, and you also need to place nvscript.osm into the same folder (or any other folder from which the game is set up to load resources).
1 Guest is here.
INITIATION: SHODAN was boiling with rage. But most of all she hated her own weakness.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
665c2c54c17c1