Jump to content
Sign in to follow this  
lonesoldier

Unlocking and locking vehicles...

Recommended Posts

ok. Im wondering how i unlock and lock a vehicle via a trigger.

Heres why:

You were being inserted via chopper, it got shot down, you escaped but your team, and the pilots got captured.

Now i want it so that if you can save the pilots and keep them alive then you can escape the area in a plane. But if they die then the plane will be locked so you cant fly it. Then for your other team mates, they know how to drive armoured vehicles but if they get killed then the tanks and shit will be locked.

So when they die how would i lock vehicles.

Condition: (not (alive pilot1))

Activation: what would i put here?

Share this post


Link to post
Share on other sites

Well one cheap and easy way would be;

vehiclename setFuel 0

I'm not sure of any other commands for this

[unitname] AllowGetIn FALSE doesn't work as you can still get in and drive.

Share this post


Link to post
Share on other sites

This should do

vehicle lock lock

Operand types:

vehicle: Object

lock: Boolean

Type of returned value:

None

Description:

Lock vehicle (disable mounting / dismounting) for player.

Example:

jeepOne lock true

wink.gif

Or maybe not, since it says Player. confused.gif

I think it will.

Share this post


Link to post
Share on other sites

It's cheap, $45 for OFP and $45 for Resistance

Easy because 1 line:

vehicle lock true;

tounge.gif

Share this post


Link to post
Share on other sites

No, thats a fine line....and player can't even get in vehicle.

I was just poking fun at my kindergrade answer....

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×