Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
zdowggg

how do u lock a vehicle to one faction

Recommended Posts

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

{
if (side _x == opfor) then {
    _x setDamage 1;
}} forEach AllUnits;

:)

Share this post


Link to post
Share on other sites

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

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

can u make it only kill them when they enter a vechicle ?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×