door
icon = 'NewDoor.dmi'
icon_state = "Closed"
density = 1
opacity = 1
verb
opening_closing()
set src in view(1)
if(icon_state = "Closed")
icon_state = "Open"
density = 0
opacity = 0
flick("Opening", src)
return
if(icon_state = "Open")
icon_state = "Closed"
density = 1
opacity = 1
flick("Closing", src)
return
Problem description:So i was trying to setup so doors will open and close and no matter where or when i use oview or view i get undefined proc? i dont understand why, could someone please help me see what i am missing
Secondly, your if statements are using the assignment operator (=) when you mean to use the evaluation(?) operator (==). Currently, as long as you are using version 511, your door is always going to open and never close.