Jump to content

pravietis1

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About pravietis1

  • Rank
    Newbie
  1. I want REMOVE From Helicopter Ammo. From Simple Vehicle Car i can remove Ammo. From: ----- B_Heli_Transport_01_camo_F WEAPONS I thinks is: ------ CMFlareLauncher LMG_Minigun_Transport LMG_Minigun_Transport2 i use fn_clearVehicleAmmo.sqf to clear AMMO Pleaze help me. #include "..\..\script_macros.hpp" /* File: fn_clearVehicleAmmo.sqf Author: Bryan "Tonic" Boardwine Description: Clears the vehicle of ammo types that we don't want. Syntax: _vehicle removeMagazinesTurret [magazineName, turretPath] Documentation: https://community.bistudio.com/wiki/removeMagazinesTurret */ private["_vehicle","_veh"]; _vehicle = [_this,0,objNull,[objNull]] call BIS_fnc_param; if (isNull _vehicle) exitWith {}; _veh = typeOf _vehicle; if (_veh isEqualTo "B_Boat_Armed_01_minigun_F") then { _vehicle removeMagazinesTurret ["200Rnd_40mm_G_belt",[0]]; }; if (_veh isEqualTo "B_APC_Wheeled_01_cannon_F") then { _vehicle removeMagazinesTurret ["60Rnd_40mm_GPR_Tracer_Red_shells",[0]]; _vehicle removeMagazinesTurret ["40Rnd_40mm_APFSDS_Tracer_Red_shells",[0]]; }; if (_veh isEqualTo "O_Heli_Attack_02_black_F") then { _vehicle removeMagazinesTurret ["250Rnd_30mm_APDS_shells",[0]]; _vehicle removeMagazinesTurret ["8Rnd_LG_scalpel",[0]]; _vehicle removeMagazinesTurret ["38Rnd_80mm_rockets",[0]]; }; if (_veh isEqualTo "B_Heli_Transport_01_F") then { _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[1]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[2]]; }; if (_veh isEqualTo "CMFlareLauncher") then { _vehicle removeMagazinesTurret ["60Rnd_CMFlareMagazine",[0]]; _vehicle removeMagazinesTurret ["120Rnd_CMFlareMagazine",[0]]; _vehicle removeMagazinesTurret ["240Rnd_CMFlareMagazine",[0]]; _vehicle removeMagazinesTurret ["60Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["120Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["240Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["192Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["168Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["300Rnd_CMFlare_Chaff_Magazine",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[0]]; }; if (_veh isEqualTo "LMG_Minigun_Transport") then { _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Green",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Yellow",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Green",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Green_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Red_Splash",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Yellow_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Green_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Yellow_Splash",[0]]; _vehicle removeMagazinesTurret ["PylonWeapon_2000Rnd_65x39_belt",[0]]; _vehicle removeMagazinesTurret ["168Rnd_CMFlare_Chaff_Magazine",[0]]; }; if (_veh isEqualTo "LMG_Minigun_Transport2") then { _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["200Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Green",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Yellow",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Green",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Red",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Green",[0]]; _vehicle removeMagazinesTurret ["1000Rnd_65x39_Belt_Tracer_Yellow",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Green_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Red_Splash",[0]]; _vehicle removeMagazinesTurret ["2000Rnd_65x39_Belt_Tracer_Yellow_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Green_Splash",[0]]; _vehicle removeMagazinesTurret ["500Rnd_65x39_Belt_Tracer_Yellow_Splash",[0]]; _vehicle removeMagazinesTurret ["PylonWeapon_2000Rnd_65x39_belt",[0]]; _vehicle removeMagazinesTurret ["168Rnd_CMFlare_Chaff_Magazine",[0]]; }; clearWeaponCargoGlobal _vehicle; clearMagazineCargoGlobal _vehicle; clearItemCargoGlobal _vehicle; clearBackpackCargoGlobal _vehicle;
  2. Air Civ garage - Spawn Helicopter on Custome building at Roof Hello! i want to spawn civilian Hellicopter from Air Garage on the Custom Buildinf Roof. How it possible? I seen some spawn script on VehicleShopBuy for medic , Medic Helicopter spawns on the Kavala custom building roof with the New Shop for Civilians. Can someone help me out? _spawnPoints = life_veh_shop select 1; _spawnPoint = "";\ // -------------------------------Original Medic Helicopter spawn-----------------------------------------------------------\ if (((life_veh_shop select 0) == "med_air_hs")) then { if ((nearestObjects[(getMarkerPos _spawnPoints),["Air"],35]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; } else { //Check if there is multiple spawn points and find a suitable spawnpoint. if (_spawnPoints isEqualType []) then { //Find an available spawn point. {if ((nearestObjects[(getMarkerPos _x),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _x};} forEach _spawnPoints; } else { if ((nearestObjects[(getMarkerPos _spawnPoints),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; }; }; if (_spawnPoint isEqualTo "") exitWith {hint localize "STR_Shop_Veh_Block";closeDialog 0;}; CASH = CASH - _purchasePrice; hint format[localize "STR_Shop_Veh_Bought",getText(configFile >> "CfgVehicles" >> _className >> "displayName"),[_purchasePrice] call life_fnc_numberText]; //Spawn the vehicle and prep it. if ((life_veh_shop select 0) == "med_air_hs") then { _vehicle = createVehicle [_className,[0,0,999],[], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; _hs = nearestObjects[getMarkerPos _spawnPoint,["Land_Hospital_side2_F"],50] select 0; _vehicle setPosATL (_hs modelToWorld [-0.4,-4,12.65]); sleep 0.6; } else { _pos = getMarkerPos _spawnPoint; }; _vehicle = createVehicle [_className, (getMarkerPos _spawnPoint), [], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; //Temp disable damage handling.. _vehicle setPos (getMarkerPos _spawnPoint); _vehicle setVectorUp (surfaceNormal (getMarkerPos _spawnPoint)); _vehicle setDir (markerDir _spawnPoint); }; _vehicle lock 2; [_vehicle,_colorIndex] call life_fnc_colorVehicle; [_vehicle] call life_fnc_clearVehicleAmmo; [_vehicle,"trunk_in_use",false,true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; [_vehicle,"vehicle_info_owners",[[getPlayerUID player,profileName]],true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; _vehicle disableTIEquipment true; //No Thermals.. They're cheap but addictive. //-----------------------------------------------My Custom Edit CIV Helicopter Spawn--------------------------------------------------- if (((life_veh_shop select 0) == "garazha_1")) then { if ((nearestObjects[(getMarkerPos _spawnPoints),["Air"],35]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; } else { //Check if there is multiple spawn points and find a suitable spawnpoint. if (_spawnPoints isEqualType []) then { //Find an available spawn point. {if ((nearestObjects[(getMarkerPos _x),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _x};} forEach _spawnPoints; } else { if ((nearestObjects[(getMarkerPos _spawnPoints),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; }; }; if (_spawnPoint isEqualTo "") exitWith {hint localize "STR_Shop_Veh_Block";closeDialog 0;}; CASH = CASH - _purchasePrice; hint format[localize "STR_Shop_Veh_Bought",getText(configFile >> "CfgVehicles" >> _className >> "displayName"),[_purchasePrice] call life_fnc_numberText]; //Spawn the vehicle and prep it. if ((life_veh_shop select 0) == "garazha_1") then { _vehicle = createVehicle [_className,[0,0,999],[], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; _hs = nearestObjects[getMarkerPos _spawnPoint,["Custom_Buildinng_1"],50] select 0; _vehicle setPosATL (_hs modelToWorld [-0.4,-4,12.65]); sleep 0.6; } else { _pos = getMarkerPos _spawnPoint; if (_spawnPoint isEqualTo "garazha_1") then { _pos = [_pos select 0,_pos select 1,45.00]; }; _vehicle = createVehicle [_className, (getMarkerPos _spawnPoint), [], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; //Temp disable damage handling.. _vehicle setPos (getMarkerPos _spawnPoint); _vehicle setVectorUp (surfaceNormal (getMarkerPos _spawnPoint)); _vehicle setDir (markerDir _spawnPoint); }; _vehicle lock 2; [_vehicle,_colorIndex] call life_fnc_colorVehicle; [_vehicle] call life_fnc_clearVehicleAmmo; [_vehicle,"trunk_in_use",false,true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; [_vehicle,"vehicle_info_owners",[[getPlayerUID player,profileName]],true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; Thanks Alot i will w8 answer.
  3. pravietis1

    Quest System for Maverick Talent Tree

    This working with Altis Life v4.rR4 version?
×