Jump to content
Sign in to follow this  
jimgun

help on sector control needed.

Recommended Posts

Would it be possible on a sector control map, rather than scoring points for a flag, I want to make it so if you control all flags for a certain period of time it would unlock a vehicle thats sat in your base locked - therefore enabling your side to use it?

Is it possible to tie the capturing of a set number of flags over a certain amount of time to the unlocking of a vehicle?

Share this post


Link to post
Share on other sites

I don't know the syntax of how it would be written, whenever I need to write a script I always have to heavily browse the com ref at the biki, but I'd do it like this...

Have a trigger with the condition of checking if all of your sector control triggers are true. In the on act, execute vehicleunlock.sqf.

In vehicleunlock.sqf, have a sleep command of however long you want them to need to have all the zones before the vehicle is unlocked, then have it check the status of your zones one last time. If all the triggers are still true, unlock the vehicle. If not, exit.

That's how I'd do it. Like I said, I can't help you on the syntax. I'd have to browse the biki. But I'm fairly sure that method would work.

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  

×