Thanks jcl, that fixed my problem. However I've now got another problem. When I use ent_create to create a player, the action is applied on the server but not on the Clients. ie. The model is created in the level and can be seen on the server and all clients but the action (move_player) is only applied to the server. Here's some code:

action move_player()
{

my.pan = random(360); // face random direction

// increment number_of_players
number_of_players += 1;
send_var_to(NULL, number_of_players); //send number_of_players to all clients
my.player_number = number_of_players; // set the player_number skill
send_skill(my.player_number, SEND_ALL); // send player_number skill to all clients

while(1)
{
my.pan += 5;
wait(1);
}

}


//--------------------------------------------------------------------
// CREATE PLAYER - create player at random location
//--------------------------------------------------------------------
function create_player()
{

// get random start vector around center of level
vecFrom[0] =-400 + random(800);
vecFrom[1] =-400 + random(800);
vecFrom[2] = 200;

// create player's entity
player = ent_create(str_board,vecFrom,move_player);

}

So the model created when running as the server rotates but the models on the clients do not and number_of_players is not being incremented.

Any suggestions?

Thanks,
Paul