turf/door_step1 Heres the problem!
icon = 'icons.dmi'
icon_state = "doorstep"
density = 0
Enter(mob/M)
var/turf/automatic_door/O = locate(/turf/automatic_door)
if(O!= null)
O.Do_Action("Open")
sleep(60)
O.Do_Action("Locked")
turf/automatic_door
proc/Do_Action(DoWhat)
switch(DoWhat)
if("Locked")
icon = 'icons.dmi'
icon_state = "locked"
density = 1
if("Open")
icon = 'icons.dmi'
icon_state = "open"
density = 0
I checked on the map editor, and door_step1 is not dense in any way. Can anyone analyze this and tell me why I can't walk through the turf?
ID:147319
Jul 2 2004, 6:54 pm
|
|
Jul 2 2004, 7:18 pm
|
|
Enter()
|
In response to Garthor
|
|
But what's the problem with the snippet?
|
In response to Garthor
|
|
Understanding the answer helps you understand the problem.
As people probaly don't know. I don't directly copy and paste. I've posted many a question and every one of those answers explained to me has helped me understand the problem and resolve future problems with that particular coding type. |
Easy. You're using the wrong proc.
You should be using Entered() instead, and not having a dense door, or else you should use Enter() correctly so that it returns a value when it should. Lummox JR |
In response to Garthor
|
|
I added this seeing atom/Enter() return 1 worked in the way I wanted it to by letting me pass through everything.
turf/door_step1/Enter() return 1 But still no luck. |
In response to Lummox JR
|
|
I didnt even know there was an Entered proc. lol
I get most of my reference from the blue book. I swear I have never seen it in there. |
In response to ZLegend
|
|
I stand corrected. It isn't in the blue book. Where do you learn those procs from?
|