Home   Help Search Login Register  

Author Topic: Capturing The General After taking out his men  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Capturing The General After taking out his men
« on: 28 Dec 2003, 20:32:01 »
Have a group of guys (6). One of them(the General) will need to be captured. After the group is cut down to Two(2) I would like the General to give up. I have down loaded the Hostage Tut. can I cut and paste the Sqs. set_captive in my init. folder?? Or is there something else I needed to. Thanks for any and all help ???

 
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Pravit

  • Guest
Re:Capturing The General After taking out his men
« Reply #1 on: 28 Dec 2003, 21:48:20 »
Hi Sharkyjoe,

I don't know about the "set_captive" script you're talking about, but you can just as easily use this script:

_general = _this select 0
_bodyguards = group _general
@count units _bodyguards==2 AND alive _general
titleText["Wahh! We surrender!","PLAIN"]
"_x setunitpos ""UP""" foreach units _bodyguards
"removeallweapons _x" foreach units _bodyguards
"doStop _x" foreach units _bodyguards
"_x setcaptive true" foreach units _bodyguards
@aP distance _general <5
"[_x] join aP" foreach units _bodyguards

Save it as "surrender.sqs" in the folder of your mission.
Then go to the init field of the general and type [this] exec "surrender.sqs"
Make sure to name your player "aP"

When down to two men, they both drop their guns and start following you when you get close enough to them.
If I could remember what the animation was called, we could make them put their hands behind their head while they're waiting for you to come get them. We could also make them say "We surrender!" in Russian, but I don't know what the sound file is called...

What about something even more dramatic? How about we give the general a gun and make him shoot the last bodyguard when it's time to surrender? Problem is, I don't know how to do that yet...
« Last Edit: 28 Dec 2003, 21:53:13 by Pravit »

Offline rhysduk

  • Former Staff
  • ****
Re:Capturing The General After taking out his men
« Reply #2 on: 28 Dec 2003, 23:41:37 »
Wouldnt u need a loop in this ??

What i mean is when the mission starts this script is started and the game flows through it from start to end ....

When it gets to the end wont it just stop but not exit ???

I might be wrong though

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Pravit

  • Guest
Re:Capturing The General After taking out his men
« Reply #3 on: 29 Dec 2003, 00:43:38 »
Nope, because of the @  
This makes it wait and keep checking until a certain condition is met(which is whatever comes after the @)
Try it yourself and see  :)
I did forget the exit, though, go ahead and put that in
« Last Edit: 29 Dec 2003, 00:48:29 by Pravit »

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Capturing The General After taking out his men
« Reply #4 on: 29 Dec 2003, 01:55:13 »
Hey  that work GREAT! :D
Uhhmm is there any way to have the General join any group that captures him??( this is a MP Mission). :-\
By the way the Set_Captive Script I was mentioning was a down loaded on this site from the Hostage tut.  Just thought you'd like to know :)

Worked on it some more and modified  the script for MP:
_general = _this select 0
_bodyguards = group _general
@count units _bodyguards==2 AND alive _general
titleText["Wahh! We surrender!","PLAIN"]
"_x setunitpos ""UP""" foreach units _bodyguards
"removeallweapons _x" foreach units _bodyguards
"doStop _x" foreach units _bodyguards
"_x setcaptive true" foreach units _bodyguards
@(leader aP) distance _general <5
"[_x] join aP" foreach units _bodyguards

Big key here is leader ap so anyone in my Group can capture him if I get killed off. Can there be an "or" for another group called aP2?? :P Just in case my other MP friends get to him before I do??
« Last Edit: 30 Dec 2003, 00:36:35 by sharkyjoe »
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Capturing The General After taking out his men
« Reply #5 on: 30 Dec 2003, 01:06:34 »
This came up before.   We solved it.   Use the forum search function.

I think the answer is that you basically have to duplicate the whole capture script for each MP group.    Use variables to "switch off" the capture script for the other groups once he is captured.
Plenty of reviewed ArmA missions for you to play

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Capturing The General After taking out his men
« Reply #6 on: 31 Dec 2003, 01:17:11 »
Well, I searched, searched and ...searched some more and didn't find anything. :(
 I just will live with the one group in charge of finding and capturing the General.

If anyboy is reading this to help them in simular situtation this script really works well. :thumbsup:

Thankyou Pravit and Macguba for all the help. I am considering this problem solved.  ;D
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance