Jump to content

Voltagez

Member
  • Content Count

    7
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Voltagez

  • Rank
    Rookie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. First of all, thanks for your help :) I had many things to do so i couldnt answer. It would probably be Ok if they refill their ammo and then returning back to thier spawnpoint. But after the soldiers start to refill they just dont stop. They refill their ammo over and over again... The player is Blufor so they open fire/or they run to the ammo crates (it seems to be random :D ). You can't empty them before. I am using an addon which more or less Teeha has written. Thank you again for helping me with this :). Here is a part of the code used in the addon: enum { // = 2, // Error parsing: Empty enum name DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class unit_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F_BLUFOR"}; }; }; class CfgFactionClasses { class a_units { displayName = "ARMY"; author = "YOURNAME"; icon = "Directory to faction Icon"; // Needs to be 16x16 in resolution and it needs to be in the form of a PAA. priority = 2; side = 1; // Blufor }; }; class CfgVehicleClasses { class army_units { displayName = "Army Battalion";. }; }; class CfgVehicles { class B_Soldier_base_F; class Army_Squadleader : B_Soldier_base_F { _generalMacro = "Army_Squadleader"; scope = 2; displayName = "Squad Leader"; // In-game name of unit faction = a_units; // Puts unit under new faction vehicleClass = "army_units"; // Puts unit in the vehicleclass icon = "iconManLeader"; nakedUniform = "U_BasicBody"; uniformClass = "U_B_CombatUniform_mcam"; // Uniform Class backpack = "B_AssaultPack_khk"; // Backpack Class linkedItems[] = {"V_PlateCarrier3_rgr", "H_HelmetB_light", "NVGoggles", "ItemMap"}; // Item's added to the unit. respawnLinkedItems[] = {"V_PlateCarrier3_rgr", "H_HelmetB_light", "NVGoggles", "ItemMap"}; // Item's added to the unit. Should be identical to the linkedItems section. weapons[] = {"arifle_MX_F","Binocular"}; respawnweapons[] = {"arifle_MX_F","Binocular"}; magazines[] = {"30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag",}; Respawnmagazines[] = {"30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_mag",}; }; I will try the things Teeha and Grumpy are suggesting maybe they help. After this i come back with the results
  2. Voltagez

    Setting Up Custom Faction Addon

    Hey Teeha, thank you for your help till now :) I have another question and i think that you could maybe help me with it. I've opened a new thread because i think that it doesnt belong here. This is the link: http://forums.bistudio.com/showthread.php?179867-Soldiers-should-not-refill-their-ammo Would be great if you know how to fix this.
  3. So I am creating a mission where a few soldiers (Opfor) protect some ammo/weapon boxes. Blufor has to kill them and safe the weapons. Everytime when i start this mission these soldiers dont stay at their positions. They run to the ammo crates and refill their ammo instead. How can i stop them from doing this? The soldiers should just stay where they have spawned and when they see an enemy they should open fire. How can i do this? You probably need to know that these soldiers are custom, so they dont have their usual gear. For example: weapons[] = {"arifle_TRG21_F","hgun_ACPC2_F"}; // Weapons added to the unit. respawnweapons[] = {"arifle_TRG21_F","hgun_ACPC2_F"}; // Weapons added to the unit. Should be identical to the linkedItems section and so on... Would be great if anybody could help me :)
  4. Voltagez

    Setting Up Custom Faction Addon

    And now i have another Problem. I want to dress the People from this new faction like civilians, but they should be Blufor. I dont want them to wear an uniform they should wear a T-Shirt etc. instead. Is there anyway to do this? I have tried to Change the code but it doesnt work. Here is the part of the Code: class CfgPatches { class unit_config { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Characters_F_BLUFOR", [color="#0000FF"]"A3_Characters_F_Civil"[/color] }; }; }; class CfgFactionClasses { class a_units { displayName = "ARMY"; author = "YOURNAME"; icon = "Directory to faction Icon"; // Needs to be 16x16 in resolution and it needs to be in the form of a PAA. priority = 2; side = 1; // Blufor }; }; class CfgVehicleClasses { class army_units { displayName = "Army Battalion"; // Rename to what you want the sub group of the faction will be. You can have multiple subfactions (VehicleClasses) as long as the class name of the VehicleClass is different. }; }; class CfgVehicles { class B_Soldier_base_F; class Army_Squadleader : B_Soldier_base_F { _generalMacro = "Army_Squadleader"; scope = 2; displayName = "Squad Leader"; // In-game name of unit faction = a_units; // Puts unit under new faction vehicleClass = "army_units"; // Puts unit in the vehicleclass icon = "iconManLeader"; nakedUniform = "U_BasicBody"; uniformClass = [color="#0000FF"]"C_man_p_beggar_F_euro [/color]"; // Uniform Class I have marked blue what ive changed. Maybe someone could help me
  5. I dont know if the following could probably help you. You have to add it which the Editor and Gamelogic if(!isDedicated)then{ this spawn{ waitUntil{player == player}; private ["_toDelete","_obj"]; _toDelete = [[color="#0000FF"]524211,524212,525830,525826,525828[/color]]; { _obj = ((getPos _this) nearestObject _x); _obj hideObject true; deleteVehicle _obj; }forEach _toDelete; }; }; This 524211,524212,525830,525826,525828 are the ID's of the structures which you want to delete. Can find it with the ID button. Maybe this could help you :)
  6. Voltagez

    Setting Up Custom Faction Addon

    It works for me too. Thank you Theea :) You can add weapon attachments by changing the code. weapons[] = [color="#0000CD"]{"arifle_MX_F","[/color]Binocular"}; // Weapons added to the unit. respawnweapons[] = [color="#0000CD"]{"arifle_MX_F","[/color]Binocular"}; // Weapons added to the unit. Should be identical to the linkedItems section The "arifle_MX_F" hasn't a scope, compressor or something else but the "arifle_MX_Holo_pointer_F " for example has a scope and a pointer. So now you just have to change the Name of the weapon in the Code. You can find all weapons which come with Arma 3 at the Website Theea posted (I cannot post this link, because I am new at this Forum :( ) If you want a single attachment which is in the inventory but not applied on the weapon you have to change this part of the code: linkedItems[] = {"V_PlateCarrier3_rgr", "H_HelmetB_light", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnLinkedItems[] = {"V_PlateCarrier3_rgr", "H_HelmetB_light", "NVGoggles", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "[color="#0000FF"]optic_Aco[/color]"}; and add a "optic_Aco" or something else. You can also find all items, attachments,... on the Website. I think this should work for you I have another question too. Like i said this code works for me but how can i add a complete new side like Blufor, Opfor Independant,... not only a faction? I have tried to change the code a bit but it doesnt work. It would be great if anybody could help me :)
  7. Voltagez

    Setting Up Custom Faction Addon

    I have the same question. I want an entirely new side like NATO/USARMY and so on. I have also found some code by searching the Forums class CfgFactionClasses { class USARMY { displayName = "US"; priority = 1; side = 5; }; }; So my question is, where do i have to add this code? I cant add it with the Editor. So do i have to Change some files? It would be great if anybody of you could help me. Thanks :)
×