OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Uber-Pea on 14 Jun 2004, 15:09:03

Title: Vehicle accessable after condition ONLY
Post by: Uber-Pea on 14 Jun 2004, 15:09:03
Hiho, I want to make a vehicle accessable after a special condition has turned true. Its an escape vehicle and it woulda be stupid to escape b4 objectives done. So I would like to make it only accessable after condition is done.

Maybe a spawn when condition is done would do the job too.

Uber-Pea
Title: Re:Vehicle accessable after condition ONLY
Post by: Artak on 14 Jun 2004, 15:20:47
Or use the good old lock command. Lock the vehicle in editor and when you're turning that 'special condition' to true use the unitname lock false to unlock the vehicle.
Title: Re:Vehicle accessable after condition ONLY
Post by: macguba on 14 Jun 2004, 15:31:43
Or, leave it unlocked and use a trigger to detect if the vehicle is driven away before the Objective is complete.   If it is, end the mission with a little cutscene showing the player being shot for cowardice.
Title: Re:Vehicle accessable after condition ONLY
Post by: Uber-Pea on 14 Jun 2004, 15:46:02
Nice idea macguba ;-)

Though what Artak said was exactly what i needed. Didnt find "lock" command in ComRef.

By the help of you guys im learning faster and faster. One week ago i didnt have a clue of how to make a briefing, no i have a mission released and 2 in work.

Uber