thetrooper 10 Posted March 9, 2014 hey, is anyone else having problems with removing civilian head gear? It seems like they will just randomly wear whatever they want even though you use removeheadgear this; (or whatever its name is) Does anyone know how to get around it? Share this post Link to post Share on other sites
Grumpy Old Man 3545 Posted March 10, 2014 This is caused by some weird randomization script that BI thought it would be good to use, only it isn't. It currently affects quite some stuff, you can read more about it here: http://killzonekid.com/arma-annoyances-say-no-to-randomize/ http://feedback.arma3.com/view.php?id=16017 http://feedback.arma3.com/view.php?id=7805 These are huge issues for mission makers. The only workaround that somewhat works is to add a 2-3 second sleep before the removeheadgear command. Share this post Link to post Share on other sites
fusion13 11 Posted March 10, 2014 This is caused by some weird randomization script thihat BI thought it would be good to use, only it isn't.It currently affects quite some stuff, you can read more about it here: http://killzonekid.com/arma-annoyances-say-no-to-randomize/ http://feedback.arma3.com/view.php?id=16017 http://feedback.arma3.com/view.php?id=7805 These are huge issues for mission makers. The only workaround that somewhat works is to add a 2-3 second sleep before the removeheadgear command. so it would be this: If (isCiv) then { sleep 3; removeHeadgear unitName; // or could I use player? }; Share this post Link to post Share on other sites
Belbo 462 Posted March 10, 2014 (edited) add to init.sqf: execvm "awesomeheadgearremovalscriptforciviliansthatareeitherplacedbyeditororviascriptduringthegameorwheneveridontknowjusthavesomefunwithit.sqf"; create awesomeheadgearremovalscriptforciviliansthatareeitherplacedbyeditororviascriptduringthegameorwheneveridontknowjusthavesomefunwithit.sqf with: if (isServer) then { while {true} do { { if (side _x == civilian) then { removeHeadgear _x; }; }foreach allUnits; sleep 5; }; }; That way no civilians will wear any headgear at all, no matter when they're placed in the mission, in the editor or later via script (or tpwmod or whatever). Via the sleep command you can controll in which intervals the loop is repeated. The only problem that may occur is if your player's units become civilian (for example via a setcaptive command), then they'll lose their headgear too, of course. Edited March 10, 2014 by Pergor Share this post Link to post Share on other sites
thetrooper 10 Posted March 11, 2014 Cool, thanks for that, i will give it a go Share this post Link to post Share on other sites
cobra4v320 27 Posted March 11, 2014 add to init.sqf: execvm "awesomeheadgearremovalscriptforciviliansthatareeitherplacedbyeditororviascriptduringthegameorwheneveridontknowjusthavesomefunwithit.sqf"; create awesomeheadgearremovalscriptforciviliansthatareeitherplacedbyeditororviascriptduringthegameorwheneveridontknowjusthavesomefunwithit.sqf with: From now on all of my script names are going to be this long. :) Share this post Link to post Share on other sites
Belbo 462 Posted March 11, 2014 From now on all of my script names are going to be this long. :) How did you do it before? How else would you distinguish one script from another? Share this post Link to post Share on other sites
fusion13 11 Posted March 11, 2014 How did you do it before? How else would you distinguish one script from another? Ill just go like "awesomeassscripttodothatonethingthatIneedtodo1.sqf" then "awesomeassscripttodothatonethingthatIneedtodo2.sqf"..etc :P Share this post Link to post Share on other sites
dwringer 45 Posted March 11, 2014 Ill just go like "awesomeassscripttodothatonethingthatIneedtodo1.sqf" then "awesomeassscripttodothatonethingthatIneedtodo2.sqf"..etc :P Nonsense. Much better simply to extend filenames to 3-4x their original length. Ever since Win95 introduced "long filenames" a filename is like an intro paragraph to a file. That's why MS Word uses the first lines of your papers to title them by default! Share this post Link to post Share on other sites
fusion13 11 Posted March 11, 2014 nonsense. Much better simply to extend filenames to 3-4x their original length. Ever since win95 introduced "long filenames" a filename is like an intro paragraph to a file. That's why ms word uses the first lines of your papers to title them by default! it all makes sense now! Share this post Link to post Share on other sites
Belbo 462 Posted March 11, 2014 Ever since Win95 introduced "long filenames" a filename is like an intro paragraph to a file. That's why MS Word uses the first lines of your papers to title them by default! if(isServer)then{while{true}do{{if(side_x==civilian)then{removeHeadgear_x;};}foreachallUnits;sleep 5;};};.sqf. But you'd better don't confuse it with if(isServer)then{while{true}do{{if(side_x==west)then{unlinkItem"NVGoggles"_x;};}foreachallUnits;sleep 5;};};.sqf. :D Share this post Link to post Share on other sites