Jump to content
Sign in to follow this  
ward1591

Not Too Sure This Would Work...NEED FEEDBACK PLZ!

Recommended Posts

Hey everyone i simply wanted to see as the title states if this would work? SO here is the situation. What i am trying to do here is have a vheicle which has allready been locked by using this command...

_obj setVehicleLock "LOCKED";

To then be locked again upon a server restart...

if (_obj setVehicleLock "UNLOCKED") exitWith{   _obj setVehicleLock "LOCKED";};

Share this post


Link to post
Share on other sites

Please make comprehensive topic titles, that's very useful when searching using the search engine !

Share this post


Link to post
Share on other sites
Hey everyone i simply wanted to see as the title states if this would work? SO here is the situation. What i am trying to do here is have a vheicle which has allready been locked by using this command...

_obj setVehicleLock "LOCKED";

To then be locked again upon a server restart...

if (_obj setVehicleLock "UNLOCKED") exitWith
{
   _obj setVehicleLock "LOCKED";
};

if ((locked _obj) isEqualTo 0) then {_obj lock 2;};

https://community.bistudio.com/wiki/locked

https://community.bistudio.com/wiki/lock

https://community.bistudio.com/wiki/setVehicleLock

https://community.bistudio.com/wiki/isEqualTo

Share this post


Link to post
Share on other sites

Okay sorry about that i couldn't really think of anything to title this. Thanks for the feedback MDCC!

Share this post


Link to post
Share on other sites

Persistance is an interesting topic. Is it safe to assume you already have some way of saving the objects? In that case, in your saving script you'll need to add the locked state of the vehicle found using the locked command to your save array. Then in your rebuild script, just read that data and set the locked state with lock.

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  

×