ID:261614
 
mob/verb/OK()
client.screen += new /butten/OK

How do I remove that OK butten?
Lord of Water wrote:
mob/verb/OK()
client.screen += new /butten/OK

How do I remove that OK butten?

  • By spelling it "button".
  • By doing this:
client.screen -= (locate(/obj/button/OK) in client.screen)

I believe the button has to be an atom of some kind to appear in client.screen.

Lummox JR
In response to Lummox JR
I believe the button has to be an atom of some kind to appear in client.screen.

Unless it's been changed recently, only objects of type atom/movable can be added to client.screen.

-AbyssDragon
In response to AbyssDragon
I know about that, and /button's parent type is /obj, so no worries. Thanks for the spelling correction, and thanks for the locate() proc. (I was trying to use client.screen.Find(), but it didn't work.)

-LoW