zdowggg 1 Posted July 31, 2013 i want to lock a vehicle so only blue for can take it and no one else tryed to find this but i dont see one so im asking ty guys Share this post Link to post Share on other sites
kylania 568 Posted August 1, 2013 { if (side _x == opfor) then { _x setDamage 1; }} forEach AllUnits; :) Share this post Link to post Share on other sites
zdowggg 1 Posted August 1, 2013 ware do i place that and will that kill opfor who get in ? ---------- Post added at 12:47 AM ---------- Previous post was at 12:42 AM ---------- ok i put that in the init feild of the truck and i wanted to see what it did so i played as opfor but its killing me no matter ware im at and im not even near the truck Share this post Link to post Share on other sites
kylania 568 Posted August 1, 2013 Yeah, that code kills all opfor, period. Quite effective at preventing them from boarding vehicles which are for some unexplainable reason 'blufor only' :) Share this post Link to post Share on other sites
zdowggg 1 Posted August 1, 2013 can u make it only kill them when they enter a vechicle ? Share this post Link to post Share on other sites
mindstorm 8 Posted August 1, 2013 You could use lock to lock all vehicles. Then add an addAction "get In" for all players one the side which are allowed to enter. Replace the getIn action with get out once it's triggered. Share this post Link to post Share on other sites