Jump to content

OfficeGlenn

Member
  • Posts

    41
  • Joined

  • Last visited

Posts posted by OfficeGlenn

  1. Um read the thread, I already tested that code and it didn't work and I only just posted the WORKING code right above your post.

    Thank you Havoc302. I was just confused as to where to which file to put the script in. As well the code you mentioned (copied below) only looks like part of the final script.

     

    { if (typeOf _x == "B_Heli_Light_01_armed_F") then { _x removeWeaponGlobal "missiles_DAR"; }; } forEach vehicles;

    { if (typeOf _x == "O_Heli_Light_02_F") then { _x removeWeaponGlobal "missiles_DAGR"; }; } forEach vehicles;

     

    Would you be willing to please share the final full script. I am new to server scripting and would appreciate the assistance. Thank you.

  2. Maybe this?

    if (isClient) then {
    	[] spawn {
    		if (player != vehicle player) then {
    			switch {true} do {
    				case ((vehicle player) in ["I_Heli_light_03_F","O_Heli_Light_02_F","B_Heli_Light_01_armed_F"]): {
    					(vehicle player) removeWeapon "missiles_DAGR";
    					(vehicle player) removeMagazines "12Rnd_PG_missiles";
    					(vehicle player) removeMagazines "24Rnd_PG_missiles";
    				};
    			};
    			
    			waitUntil{ player == vehicle player };
    		};
    		
    		uiSleep 1;
    	};
    };
    

    Would go on the clientside, and you would use different cases for different weapon sets.

    Hey Vampire, this code looks sound but where do I add it? I've tried at the end of my init.spf, but the rockets are working when another admin and I jump in the pawnee.

  3. I tried adding a new heli just to test it didn't work. Could you please share your files?

     

     

     

     

     

    EDIT1: I found this message below from the script's coder (Igi_PL):

    Now I understand why my advanced(!) method of "copy & paste mohawk" and just change the name approach didn't work. it would have worked if dimensions were the same - obviously not. I'll take another shot at it tomorrow, if successfull I'll publish the files her. We have a zillion vehicles to add to, it would be great if every one of us shared their vehicle additions...

     

     

    EDIT2: apparently this was my 500th post :D

    I probably should have clarified. The vehicles I added were existing arma 3 vehicles like Striders, Ifrit, Armed Offroad and Hunters. I just modified the HEMITT in the IgiLoad.sqf supported cargo section to allow those vehicles to be loaded into the back of the HEMITT Transport. As well I added the Armed Offroad under the Ifrit versions instead of the Offroad to prevent it from having vehicles loaded into it. below are the two lines I changed.

     

    line 181:     IL_Supported_Cargo_Veh_HEMTT = IL_Supported_Cargo_Veh_Kamaz + IL_Supported_OFFROAD + IL_Supported_SUV +

           IL_Supported_Strider + IL_Supported_Hunter + IL_Supported_Ifrit;

    line 142:    IL_Supported_Ifrit = ["O_MRAP_02_F", "O_MRAP_02_gmg_F", "O_MRAP_02_hmg_F", "B_G_Offroad_01_armed_F"];

     

  4.  

    My createvehicle.txt

    5 "" !"CargoNet_01_box_F" !"C_Offroad_01_repair_F" !"B_Heli_Light_01_EPOCH" !"O_MRAP_02_F" !"O_MRAP_02_hmg_F" !"I_MRAP_03_hmg_F" !"Box_NATO_Wps_F" !"O_Truck_02_transport_EPOCH" !"B_Parachute" !="R_PG32V_F" !="R_TBG32V_F" !="I_UAV_01_F" !="I_UAV_AI" !"_EPOCH" !="B_65x39_Minigun_Caseless_Red_splash" !="B_762x51_Minigun_Tracer_Yellow_splash" !="B_Swing" !"^SmokeShell" !"^G_40mm_" !"^F_40mm_" !"Sub_F_" !"^F_Signal_" !="mini_Grenade" !="GrenadeHand" !="LaserTarget(C|W|E)" !"^Chemlight_" !="(ClaymoreDirectionalMine|DemoCharge|SatchelCharge)_Remote_Ammo" !="SLAMDirectionalMine_Wire_Ammo"  !="(CMflare_Chaff|Sapper_Charge|ATMine_Range)_Ammo" !="APERS(TripMine_Wire|BoundingMine_Range|Mine_Range)_Ammo" !="Epoch_(Sapper|Cloak)_F" !="GreatWhite_F" !="groundWeaponHolder" !="WeaponHolderSimulated" !="Epoch_(Male|Female)_F" !"Supply[0-9]" !"Steerable_Parachute_F" !"Carryall" !="B_Parachute_02_F" !"Tarp_EPOCH" !"M_Scalpel_AT" !"R_80mm_HE" !"O_Heli_Attack_02_black_F"
    5 "_EPOCH" !"ChairRed_EPOCH" !"Freezer_EPOCH" !"Pelican_EPOCH" !"Filing_EPOCH"  " " !"O_Truck_02_transport_EPOCH" !="(SapperHead|Jack)_SIM_EPOCH" !="(Tipi|StorageShelf)_Ghost_EPOCH" !="(Tipi|StorageShelf|LockBox|FirePlace|PlotPole|I_Soldier|Jack)_EPOCH" !="(Bed|locker|Filing|Chair|ChairRed|wardrobe|cooker|Couch|Table|Pelican|Fridge|Shelf|ToolRack|Shoebox|Bunk|Rabbit)_EPOCH"  !="(Sheep|Goat|Snake|Hen|Cock|Fin|Alsatian)_random_EPOCH" !="LockBox_(Ghost|SIM)_EPOCH" !="CinderWallHalf_(Ghost|SIM)_EPOCH" !="(CinderWall|CinderWallGarage|PlotPole|Tipi|StorageShelf)_SIM_EPOCH" !="Wood(Floor|LargeWall|LargeWallCor|LargeWallDoor|LargeWallDoorL|LargeWallDoorway|Stairs|Stairs2|Ramp)_(Ghost|SIM)_EPOCH" !="Foundation_Ghost_EPOCH" !="Foundation_EPOCH" !"Carryall" !"Tarp_EPOCH"
    5 SeaGull !"Tarp_EPOCH"
    1 ""
    

    I see you have multiple references to !"Tarp_EPOCH", what is that?

  5. I've followed all above suggestions but I keep getting  kicked by BattlEye: CreateVehicle Restriction #0 for the damn seagull error. Not sure why this is happening. Prior to installing the welcome script I installed the A3EAI roaming AI script, the Simple Epoch Missions Script and the Player Status Bar script. All of which work fine. But then I add the welcome script and it kicks me for being a SeaGull. Any suggestions would be appreciated.

×
×
  • Create New...