Arma 3
justBuild
justokin  [developer] 29 Jun, 2018 @ 8:03pm
Method to disable mod use in server/mission
//Set Variables in a mission init file or will work if updated globally during mission.

// Variables need to be set globally use: missionNameSpace setVariable
/// ie. missionNameSpace setVariable ["justBuild_Toggle",true,true];

// Mod is enabled and Variables are set to nothing on default.(nil) To reset any setting, return value to nil ie, missionNameSpace setVariable ["justBuild_Toggle",nil,true];

///See the Examples at the bottom of page for in game usage
// To change toggle an option , give variable any value/anything, try: True
///▼▼Below are all the variables with Default Values (Features ENABLED)


justBuild_Toggle = nil; ///Disables entire mod
justBuild_LTE = nil; ///No emplacements, No walls, No fob,NOREARM ,NOPREFAB. Basically just hescos and sandbags

justBuild_NOAMMOARSENAL = nil; ///Gets rid of any arsenal access at supply crate
justBuild_NOFOBARSENAL = nil; ///Gets rid of any arsenal access at the fob
justBuild_NOFOB = nil;
justBuild_NOEMP = nil;
justBuild_NOPREFAB = nil;
justBuild_NOCRATE = nil;
justBuild_NOREARM = nil;

///June 2019 update
justBuild_NOTOOL = nil; ///Takes away requirement for having an entrenching tool in inventory

justBuild_ONLYSQUADLD = nil; //Only Squadleader can place objects
justBuild_ONLYSQUADLDFOB = nil; //Only Squadleader can build fobs
justBuild_ONLYSQUADLDBIG = nil; //Only Squadleader can place large objects
justBuild_ONLYENGINEER = nil; //Only Engineer can place objects
justBuild_SQUADLDENGINEER = nil; //Must be Either Squadleader or Engineer. Overrides justBuild_ONLYENGINEER and justBuild_ONLYSQUADLD.

////FOB
justBuild_ONLYSQUADLDFOB = nil; //Only Squadleader can build fobs

///August 2019 update
justBuild_BAREFOB = nil; ///Only allows barebones FOB (Can be used together)
justBuild_ONLYRALLY = nil; ///Only allows respawnpoint (Can be used together)


// To change toggle an option , set variable to anything, try: True

// Variables need to be set globally use: missionNameSpace setVariable





// Examples;


// 1 -- To disable the entire mod set

missionNameSpace setVariable ["justBuild_Toggle",true,true];

// 2 -- ***LITE VERSION***
// Disables emplacements, walls, FOB,REARM ,PREFAB. Basically just hescos and sandbags

missionNameSpace setVariable ["justBuild_LTE",true,true];


// 3 -- To disable the FOB and the crate having arsenal access

missionNameSpace setVariable ["justBuild_NOAMMOARSENAL",true,true];
missionNameSpace setVariable ["justBuild_NOFOBARSENAL",true,true];


// 4 -- To disable Ammocrate and the FOB completely

missionNameSpace setVariable ["justBuild_NOCRATE",true,true];
missionNameSpace setVariable ["justBuild_NOFOB",true,true];


// 5 -- To disable the emplacements

missionNameSpace setVariable ["justBuild_NOEMP",true,true];


// 6 -- Squadlead and Engineer only. Does not require entrenching tool in inventory

missionNameSpace setVariable ["justBuild_SQUADLDENGINEER",true,true];
missionNameSpace setVariable ["justBuild_NOTOOL",true,true];

// 7 -- Squadlead can build FOBs and big objects. Does not require entrenching tool in inventory

missionNameSpace setVariable ["justBuild_ONLYSQUADLDFOB",true,true];
missionNameSpace setVariable ["justBuild_ONLYSQUADLDBIG",true,true];
missionNameSpace setVariable ["justBuild_NOTOOL",true,true];

8 -- Only Bare FOB and Respawn pole. Does not require entrenching tool in inventory

missionNameSpace setVariable ["justBuild_BAREFOB",true,true];
missionNameSpace setVariable ["justBuild_ONLYRALLY",true,true];
missionNameSpace setVariable ["justBuild_NOTOOL",true,true];
Last edited by justokin; 20 Feb, 2021 @ 8:13pm
< >
Showing 1-4 of 4 comments
Gripen 3 Jul, 2018 @ 6:23am 
Not working for me :/ Not sure if i did it right ... i did make sqf file with this code into mision folder, even try ext file - entrenching tool was still in my game.
Gripen 4 Aug, 2018 @ 9:23am 
update - i does work only when entered in console while playing ... but only one-time (not preventing players to pick or use tool later)
Gripen 14 Aug, 2018 @ 8:15am 
any ideas how to make that code maybe repeat itself after 5 minutes or so ?
Sam (Squire) 4 Jan, 2021 @ 6:32pm 
For anyone wonder why aren't the commands working if you didn't read the beginning change nil to 1 or back to nil to have an effect.
< >
Showing 1-4 of 4 comments
Per page: 1530 50