OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: JoyMonkey on 03 Sep 2002, 00:49:39
-
Hi,
I'm new to editing but I think I'm getting the hang of it...
Anyway, I understand that an objective is completed using the following code:
Condition: not (alive enemy1)
On Activation: "1" objStatus "Done"
And I get a nice little "ding" and the objective is complete because I just blew the **** out of enemy 1.
BUT...
How about this:
I want an objective to be that the player has to find a car stashed in the woods, and of course when he does, we get a "ding", Objective completed. How can I do this?
Thanks so much!
JM
-
Well you can do this a number of ways. Either having the player move up to the car, placing a trigger around the car and when the player is in the area it activates and you get the ding, or you can activate the trigger when the player Knowsabout the car, but that could happen a long distance away from the car. I would suggest using the first suggestion, this ensures the player is in a close proximity to the car.
-
There are (at least) 3 possibilities:
Condition: Player Distance MyCar < 5 Triggers when Player is closer than 5 meters from MyCar
Condition: Player In MyCar Triggers when Player has entered MyCar
Condition: Player KnowsAbout MyCar >= 3 Triggers when Player's knowledge about MyCar equal or larger than 3
I don't exactly know what the KnowsAbout levels are exactly, but I think at 3 the unit will know it is a car and also what side it's on.
-
Then there are:
- mycar has been brought to another location
trigger: size: let's say: 20/20 (x/y)
activation: anybody
condition: this AND mycar in thislist
- mycar has been given to another person
trigger: size: let's say: 20/20 (x/y)
activation: anybody
condition: this AND mycar in thislist AND !player in mycar
then sync this trigger to a wayoint of another unit, and
let him move to somewhere, where you can use another
trigger, similar to the first trigger i showed ya above
And there are a lot of more situations, just let your brain
work.
~S~ CD
-
Why not create a trigger with is linked to the car and as type has "detected by west/east/resistance"
Then when the unit sees the car the objective is completed