ID:149625
Mar 24 2002, 11:41 am
|
|
I'm not sure how to do it. I've checked everywhere.
|
In response to Ebonshadow
|
|
Here is my code.
mob/var/lock=0 mob/verb/Lock() if(src.lock==0) src.lock=1 else src.lock=0 mob/Move() if(src.lock==1) return ..() else ..() |
In response to Super16
|
|
if(src.lock==1) What's the point of having ..() there? "return" breaks out of the proc entirely. That ..() is just wasting byte-space and compile time. =) |
http://www.byond.com/hub/ hub.cgi?qd=hubIndex;hub=739;channel=1182