mob/Player
Move()
if (src.cantmove >= 1)
return 0
..()
But that makes the player unable to rotate, to change its dir. I want the player to be unable to walk, but to still be able to rotate. How do I do this?
In certain situations the player cannot move:
mob/Player But that makes the player unable to rotate, to change its dir. I want the player to be unable to walk, but to still be able to rotate. How do I do this? |
Feb 10 2017, 1:17 pm
|
|
The second argument passed to Move is the dir that the object intends to move in. Before returning early, you can simply set dir to that.
|
How? (I'm still learning)
mob/Player lol like this? |
Built-in procs like Move() are given arguments when they're called by the engine, just like how you can call your own procs with arguments. To see what arguments are passed to these procs, check the DM Reference by pressing F1. In this case, you want the "Move proc (movable atom)" page.
// For the /mob/Player type: |