Basically I was thinking of making a gun which would shoot anyone immeadiately in the users line of fire up to a certain distance (7 or so tiles).
I was wondering how I would do this, and eventually thought of using get_step_to(usr,mob,7) but I am not to sure how to manipulate this to work.
ID:272275
May 24 2008, 8:27 pm
|
|
May 24 2008, 8:50 pm
|
|
youd have to write a loop that got the get_step of the turfs in front of you
|
In response to Falacy
|
|
Could you perhaps tell me more? Elaborate a bit?
|
In response to Demon_F0rce
|
|
mob/proc/Line() |
In response to Falacy
|
|
I see, I see... So I'd use the for proc to make the program keep tracking down forward through the turfs until I find a mob?
|
In response to Demon_F0rce
|
|
well that one would keep going down the line even if it hit somebody
mob/proc/Line() something like that to stop after hitting a target |
I would recommends using hub://shadowdarke.pixelprojectiles
You can use procs like step_to, but the results won't be that realistic. |
In response to Nickr5
|
|
I see what you mean, and I know how to work it, but it's not what I was looking for. Thanks anyway.
|