Alright heres the problem, if I enter
%player.setControlObject(%player)
in the console it works perfectly. But when I enter it in script
%db.doDismount(%player, 1);
%player.setControlObject(%player);
it does nothing, I also tried
%db.doDismount(%player, 1);
%template = %player @ ".setControlObject(" @ %player @ ");";
eval(%template);
echo(%template);
It echoed "12827.setControlObject(12827);"
yet it does nothing. I tried copying and pasting that statement into the console and It worked fine. So what the hell is happening!