Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help on transfering player from level to level #296063
10/29/09 14:35
10/29/09 14:35
Joined: Sep 2009
Posts: 22
Boca Raton, Florida
M
MarcsVision Offline OP
Newbie
MarcsVision  Offline OP
Newbie
M

Joined: Sep 2009
Posts: 22
Boca Raton, Florida
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

Re: help on transfering player from level to level [Re: MarcsVision] #296066
10/29/09 14:40
10/29/09 14:40
Joined: Sep 2009
Posts: 22
Boca Raton, Florida
M
MarcsVision Offline OP
Newbie
MarcsVision  Offline OP
Newbie
M

Joined: Sep 2009
Posts: 22
Boca Raton, Florida
I also have Player_model var set to 0. how would i get it that which ever player i "click" would make player_model == 1, 2, or 3?

Re: help on transfering player from level to level [Re: MarcsVision] #296151
10/29/09 23:19
10/29/09 23:19
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

In Lite-C try
VECTOR* start_pos = {x=100;y=50;z=30;}


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1