Jump to content
Sign in to follow this  
Kolmain

Dynamic Hostage

Recommended Posts

Before you say search, I have done and cannot find this or anything i can modify myself to get this working. I attempted using Kylania's hsotage (addaction) but that just simply wont add this stuborn AI to my group.

Theres an AI (named vip) running around Zargabad and you need to capture him, either blufor or redfor. Being PVP, i need this script to add this guy (vip) to the group of the unit that goes up and hits Capture (the action on the vip)

Any ideas?

Heres what doesnt work;

this addAction ["Rescue POWs","rescuePows.sqf",[POWS],1,false,true,"","(_target distance _this) < 3"];

//////////////////////////////////////////////////////////////////
// Function file for Armed Assault
// Created by: kylania
//////////////////////////////////////////////////////////////////

_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 rescue option
_per removeAction _act;

// Join preselected units (POWS) to callers group, silently.
_per joinSilent (group _ldr);


POWS = [vip]

Share this post


Link to post
Share on other sites

I'd suggest creating a group of hostages exactly like in Kylania's example then check it works. Then remov one hostage and edit the code accordingly and check it works again. Either that or create the group of hostages and set the other 3 or 4 to 0% condition of presence. Might work, might not.

Share this post


Link to post
Share on other sites

Got it to work if I just add another to the array but I need it to add just the VIP not the entire team :/

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×