ID:177859
 
Hi =) id like to ask how we can make it so if someones wants to build Something ,it makes the Something in the way he's facing,
O>X
O=Person
>=way he's facing
X=The Thing He's building
k Thanks . =)
Turles9000 wrote:
Hi =) id like to ask how we can make it so if someones wants to build Something ,it makes the Something in the way he's facing,
O>X
O=Person
=way he's facing
X=The Thing He's building
k Thanks . =)

Use get_step() to determine the next turf over in the right direction, then build there.
mob/verb/Build()
set src=usr
var/turf/T=get_step(usr,usr.dir)
if(!T) return
new usr.buildtype(T)

Lummox JR