i have a playerselect screen with 3 players. I used an ENABLE_CLICK action on each player to transfer to the other level. i would like to know how do i take the player i chosen also to the next level. This is my scirpt thus far:
function load_race ()
{
me = NULL;
level_load ("dragracenocar.wmb");
wait (3);
}
function load_car ()
{
me = NULL;
if (player_model == 1)
{
player = ent_create ("car1.mdl", start_pos, NULL);
}
if (player_model == 2)
{
player = ent_create ("car2.mdl", start_pos, NULL);
}
if (player_model == 3)
{
player = ent_create ("car3.mdl", start_pos, NULL);
}
}
action rotate_model ()
{
my.emask |= ENABLE_CLICK;
my.event = load_race;
load_car ();
}
I think my problem is the VECTOR* position in my ent_create. I have this as my start_pos var:
var start_pos[3] = 100, 50, 30; // the player appears at x=100, y=50, z=30 in the level
But that is giving me syntak error. Does anyone see any mistakes that I should fix and help me solve this problem.
Thanks