Code:
function spawn_ent_multi()
{
if (connection == 0)
{
player = ent_create (mecha01,pos,player_serv); //if you are the server, set you up as server
}
if (connection == 3)
{
player = ent_create (mecha01,pos,player_serv); //if you are the server, set you up as server
}
if (connection == 2)
{
player = ent_create (mecha01,pos,player_client); //if you are a client, set you up as a client
init_cameras();
movement_func();
hov_mecha_fire(); //include the heavy mech firing function
}
}
this is my entity creation how should i change this and the code in the first post? btw: this function is called in main()