ward1591 10 Posted November 26, 2014 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
ProfTournesol 956 Posted November 26, 2014 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
fn_Quiksilver 1636 Posted November 26, 2014 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
ward1591 10 Posted November 26, 2014 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
dreadedentity 278 Posted November 26, 2014 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
killzone_kid 1333 Posted November 27, 2014 Nvm, misunderstood the question. Share this post Link to post Share on other sites