mission with indep side and setcaptive side switch
ACE3 Version: 3.4.0 stable
Mods:
@CBA_A3 @ace
Placed ACE3 Modules: N/A
Description: dear,
i have a mission with indep side and an issue with setcaptivitystatus / getcapticitystatus who use setCaptive / captiveNum command.
https://community.bistudio.com/wiki/setCaptive switch unit to indep side.
for fix it i change that by an PV.
best regards
it seems to be same with unconcious but i dont find the sqf
Could you please elaborate on what the issue is? And you spoke of a fix, what is it?
use "unitName setCaptive status" switch unit to indep side. So if u use indep in mission, thats boring... for prevent this i just change setCaptive by setvariable and captiveNum by getvariable
setCaptive switches units to the neutral side, which is equal to civilian iirc. This is used to prevent AI from shooting captive or unconsicous units. Using a set/getvar would not solve that.
yes true but i dont have AI, i just have player.
ACE_common_fnc_setCaptivityStatus does put you on the neutral side. Thats exactly what it's supposed to do. Why is that a prolem again?
the problem is: it is impossible to have a mission with independents side and ACE together... because this script create independent player
No, it switches you to the civilian side.
nop, and its do the same for unconsious + embed on car, but i dont find why..
https://www.youtube.com/watch?v=QSc3vKoVMAY See the purple color? That's the color for civilian. If your unit turns green/independent then there's something funky with your test environment.
(unconscious and captive units are handled the same)
maybe switch west to civilian but civ to indep?
You can't do that. Blufor, Opfor, Independent units don't attack civilians. But if you switch a civilian to an independent unit that unit could get attacked by a side that is hostile to the independent side.
i say actually setcaptive maybe switch west to civilian but civ to indep?
cause i have nothing in my funky test environment.. :) and civ switch indep sometime
i will made more test
I just put down a few units, all with this in their init lines:
[this, "test", true] call ace_common_fnc_setCaptivityStatus
And then checked their side. I then repeated without restarting, but this time using:
[cursorTarget, "test", false] call ace_common_fnc_setCaptivityStatus
unit | side cursorTarget when captive | side cursorTarget when not captive
NATO Rifleman | Civ | West
CSAT Rifleman | Civ | East
AAF Rifleman | Civ | Indep
Civilian | Civ | Civ
Rabbit | Civ | Civ
Empty MATV | Civ | Civ
Game logic | Civ | Logic
All of these were the same side they would have been when not using the init lines in the first place.
Even using:
[cursorTarget] join createGroup east;
[cursorTarget, "test", true] call ace_common_fnc_setCaptivityStatus;
[cursorTarget, "test", false] call ace_common_fnc_setCaptivityStatus;
works as expected and puts the unit back to the east side again.
The units also shoot at each other according to whatever side they belong too, although they seem to have problems spotting each other when they stand in a line...
hum.. maybe when civ group > 144 they switch to ind ?! i will made some test
@havena Status?
Closing due to inactivity.