Bioz 1 Posted April 16, 2012 Hi guys the idea is the following: I would like to see certain prisoner units to join me after I rescue them ( for example by walking near them) and I want them to change their status.. I mean that they're on setcaptive True and I want them to be shot by the enemies when they join my team. I've been looking with the "search" option of the forum but I didn't find anything useful, or anyway I didn't understand. Can you help me? thanks Share this post Link to post Share on other sites
tom3kb 15 Posted April 16, 2012 Make trigger and: in condition write: ap distance prisoner1 <5 on activation write: [prisoner1,prisoner2,prisoner3] join ap; prisoner1 setcaptive false; prisoner2 setcaptive false; prisoner3 setcaptive false; ap is your unit, prisoner1,2,3 are prisoners Ps: make all prisoners setcaptive true on mission start. Share this post Link to post Share on other sites
1para{god-father} 105 Posted April 16, 2012 or if you want anyone in your group to capture him Init on Prisoner this addAction ["Capture Him!", "capture.sqf"];this setcaptive true;removeAllWeapons this; this setBehaviour "CARELESS"; capture.sqf _per = _this select 0; // Person who had the addAction _ldr = _this select 1; // Person who used the addAction _act = _this select 2; // ID of the addAction // Remove the capture option _per removeAction _act; _per setcaptive false // Join the group. [_per] joinSilent group _ldr; _per EnableAI "MOVE"; Share this post Link to post Share on other sites
Bioz 1 Posted April 16, 2012 Make trigger and:in condition write: ap distance prisoner1 <5 on activation write: [prisoner1,prisoner2,prisoner3] join ap; prisoner1 setcaptive false; prisoner2 setcaptive false; prisoner3 setcaptive false; ap is your unit, prisoner1,2,3 are prisoners Ps: make all prisoners setcaptive true on mission start. It works perfectly, thanks a lot Share this post Link to post Share on other sites