- 0
WAI: Spawn each mission only once per restart?
-
Similar Content
-
- 1 answer
- 660 views
-
- 0 replies
- 1690 views
-
- 8 replies
- 3622 views
-
WAI mission announcement/claim mission
By C4-timah,
- extended safe zones
- bandit missions
- (and 4 more)
- 2 replies
- 1114 views
-
- 0 answers
- 1208 views
-
- Advertisement
Question
Caveman
I'm using all static WAI 0.173 missions.
-Each one spawns in the same spot every time. Which is what i want.
-I put plotpoles down in the map editor and sunk them in the ground so people cannot build at these mission spots.
The only problem I'm having sometimes the missions spawn on top of each other (because they are not set to find a random spot.) I thought maybe if i made more missions and had a big ass list of them in the the missionCfg.sqf it would be less of a chance they would not spawn on top of each other...sort of works, but there's that rare time it does spawn on top.
Does anyone know of a way I can get each mission to only spawn in once per restart?
Would this work? (taken from bank robbery)
and if so, where would I put this code. (It's probably not going to work, is it? :P )
if(isNil "script_in_progress")then{
script_in_progress = false;
};
if(script_in_progress)exitwith{
systemChat "This script is only useable once (untill restart)!";
};
script_in_progress = true;
// End Checks if Script is active
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now