Home   Help Search Login Register  

Author Topic: The one I resue , won't be rescued  (Read 704 times)

0 Members and 1 Guest are viewing this topic.

dertn

  • Guest
The one I resue , won't be rescued
« on: 20 Feb 2003, 02:06:55 »
I have a scenario where the player has to rescue 3 soldiers taken as POW.
The 3 POW are  a part of a convoy  and I used to the group tool to add them as cargo in an ural. I also used this setcaptive true and I used the removeallweapons command. But when I shoot the russkies the POW just drives on with the ural, and the mission fails all the time...

My Q: How do I make 3 POW be a part of an enemy convoy and, when the russkies are dead, join the player...???

Thanx in advance

Bronski

  • Guest
Re:The one I resue , won't be rescued
« Reply #1 on: 20 Feb 2003, 02:13:13 »
One thing you shouldn't do is use the group tool to move them in cargo.

use this "unitname moveincargo vehiclename"

To have them join your group after the soviets are dead you will probably have to set something up to check if the ruskies are dead and when they are then the join command is activated.

Sorry i can't tell you more but i am sure someone else in the forums will know what exactly to do.

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:The one I resue , won't be rescued
« Reply #2 on: 20 Feb 2003, 08:41:24 »
Alright, once you've moved them in cargo, you can do 1 of the following to determine when the Ruskies are obliterated:

If you name the russian group in the leaders init : rusgrp1 = group this
you add the following into a triggers condition field:
({! alive _x} count (units rusgrp1)) >= (1*(count (units rusgrp1)))
and then on the activation:
[name1,name2,name3ofPOWS] Join player

If you have single russian units, name them. Then state in any init field:
rusarr1 = [ruskyname1,ruskyname2]
and in the condition of the trigger:
({! alive _x} count rusarr1) >= (1* count rusarr1)
and then on the activation:
[name1,name2,name3ofPOWS] Join player

Really, that's the only trigger you need.  ;)
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

dertn

  • Guest
Re:The one I resue , won't be rescued
« Reply #3 on: 20 Feb 2003, 20:57:17 »
Thanx  ;D

What would I do without this forum and you guys ?!1!!