hey guy I need a little help. I'm not that great at scripting but I could use some help with this. I'm creating a mission where a fire team is HELOed in to rescue a BLUEFOR pilot. I have guards set up around the pow and I don't want them to kill the pow soon as the mission starts. I've been using this as an example to go by: http://www.kylania.com/ex/?p=11 but I've noticed that if the POWs are BLUEFOR then it doesn't work. any suggestions? this is how I have it set up:
r1-fireteam leader (me) int field: POW= [p1]
POW: p1 (name of pow) int field: this addAction ["Rescue POWs","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"]; removeallweapons this; this disableai "MOVE"; this setbehaviour "CARELESS"; this setcaptive true;
then I have a trigger activated by BLUEFOR and type set to switch and in the on act field I have this: p1 enableAI "MOVE";
here's the sqf code I'm using:
_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
// Group given in the arguments section (ie: [POWS]
_grp = _this select 3 select 0;
// Remove the rescue option
_per removeAction _act;
// Join preselected units (POWS) to callers group, silently.
{[_x] joinSilent _ldr} forEach _grp;
If anyone could help me out I would appreciate it.