OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: B2KDragon on 11 Aug 2008, 21:29:16

Title: Locking Vehcles in multiplayer
Post by: B2KDragon on 11 Aug 2008, 21:29:16
Cna someone plz help me again i need a script which will lock a certain vehicle until a objective has been completed if u have a tutorial tht can help or if someone else can do it tht would be grt


Dragon :blink:
Title: Re: Locking Vehcles in multiplayer
Post by: Spooner on 12 Aug 2008, 11:16:17
Well, I assume that completion of the objective is triggering a trigger already. You just need to unlock the vehicle at the same time:

Vehicle to unlock should be named myVehicle and have init of "this lock true".

Trigger type and Condition: Whatever is appropriate for your objective.
On Act: "1" objStatus "DONE"; myVehicle lock false

Since mission-placed triggers are global, this will work fine in MP too. You may find the Triggers chapter (http://www.ofpec.com/ed_depot/beginners/triggers.php) of our editing tutorial useful.
Title: Re: Locking Vehcles in multiplayer
Post by: B2KDragon on 12 Aug 2008, 13:13:24
k thks if i have any more problums ill let u know thks