Jump to content
Sign in to follow this  
thetrooper

civilian headger! Please go away

Recommended Posts

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

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
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

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 by Pergor

Share this post


Link to post
Share on other sites
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
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
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
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
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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×