Jump to content
Sign in to follow this  
Psychopomp7781

Help with Captives

Recommended Posts

Hello all.  I've recently gotten this making a OFP map bug into my viens.  I'm currently working on a hostage rescue (if it will be possible) on Everon.  The only problem I've having is this.  I'd like to have four captives being held in the city of Montignac, by Spetz Natz officers.  Now here's my problem.  If I assign them as a US squad, the Spetz Natz shoot them on sight.  If I assign them with the Spetz Natz then the US troops shoot them when I try to liberate them.  Does anyone know how to stop this from happening?  Thanks for any help you can give me.

Pomp

Tactical Co-op Clan

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">...Now here's my problem.  If I assign them as a US squad, the Spetz Natz shoot them on sight.  If I assign them with the Spetz Natz then the US troops shoot them when I try to liberate them.  Does anyone know how to stop this from happening?  Thanks for any help you can give me.

Pomp

Tactical Co-op Clan<span id='postcolor'>

Are they in a group?  Such as "Hostage"...  If so, then...

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">;This will prevent them being shot by enemies

"_x SetCaptive True" ForEach Hostage

;Also, they should be weaponless, so...

"RemoveAllWeapons _x" ForEach Hostage

;Finally, just for a little polish...

_i = 0

_Last = Count Hostage

#DoAnother

Hostage[_i] SwitchMove "FXStandSurUniv"

_i = _i + 1

?(_i < _Last): Goto "DoAnother"

<span id='postcolor'>

That last one has to be iterated long hand because the SwitchMove command takes a parameter in quotation marks, as does the Statement preceding a ForEach command.  I beleive this would confuse the script parser and fall on it's arse, so....

If they are not in a group, then you'll just have to repeat the first two commands for each one.

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  

×