obj
random
proc/nothing()
world << "Nothing."
mob
proc
Initiate()
for(var/obj/o in world)
o.nothing()
That obviously doesn't work. So my question is how to call a proc like from above... Hope that isn't too confusing.
ID:268403
Jul 12 2004, 5:17 pm
|
|
I have a few questions on procs, and calling them.
obj random mob proc That obviously doesn't work. So my question is how to call a proc like from above... Hope that isn't too confusing. | |
#2 Jul 12 2004, 5:33 pm
|
||
Firstly, use dm tags when showing code.
If you want to know how to call a proccess in general then here's my way:
| ||
#3 Jul 12 2004, 6:37 pm
|
|
Devourer Of Souls wrote:
I have a few questions on procs, and calling them. Most of your questions can probably be answered by reading this section of the Blue Book. | |
#4 Jul 13 2004, 12:20 am
|
|||
That may be incorrect, but that's the way I want to set it up so that effects may be called in such a way. With this for example.
This however returns an error..Undefined proc. Any help? | |||
Maybe try for(var/obj/random/O) instead. You need to tell BYOND the correct typepath or it doesn't know about the proc.