proc Night() for(var/turf/T in world) if(T.icon_state == "")//if its a day icon T.icon_state = "night"//make them night spawn(12000) //20 min Night()//call it again if(T.icon_state == "night")//if its night T.icon_state = ""//make the icons day spawn(12000)//20 min Night()//again world New() ..() Night()
Now, when I add this, the turfs dont change to the night icons state. also I want This to be called for all Obj, and i also want it to give all human players mobs(not including NPC's)if(T.icon_state == "night")then mobs var night = 0 and if(T.icon_state == "") then mobs var night = 1
If anyone can help me do this, i will be greatly appreciative
______
|ETG|
--------
New()
..()
Night()
I think the problem is in here, the proc seems to be fine, But the Obj and the Mobs var i still would need help with.
______
|ETG|
--------