Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
casemonster

Call a mission script from an addon.

Recommended Posts

Hello,

I'm looking for a method to call a mission script from an addon script. I can grab the path of the script i want to run from the addon script: mpmissions\__cur_mp.takistan\myscript.sqf, but I can't find a solution to run the script.

I've tried to execVM to the file without any success. I've also tried to #include the file, however #include doesn't like variable path names.

Currently this pulls the mission script for me, however execVM doesn't like it:

_path = format ["mpmissions\__CUR_MP.%1\", worldName] + "myscript.sqf";

[] execVM _path;

Does anyone know of a reliable method to call a script like this or am I out of luck?

edit: Just saw the 'ADDONS - Configs & Scripting' section', can a mod move this post if you see it? thanks

Edited by CaseMonster

Share this post


Link to post
Share on other sites
Sign in to follow this  

×