mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
custom veh textures - 1st load fix
This commit is contained in:
parent
2387dfa9e2
commit
89843f3b1c
@ -121,10 +121,11 @@ for "_i" from 1 to _maxVehicleLimit do {
|
|||||||
// set fuel level
|
// set fuel level
|
||||||
_vehicle setFuel _fuel;
|
_vehicle setFuel _fuel;
|
||||||
// apply persistent textures
|
// apply persistent textures
|
||||||
if (missionnamespace getvariable ["UseCustomTextures",false]) then {
|
if ((missionnamespace getvariable ["UseCustomTextures",false]) && {!(_Textures isEqualTo [])}) then {
|
||||||
{
|
{
|
||||||
_vehicle setobjecttextureglobal [_foreachindex,_x];
|
_vehicle setobjecttextureglobal [_foreachindex,_x];
|
||||||
} foreach _Textures;
|
} foreach _Textures;
|
||||||
|
_vehicle setVariable ["VEHICLE_TEXTURE", _color];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_cfgEpochVehicles = 'CfgEpochVehicles' call EPOCH_returnConfig;
|
_cfgEpochVehicles = 'CfgEpochVehicles' call EPOCH_returnConfig;
|
||||||
|
Loading…
Reference in New Issue
Block a user