If %obj is the player, and %trg is the target:
%bot = new AIPlayer() {
position = %obj.getPosition();
datablock = %obj.getDataBlock();
};
%bot.setDamageLevel(%obj.getDamageLevel());
%bot.mountImage(%obj.getMountedImage(0), 0);
%bot.mountImage(%obj.getMountedImage(1), 1);
// copy appearance of %obj to %bot
%obj.client.camera.setOrbitMode(%bot, effin, forgot, dem, args);
%obj.client.setControlObject(%obj.client.camera);
%obj.setTransform("0 0 -10000");
%bot.setMoveObject(%trg);
%bot.setTrigger(0, true);
// ...
// ... when boost, aka attack is over (%bot is the bot, %obj is the player)
%bot.stop();
%bot.setTrigger(0, false);
%obj.setTransform(%bot.getTransform());
%obj.setDamageLevel(%bot.getDamageLevel());
%obj.client.setControlObject(%obj);
%bot.delete();
Of course not complete, fill in dem' missing parts.