obj/props/emerg
icon='props.dmi'
icon_state="emerg"
density=1
opacity=1
name= "Emergency Panel"
verb/Use()
set src in oview(1)
set hidden=1
view(6)<<"<font color=purple><b><small>[usr] has opened the Emergency Hatch!"
EmergSpace()
Problem description: I've been trying to get this code to work. Whenever a player opens up an Emergency Hatch, any mob within a certain area get sucked out into space, and essentially killed instantly.
obj/proc/EmergSpace()
src.icon_state="emergopen"
src.density=0
src.opacity=0
for(var/mob/client/M in view(6))
step_to(src,5,5)
sleep(50)
src.icon_state="emerg"
src.density=1
src.opacity=1
return
And then as soon as they Enter the space turf it kills them (already have that coded in and working.
I just can't get the sucking to work for the life of me. Then, once the emergency hatch automatically closes, players can no longer get sucked outside.
http://files.byondhome.com/Zecronious/Suck_src.zip