1 registered members (AndrewAMD),
1,268
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Stopping levels from running and changing levels
[Re: Knuckles]
#154986
09/19/07 13:29
09/19/07 13:29
|
Joined: Oct 2006
Posts: 873
Shadow969
User
|
User
Joined: Oct 2006
Posts: 873
|
Quote:
The current level will terminated. The engine cache holding level entity files is purged. All current entities in the old level are removed, all entity pointers referring to them cannot be used any longer. All actions assigned to or functions called by level entities - that means all functions in which the my pointer is not zero - are automatically terminated at their next wait instruction. The game script itself will keep running and won't change, even if a different script was assigned by WED to the new level. One frame cycle after this instruction the level is loaded, two frame cycles after the instruction the local entities in the new map are created and their actions are started. Wait two frame cycles (wait(2);) before modifying the level, for instance by creating entities. When giving a HMP or MDL file name, the new level contains this terrain or model only. When using an empty string (""), an empty level will be loaded. During the load process, the on_level event can be used to display a progress bar or animation on a panel. One frame after level loading the last_error variable indicates loading errors.
From the almighty manual
|
|
|
Re: Stopping levels from running and changing levels
[Re: Shadow969]
#154987
09/20/07 20:58
09/20/07 20:58
|
Joined: Jul 2006
Posts: 91 Florida, USA
Knuckles
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2006
Posts: 91
Florida, USA
|
Alright, I do not know what is going on... When I try to change levels, the level loads, but the game freezes. It's zoomed in using the camera that's in the WMB file. Yet, when I call the level from the startup() function, everything works fine. The camera works and everything. I don't see what the difference is. It's not calling any other function but that one.
It is hard to explain what I mean, if this sounds confusing, so I would be more than happy to email the source code to someone who is willing to help me figure it out to show you what I mean. At this point, I am stumped at what the problem could be.
|
|
|
|