OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dog - RM on 02 Jul 2004, 14:04:33

Title: Recon Mission Script needed
Post by: Dog - RM on 02 Jul 2004, 14:04:33
Currently making a recon mission very similar to the one in the 1985 campaign mission on kolgujev where you have to spot the positions of the 3 Shilkas.

What I need to know is how to make so that you spot the shilkas and it ticks them off on the mission briefing.

Is it done by triggers or by a script???

Title: Re:Recon Mission Script needed
Post by: ruff on 02 Jul 2004, 15:58:54
u can use a trigger
just group the vechille to a trigger and it should say vechile and detected by west and write on the activation the objective number
Title: Re:Recon Mission Script needed
Post by: RM_Sphynx on 03 Jul 2004, 11:43:01
wouldn't that make it so that the vehicles have to be found in a certain order? BTW, im the actual mission maker and i just got dog to post for me because i wasn't registered (thanks dog). I was wondering if there was a specific script or trigger function where once a player has sighted the vehicle, he/she can right click to tick that vehicle off the objectives list and mark it on the map, or mark it off the map and tick it off just by sighting it, can anyone help me out with it? I need it so that the vehicles can be done in any order. Also, would this complicate the ending of the mission? By that i mean, would it still allow you to designate an "evac" zone the team must get to once all the targets are spotted?
 Any help would be greatly appreciated, and thanks in advance. BTW, this is a MP mission.
Title: Re:Recon Mission Script needed
Post by: Neptune on 16 Jul 2004, 08:05:25
- Create a trigger with a dictance of '0'
- Give the vehicle a name
- Create a marker and name it "marker1" for instance.
- Type in the trigger-condition "player KnowsAbout vehicle_name"
- Type in the trigger-activation a scipt that makes an objective set to "done" and set the X and Y position of marker1 to the X and Y position of your vehicle.

Commands:

marker1 SetmarkerPos [getpos vehicle_name select 0, getpos vehicle_name select 1]

good luck!