For bots, EngFunc_RunPlayerMove
For non-intelligent entities, EngFunc_MoveToOrigin
For monsters, EngFunc_WalkMove
Not tested but...
PHP Code:
EngFunc_WalkMove(edict_t *ent, float yaw, float dist, int iMode)
Where:
- You get
yaw using EngFunc_VecToYaw to convert vector to yaw (it returns a float value)
- The distance to walk is
dist
-
iMode
PHP Code:
#define WALKMOVE_NORMAL 0 // Normal walkmove
#define WALKMOVE_WORLDONLY 1 // Doesn't hit ANY entities, no matter what the solid type
#define WALKMOVE_CHECKONLY 2 // Move, but don't touch triggers
Give a try and tell us.
__________________