Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 01/30/26 19:44
Zorro version 3.0 prerelease!
by TipmyPip. 01/30/26 13:36
Historical Data with the 64bit FXCM Plugin
by Martin_HH. 01/28/26 18:45
ZorroGPT
by TipmyPip. 01/28/26 09:48
SGT_FW
by Aku_Aku. 01/27/26 15:10
Buy A8 Pro Version
by Ezzett. 01/26/26 14:22
C++ direct start requires Zorro S
by jcl. 01/23/26 14:29
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Lapsa), 10,813 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Sfrdragon, mayarik, Castromangos, Quantum, stephensdeborah
19195 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