Gives AI the choice to open the door or not!

This commit is contained in:
d3athrow
2014-01-06 20:29:37 -05:00
committed by ZomgPonies
parent 9f475cd2c9
commit eea98e632d
+7 -3
View File
@@ -155,9 +155,13 @@
else
//world << "[D.name] not close enough | [get_dist(D, target)] | [dist]"
if(tobeopened)
var/nhref = "src=\ref[tobeopened];aiEnable=7"
tobeopened.Topic(nhref, params2list(nhref), tobeopened, 1)
src << "\blue You've opened the nearest airlock to [target]"
switch(alert(G, "Do you want to open \the [tobeopened] for [target]?","Doorknob_v2a.exe","Yes","No"))
if("Yes")
var/nhref = "src=\ref[tobeopened];aiEnable=7"
tobeopened.Topic(nhref, params2list(nhref), tobeopened, 1)
src << "\blue You've opened \the [tobeopened] for [target]."
if("No")
src << "\red You deny the request."
else
src << "\red You've failed to open an airlock for [target]"
return