Is there away to set a macro for moving forward and back no madder any direction?(like if your facing left and you press A you go forward and if you press D you go backwards)
If so how?
ID:175863
![]() Mar 2 2003, 4:15 pm
|
|
He means like a drive mode, where forward moves you in your direction, backwards moves you in the opposite direction, etc.
client North() step( mob,mob.dir ) South() vat/turf/T = get_step( mob, turn( mob.dir, 180 ) ) mob.Move(T,mob.dir) |
why wont this work:
client North() step(mob,mob.dir) South() var/turf/T = get_step(mob,turn(mob.dir, 180)) mob.Move(T,mob.dir) East() mob.dir = turn(mob.dir,-45) West() mob.dir = turn(mob.dir,45) |
test.dm:75: Inconsistent indentation.
test.dm:77: Inconsistent indentation. but its not inconistent its just like the one above |
client
North() step(mob,mob.dir) South() var/turf/T = get_step(mob,turn(mob.dir, 180)) mob.Move(T,mob.dir) East() mob.dir = turn(mob.dir,-45) West() mob.dir = turn(mob.dir,45) I compiled that and it compiled fine. |
-Dagolar