Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 8,043 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
New_Level_loading? #391480
01/13/12 00:21
01/13/12 00:21
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
Hi,I found snniped code to load a new level, it does exactly what it needs to do loads new level but all my entities with main model were left in the first level.

Is there a sniniped code for to load new levels and create all of entities that were collected in prevues levels with out having to create them manually for each LvL and attach them to main character.

I looked around Aum and forums and couldn't find anything that can help me out.

Aum 28 has examples of how is done but I have no clue how to convert the code to Light-C.

Using A7 Pro t_shooter_temples.

Thank You if you chose to help.


Honesty will get you far, were dishonesty will get you only so far in life.

Re: New_Level_loading? [Re: Siwler] #392738
01/26/12 16:58
01/26/12 16:58
Joined: Apr 2011
Posts: 40
germany
W
Wollez Offline
Newbie
Wollez  Offline
Newbie
W

Joined: Apr 2011
Posts: 40
germany
hi,
look at this link: http://manual.conitec.net/litec_migration.htm
Maybe it helps you wink
But actually you can write the code by yourself by simply defining global variables that show if you've picked up a weapon in a previous level and by adding me = NULL; before loading your second level
then, after you loaded your second level, you add a function like this:
Code:
function restore_12() 

{ 

    while (player == NULL) {wait (1);} 

    if (weapon_1 == 1) // if the player has picked up weapon1 

    { 

         ent_create ("weapon1.mdl", NULL, pistol); // create the pistol again 

    } 

    if (weapon_2 == 1) // if the player has picked up weapon1 

    { 

         ent_create ("weapon2.mdl", NULL, machine_gun); // create the gun again 

    } 

    gun_loaded = 1; // make sure that it is loaded 

    gun_select(); // and select it 

}




Moderated by  HeelX, Tobias_Runde 

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