Home   Help Search Login Register  

Author Topic: How to .......  (Read 746 times)

0 Members and 1 Guest are viewing this topic.

Offline Laviski

  • Members
  • *
How to .......
« on: 25 Sep 2004, 15:06:05 »
hello there i'm remaking an old mision i made before and i would like to make a few additions to it. The mission is Fugitives (was designed for Lan)and basically its like 30 on the east side hunting down 3 resistance before they reach the extraction point. and my problem is as follows:

How can i end the game if the east have killed 3 or more civilians in the mission. it doesn't matter about the resistance or west side killing civilain just want the game to be forfeit if too many civilians are killed by the east side.

any help will be much appreciated.

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:How to .......
« Reply #1 on: 25 Sep 2004, 15:11:37 »
Put all your civvies in an array,remove dead civvies ,count this array.

If your count reach a certain value-->force end

Sure there are other ways tho.
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Comrade Joe

  • Guest
Re:How to .......
« Reply #2 on: 25 Sep 2004, 15:20:10 »
Or just use the ol' (not(alive unitname)) command.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to .......
« Reply #3 on: 25 Sep 2004, 16:22:22 »
Quote
force end

I've seen this command mentioned several times recently.    It's true that it will work, but it is not good editing.     In this particular case you would want an appropriate debriefing text, which makes a numbered ending (End#4) better.     ForceEnd is for emergencies, not normal endings specificially designed by the mission creator.
Plenty of reviewed ArmA missions for you to play

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:How to .......
« Reply #4 on: 25 Sep 2004, 17:17:31 »
Rgr Mac :)
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to .......
« Reply #5 on: 25 Sep 2004, 18:00:59 »
 :)

I should have said that the resulting answer would be to have a trigger something like:-

Type:   End#4
Condition:   ("alive _x" count [civvy array]) < 5

Syntax not guaranteed.
Plenty of reviewed ArmA missions for you to play