Example:
/proc/callAfter(object,procName,delay)
spawn(delay)
if(object)
call(object,procName)()
return
/obj/proc/doSomething()
world << "See you in 50 ticks"
callAfter(src,this.realname,50)
return
ID:1714198
Nov 5 2014, 7:38 pm
|
|||||||
| |||||||
Procs need to be real objects, but until that happens (ie a while), it'd be nice to be able to deal with them a little easier via a "realname" (yes that's a terrible name) var for the end of the path (since that's what call() uses), and maybe a keyword for referencing itself (eg "this" or "self").
Example: /proc/callAfter(object,procName,delay) |
This sounds like a venture into the dark depths...
|
That might be a little easier to implement.