Ex:
obj
level1
icon = null
name=""
New()
spawn(rand(100,150)) Enemies()
..()
proc
Enemies()
for(var/mob/M)
switch(rand(1,1))
if(1)
new/mob/monsters/P/slimer(src.loc)
sleep(200)
Enemies()
How do i execute that by a verb?
-Genjura
ID:163953
Jul 25 2007, 2:30 pm
|
|
How do i start an objects proc in a verb.
Ex: obj How do i execute that by a verb? -Genjura |
In response to Rifthaven
|
|
Thx but i got it.
|
*edit*
Noticing that the Enemies proc has something spawn on the object's location, it would need to be...
for(var/obj/level1/O in world)
O.Enemies()