Here:
(script
startup delete_door
(sleep_until (= (device_get_position "name of panel") 1)
)
(begin
(object_destroy "name of door")
(device_set_position "name of panel" 0)
)
))syntaxes:
sleep_until <condition> (this makes the script wait until something is fulfilled before continuing)
= <variable a> <variable b> (this outputs a boolean of 1 or 0 depending on if
a equals
b or not)
begin <command> .......... (begin allows many commands at once to happen if they need to be in sync with eachother when they happen)
I think if you just want to make it so that actors spawn if you open a certain door, you just create a script and spawn them from behind a door that is set to 'operate from one side only'
Edited by OrangeJuice on Apr 29, 2013 at 06:51 PM