increase timer for patrol vehicle deletion

ekroemer

New Member
Hi there,

first off: I really like the vehicle patrols, even in its current as-is/experimental/unsupported state!

I've set up a list of armed vehicles to use for patrols and used the code Buttface provided here http://opendayz.net/threads/heli-gunner-used-for-ground-patrol.18991/
to activate the gunners and commented out the
_vehicle setVehicleLock "LOCKED"​
in spawn_functions/spawn_vehPatrol.sqf.

Now it's fun to ambush the patrols and sell the armed vehicles at the (Epoch) traders.

However it's painful when the vehicle you're currently driving despawns ;-)

What's the correct place to change the despawn interval? I found the line
[_vehicle,900] call DZAI_deleteObject;​
in compile/veh_getout.sqf, will increasing the 900 do the trick?
 
researching into DZAI_deleteObject I found
Code:
DZAI_deleteObject = {
    private ["_obj","_delay"];
    _obj = _this select 0;
    _delay = _this select 1;
   
    DZAI_deleteObjectQueue set [count DZAI_deleteObjectQueue,[_obj,(time + _delay)]];
};
in dzai_functions.sqf which means that in
Code:
[_vehicle,900]
_vehicle is the object to get deleted, and 900 is the delay to be deleted. You can either increase/decrease this time or you could probably just remove it entirely if you so wished.
 
Thanks,

what will happen if the vehicle doesn't get deleted - is it hive-spawned and will get saved to the DB or will it just disapperar after server restart?
 
Back
Top