ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

mission with indep side and setcaptive side switch

Open havena opened this issue 10 years ago • 19 comments

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

havena avatar Dec 08 '15 12:12 havena

it seems to be same with unconcious but i dont find the sqf

havena avatar Dec 08 '15 12:12 havena

Could you please elaborate on what the issue is? And you spoke of a fix, what is it?

thojkooi avatar Dec 08 '15 13:12 thojkooi

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

havena avatar Dec 08 '15 13:12 havena

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.

thojkooi avatar Dec 08 '15 13:12 thojkooi

yes true but i dont have AI, i just have player.

havena avatar Dec 08 '15 13:12 havena

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?

commy2 avatar Dec 09 '15 12:12 commy2

the problem is: it is impossible to have a mission with independents side and ACE together... because this script create independent player

havena avatar Dec 09 '15 13:12 havena

No, it switches you to the civilian side.

bux avatar Dec 09 '15 13:12 bux

nop, and its do the same for unconsious + embed on car, but i dont find why..

havena avatar Dec 09 '15 13:12 havena

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)

bux avatar Dec 09 '15 13:12 bux

maybe switch west to civilian but civ to indep?

havena avatar Dec 09 '15 13:12 havena

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.

bux avatar Dec 09 '15 14:12 bux

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

havena avatar Dec 09 '15 14:12 havena

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.

commy2 avatar Dec 09 '15 15:12 commy2

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.

commy2 avatar Dec 09 '15 15:12 commy2

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

commy2 avatar Dec 09 '15 15:12 commy2

hum.. maybe when civ group > 144 they switch to ind ?! i will made some test

havena avatar Dec 09 '15 15:12 havena

@havena Status?

bux avatar Jan 31 '16 08:01 bux

Closing due to inactivity.

jonpas avatar Apr 23 '16 23:04 jonpas