Jump to content
Sign in to follow this  

Loading a singleplayer scenario/mission with script

Recommended Posts

I'm trying to load a singleplayer scenario/mission from script. What I did so far...

  1. getting the mission name with missionName
  2. loading into a mission in 3DEN editor
  3. used playMission with the string from missionName to load the mission
  4. also used example from wiki with an eventhandler:
//--- adding eventhandler for mission ended
addMissionEventHandler ["Ended", {
	playMission ["","\A3\Missions_F_Bootcamp\Scenarios\Arsenal.VR"];

//--- ending the mission
["end1", true, 0] call BIS_fnc_endMission;

Nothing happens. So if it is possible, what is needed to load a saved singleplayer scenario from debug console or from another mission?


Thank you for your help!

Share this post

Link to post
Share on other sites

I don't have much experience with this. But I did a search in our bottomless pit of forum posts and found this:

It seems the command playMission doesn't work very well, and things behave better when they are organized as a campaign file and then referenced in the campaign description.ext .

Hope that helps 😬

  • Like 2

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now
Sign in to follow this