OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Spinner on 14 Sep 2002, 20:12:49

Title: Objective to avoid causing damage
Post by: Spinner on 14 Sep 2002, 20:12:49
Heya

I want to set up an objective which will register as Done if the player avoids damaging any units on the West side, and Failed if he damages any of them at all.

Can I use the foreach command for a whole side, and if so how?

Or are there other ways to do this?

Any advice would be great :)
Title: Re:Objective to avoid causing damage
Post by: icarus_uk on 14 Sep 2002, 21:01:42
You cant use Foreach as a condition.  You must use Count instead.