Spawning? in Developer Help
|
|
Code:
proc Spawn(var/obj/Balloons/T,var/Count) while(Count)
if(T.name=="Red") var/obj/Balloons/Red/R=new/obj/Balloons/Red R.loc=locate(/turf/Start) if(R.Target==null) for(var/obj/End/A in world) R.Target=A walk_towards(R,R.Target,R.Speed,R.Speed)
Count-=1 world<<Count sleep(10)
|
Problem description: Whenever I call in walk_towards, it goes threw the density objects. But if I use something else beside that, the balloon won't move at all. Help?
|