Try modifying the "interval" and "leash" values of the actor


// interval: Sets the distance AI tries to keep between squadmates while moving (default 128)
local.actor interval 32
// leash: Sets the maximum distance the AI will wander from its leash home (default 512)
local.actor leash 2000

// you can check the values like this
iprintln_noloc "actor.leash = " local.actor.leash
iprintln_noloc "actor.interval = " local.actor.interval


Also make sure your "local.movepos" is above the ground level