Hello comunity,
Another day, another question.
I tried nearly everything I can do with this command: "SetFriend" - I don't get any further on my own, so I had to ask.
I have a BLUFOR unit, from which I am the leader. I have an OPFOR unit. I have civilians around.
From mission start, all should be friends. This is part of my INIT
sleep1;
WEST setFriend [EAST, 1];
EAST setFriend [WEST, 1];
CIVILIAN setFriend [EAST, 1];
EAST setFriend [CIVILIAN, 1];
That works.
Now at a specific time, I want the OPFOR unit to rampage and kill everything and everyone, including civilians. I run this script via trigger(on activation: _nul = execVM "ENEMY.sqf"):
WEST setFriend [EAST, 0];
EAST setFriend [WEST, 0];
CIVILIAN setFriend [EAST, 0];
EAST setFriend [CIVILIAN, 0];
I don't care if they also shoot civilian objects. I appreciate it more.
But this is what happens: On that trigger, everybody will shout around, take cover, hit the dirt, raise thier guns, spot enemys (they are also tagged as enemys, I can give orders to target etc) and - do NOTHING else. They don't attack. Don't shoot. Just behave like in combat and stare at each other, standing literatly nose to nose or better, flash hider to flash hider. Thats it. In 2/10 test runs one of them "accidentialy" fires a few shots. No more than that. I can dance around in front of them and nothing will happen.
Its like they are hostile again, but the AI intelligence/skill/spotting range was just set to minus 1Mio and thier guns are all jammed.
What is wrong here?
Is there a better way (I hope there is) to accomplish that?