Hi all i'm using Malver's war demo and i've taken out alot of the procs for a game i'm making.
I'm getting an invalid expression error at this line.
If(O) sleep(O.speed) // Wait before moving the projectile forwards again
Its all indented right and the funny thing is if I coment it out I get another invalid expression error for line 1 of another dm file. Its part of the loop so heres the full code for it.
var/obj/Weapon/O = new /obj/Weapon/SBall
O.dir = ch.dir
O.loc = ch.loc // These top 3 lines create the projectile and place it where the mob firing is
step(O, dir) // Move the projectile forward
var/turf/Y = get_step(O, O.dir)
if(!Y) // If the projectile hits the end of the map...
var/turf/X = O.loc
for(var/mob/M as mob in X) // If another mob is hit by the projectile...
if(M == ch) // Make sure the projectile didn't somehow hit the person who shot it
if(O) sleep(O.speed) // Wait before moving the projectile forwards again
So anyone see the prob?
Jan 16 2003, 7:44 am