Death(mob/M.)
if(M.hp == 0)
world<<"<font color=blue>[M.key] has been killed by [usr.key]"
usr.kills += 1
M.deaths +=1
if(M.alien ==1)
M.loc=locate(22,22,3)
if(M.soldier ==1)
M.loc=locate(41,41,5)
for(var/obj/healthbar/H in M.client.screen)
ID:171535
Sep 10 2004, 6:11 pm
|
|
When u r a alien u get warped to the marine base(enemies) and if u r a soldier r just teleported to your base....
|
Sep 10 2004, 6:18 pm
|
|
take away the period after mob/M and try else if
|
Your first problem is that you're using usr in your proc. Your second problem is that you're using two variables where one will suffice (if they are always defined by each other, for example, if alien is 1, soldier is 0, then they should just be one variable, with 1 representing alien, and 0 representing soldier).
|