OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trasher on 10 Aug 2004, 21:01:34

Title: 2 questions
Post by: Trasher on 10 Aug 2004, 21:01:34
when F1 and F2 are at the "Jail" i want the mission to end how do i do this (they may not get there at the same time)
and question nr2 how do i add an carlock to evreybody except 1 guy named AHP ??? thx for the help  ;D
Title: Re:2 questions
Post by: Mud_Spike on 10 Aug 2004, 21:07:45
Place an object in the prison, it could be a chair, a soldier, a gamelogic, etc... name it prison_obj.
Then make a trigger with the following in the Condition field:
Code: [Select]
F1 distance prison_obj < 15 && F2 distance prison_obj < 15That will make the trigger fire when both F1 and F2 are within 15 meters of prison_obj.

For the carlock issue, I seem to recall a fairly recent thread on this, search the forum - should be simple to find.
Title: Re:2 questions
Post by: Trasher on 11 Aug 2004, 11:18:46
thx that would do the trick :D
Title: Re:2 questions
Post by: minimilo on 12 Aug 2004, 19:17:37
jail, cool, is this on one of the origional 5 islands, if so which 1 and wots its grid, cheers