client
Center()
var/mob/M = locate(/mob) in get_dir(usr,mob)
this doesnt work. I want it so it locates M in the space infront of the client that called the center verb. Can anyone help?
ID:175645
Mar 24 2003, 10:45 am
|
|
client this doesnt work. I want it so it locates M in the space infront of the client that called the center verb. Can anyone help? |
You're using get_dir() when you should be using get_step(). Also, usr and mob are the same thing for client/Center() so that won't help you at all. Try this:
client/Center() |
In response to tenkuu
|
|
thanks alot, credits will be given where deserved
|
Erdrickthegreat2 wrote:
client this doesnt work. I want it so it locates M in the space infront of the client that called the center verb. Can anyone help? You're using the wrong proc, which is why this isn't working for you. get_dir() will return a direction, not a location; and since usr and mob are the same in client/Center(), the direction between them will be 0. What you need is get_step(usr,usr.dir). Lummox JR |
ETG