why isnt this working?
its supposed to make the player follow whoever is entered. but it doesnt.
function servercmdsecretfollow(%client,%followobj)
{
%player = %client;
if(!isObject(%client)){return;}
for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
if(%cl.name$=%followobj||%cl.BL_ID$=%followobj){
%pl = %cl;
}
}
%pos = %pl.player.position;
%client.player.setaimLocation(getword(%pos,0) SPC getword(%pos,1) SPC getword(%pos,2)+3);
%client.player.setmovedestination(getword(%pos,0) SPC getword(%pos,1) SPC getword(%pos,2)+1);
%client.sfollow = schedule(500,0,"secretfollow",%client,%followobj);
}