ok.
mob/verb/build()
new/turf/water(usr.loc)
How do i make the turf appear infront of the usr Not under?
ID:178382
![]() May 21 2002, 12:38 pm
|
|
The var usr.dir should tell the direction usr is facing.
The proc get_step(Ref,Dir) should get the turf in the Dir direction from Ref. In theory, new/turf/water(get_step(usr,usr.dir)) should work, but I have not actually bothered to type it in and compile it. Also, you might want to put a check in to see if what is returned by get_step() turns out to be null. |
then put get_step into avar like so...
var/R=get_step(whatever)
then when you call new /mob/p(R)
put R in there