is ther any way to make this piece of code work so you can attack from more than one square away but only in the direction you are facing? (i.e if i was using a rifle as a weapon i can only attack in the direciton i am facing but i will have a range of greater than one square)
verb/Primary_Attack(mob/M in get_step(src,src.dir)
set category = "Battle"
var/damage = rand(1/2)
if(usr.playPWeapon == "")
alert("no primary weapon equiped")
else
if(M.client)
usr << sound(primarySound)
M.playHP -= damage
M.death_check(src)
else
usr << sound(primarySound)
M.playHP -= damage
usr << sound(M.attackSound)
M.death_check(src)
thank you to anyone who can help me....
YOUR HELP WILL BE GREATLY APPRECIATED!!
ID:147429
Jun 1 2004, 5:39 pm
|
|
Jun 1 2004, 6:02 pm
|
|
You've posted this 3 times now... same message... Please go to my response in "Newbie Central" where this post belongs.
|