well i have failed miserably, i found two examples of ent_morph in the aums, unfortunatly it is for explosions and not quite what i need, so i tried this
Code:
function ship_camera()
{
if (key_1 == on) {camera_number = 1;}
if (key_2 == on) {camera_number = 2;}
if (key_3 == on) {camera_number = 3;}
if (camera_number == 1) // top view
{
camera.x = player.x;
camera.y = player.y;
camera.z = player.z + 900; // play with this value
camera.pan = player.pan;
camera.tilt = -90;
}
if (camera_number == 2) // simulated first person view (that's just another isometric view, really)
{
camera.x = player.x -40 * cos(player.pan);
camera.y = player.y - 0 * sin(player.pan);
camera.z = player.z + 0;
camera.pan = player.pan;
camera.tilt = 0;
}
ent_morph(my,bridge_mdl);
if (camera_number == 3) // true isometric view
{
camera.x = player.x - 200 * cos(player.pan); // 200 = distance
camera.y = player.y - 200 * sin(player.pan); // same value here
camera.z = player.z + 150; // above the player
camera.pan = player.pan;
camera.tilt = -27; // look down at the player
}
wait (1);
}
what i hoped for here was when 2 was pressed then the bridge mesh would appear and the ship mesh would be gone, however as soon as i launch the code the bridge mesh is there straight away even though the camera is set to 1 for the start. cheers for any and all help.