Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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