![]() |
Destroy a mission?
OK, I'm dumb :) I can't figure out how to destroy/unload an entire mission using the mission number. Here's what I have:
Code:
int i = GamePlay.gpNextMissionNumber(); |
your Actors get the missionNumber too:
0: 1: 2: So you must look for the MissionNumber (ActorName) or you create a List or Dictionary and store the actors there with the missionNumber, then you can destroy them easily. Simply add new actors in OnActorCreated to it, and remove it after destroy(). |
public virtual void OnMissionLoaded(int missionNumber)
There is also the above available, which may allow you then to list the mission number and mission name. noting each time the same mission name is loaded it gets a new sequence mission load number so you need to know both. However as Kodiak notes only the ai or objects loaded within the mission need killing off. You may be able to reference all objects or ai associated with the load mission number and destroy all. |
you can't destroy static object at the moment, you get no handle to it.
|
Quote:
|
Why just load a different blank map then the next mission? This will wipe it all??
|
All times are GMT. The time now is 07:30 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.