public void ServerCmdDropPlayerAtCamera(coGameConnection client) { // If the player is mounted to something (like a vehicle) drop that at the // camera instead. The player will remain mounted. coPlayer player = client["player"]; coShapeBase obj = null; obj = player.getObjectMount(); if (!console.isObject(obj)) { obj = client["player"]; } obj.setTransform(((coCamera)client["Camera"]).getTransform()); obj.setVelocity(new Point3F("0 0 0")); client.setControlObject(player); console.Call("clientCmdSyncEditorGui"); }