READTHESCROLL

Disable Vehicle Thermals?

21 posts in this topic

I would like to disable thermals on HMG vehicles purchased at the trader and when they respawn in. I was hoping to use _vehicleObject disableTIEquipment true; but apparently that will also disable NVG which I dont want to do. Is there a way I can only disable thermals in vehicles and keep the NVG feature?

Share this post


Link to post
Share on other sites

Yes it's possible we did that in Altis life I must search for the old files I hope I still have it 

Maybe it works with something like this 

if !(_class isKindOf "AllVehicles") exitWith {}; // goodbye everything that isnt a vehicle


if !(_vehicle isKindOf "CLASSES_OF_VEHICLES_YOU_WANT_THERMAL_IMAGING_ON") then
{
	_vehicle disableTIEquipment true; // This is the line you want to put into places and things
};
Edited by SLB2k11

Share this post


Link to post
Share on other sites
Advertisement

well if video is correct add this to ExileServer_object_vehicle_database_load.sqf

if(_lock isEqualTo -1)then
{
	_vehicleObject setVariable ["ExileIsLocked",-1];
	_vehicleObject lock 2;
	_vehicleObject enableRopeAttach false;
	_vehicleObject disableTIEquipment true;
}
else
{
	_vehicleObject setVariable ["ExileIsLocked",0];
	_vehicleObject lock 0;	
    _vehicleObject disableTIEquipment true;
};
_vehicleObject setFuel (_data select 5);
_vehicleObject setDamage (_data select 6);
{
	_vehicleObject setHitPointDamage [_x select 0, _x select 1];
}
forEach (_data select 7);

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.