Jump to content
Sign in to follow this  
somecallmenomad

Vehicle unlock after a certain amount of time

Recommended Posts

Hey guys, I'm making a deathmatch, and I'd like to know how to make a fuel truck unlocked and drive-able ONLY after about five minutes. How would I go about doing this?

Share this post


Link to post
Share on other sites
// _vehicle is the fuel truck

_vehicle lock true;		\\ locked

waitUntil {time > 300};		\\ wait 5 minutes

_vehicle lock false;		\\ unlocked

Share this post


Link to post
Share on other sites

It would go in a script.

For editor, give the truck a name and set it's status to locked.

Place a trigger set to "anyone present".

In the condition field:

time > 500;

In the activation field:

MyTrucksName lock false;

You could also have the trigger give a hint that the truck is now unlocked.

MyTrucksName lock false; hint "Fuel Truck is now unlocked.";

Edited by OpusFmSPol

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  

×