Search the Community
Showing results for tags 'class'.
Found 28 results
-
Hi i have a question how is it currently working for you ? I have : class CfgSentences { class ConversationsAtBase { class Briefing { file = "brief.bikb"; #include "brief.bikb" }; }; class ConversationsAtOutpost { class Outpost { file = "taskone.bikb"; #include "taskone.bikb" }; }; }; and run via trigger : nul = execVM "chat1.sqf"; . and it throws me an error that the class ConversationAtBase cannot be found. I have chat1.sqf to run the dialog for briefing and chat2.sqf to run the trigger after the task is completed. Everything is put in the same folder where the mission is stored. brief.bikb : class Sentences { class Brief_Jenda_Line_1 { text = "Hello gentlemen, I have a mission for you. You scouts need to climb the hill north of here. It's somewhere between the road and the shithole town of Kundshalaka. There's an anti-aircraft detachment of those goatmen there, and the helicopters can't fly because of it." speech[] = { "\chat\t1.ogg" }; class Arguments {}; actor = "Jenda"; }; class Brief_Matous_Line_2 { text = "Understood, sir. I'll pack up my men and we'll go shoot them." speech[] = { "\chat\t2.ogg" }; class Arguments {}; actor = "Matous"; }; class Brief_Jenda_Line_3 { text = "That's not all Sarge . When you clear this you need to go down to the town between Shakalaka and some Yakavlanka's factory . The civilians are said to have some important information so ask them what they know." speech[] = { "\chat\t3.ogg" }; class Arguments {}; actor = "Jenda"; }; class Brief_Matous_Line_4 { text = "Yes, sir. I understand, sir. Chalpy let's go get 'em." speech[] = { "\chat\t4.ogg" }; class Arguments {}; actor = "Matous"; }; class Brief_Patrik_Line_5 { text = "Yes sir..... Let's unleash the carnage!!!!!" speech[] = { "\chat\t5.ogg" }; class Arguments {}; actor = "Patrick"; }; }; class Arguments {}; class Special {}; startWithVocal[] = {hour}; startWithConsonant[] = {europe, university}; . chat1.sqf : ["Briefing", "ConversationsAtBase"] call bis_fnc_kbtell; chat2.sqf : ["Outpost", "ConversationsAtOutpost"] call bis_fnc_kbtell; taskone : class Sentences { class Outpost_Matous_Line_1 { text = "Alpha 1-1 to Hotel 1-1. The anti-aircraft detachment has been successfully destroyed. Receiving." speech[] = { "\chat\o1.ogg" }; class Arguments {}; actor = "Matous"; }; class class class Outpost_Jenda_Line_2 { text = "Hotel 1-1 Roger. Alpha 1-1, move to the factory and ask the civilians what they need. The helicopter crew can get ready. You may need reception." speech[] = { "chat1.ogg" }; class Arguments {}; actor = "Jenda"; }; class Brief_Matous_Line_3 { text = "Roger. Let's move to the factory over." speech[] = { "\chat\o3.ogg" }; class Arguments {}; actor = "Matous"; }; class Brief_Ondra_Line_4 { text = "Roger. Let's get the helicopters ready. In case we need to support the boys. Over." speech[] = { "\chat\o5.ogg" } class Arguments {}; actor = "Ondra"; }; }; class Arguments {}; class Special {}; startWithVocal[] = {hour}; startWithConsonant[] = {europe, university};
-
Hi ! News from ELIMINATION mode. 5 game classes are good but a 6th is even better! I propose a 6th class to allow our friend who is a little slower than the others to at least have the choice of one weapon among 2 choices! practical when he is forced to play, for example, the crossbow or the silver pigeon! There, he can have another choice! And a little bonus! it's about having a 2nd consumable of all kinds (random) it is true that it could be useful especially when you lack care and no ally has any! What do you think?
-
parameters are removed after class inheritance
rdvtrdvt posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Trying to add GPS for A-10C in RHS mod. To do this, I modify the "VehicleSystemsDisplayManagerComponentLeft" class. (Code below). But after that the class parameters (screenshoot #1) are removed (screenshoot #2) class CfgPatches { class RHSplaneFIX { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"rhsusf_main_loadorder"}; }; }; class CfgVehicles { class Plane_CAS_01_base_F; class RHS_A10 : Plane_CAS_01_base_F { class Components { class VehicleSystemsDisplayManagerComponentLeft { class Components { class MinimapDisplay { componentType = "MinimapDisplayComponent"; resource = "RscCustomInfoAirborneMiniMap"; }; }; }; }; }; }; before patch: https://imgur.com/a/ZZY318j after: https://imgur.com/a/VFbh1M8 -
class Member already defined | Struggle with External Base Class(es)
SirBassi posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello everyone, I was able to learn a lot in the last few weeks by browsing through many posts here and also asking about it. It's really great how much input you can collect here as a beginner. I would like to retrofit the Cayuse helicopters with a GPS from the SOG CDLC. Addressing the basics for this with a class name, creating and integrating by own mod also works when I just "activate" the first two Helis from my actual config.cpp. But now, as a non-programmer, I'm getting to a point where determining parent and child classes becomes very abstract to me with all the 7 Cayuse want to integrate. Attached is my current code and the error message I get when I start the game. I also understand the reason for the error. But I'm a bit confused as to how to come to a solution now. Am I on the right track if I use the BI Wiki as a guide when it comes to external base classes? And which way is the next one then? Orientation using the example of two or the Implied child classes? Actual Code - Config.cpp Classes and Rootpaths of the Cayuse Helicopters My Error Hint by Starting Arma Ideas for the next step to solve BiWiki: https://community.bistudio.com/wiki/Class_Inheritance#Basic_config_concepts Thank you for your ideas and help and a push in the right direction! -
[Code Snippet] create method library - CreateVehicle, DeleteVehicle (Arma 3 similar)
sarogahtyp posted a topic in Arma Reforger - Configs & Scripting
What I began on my current AR project is to create a tool class with methods that make me some things easier. In this case I show how to create an easy to use CreateVehicle and a DeleteVehicle method with overloaded argument lists. Which just means that you can have different parameter syntaxes as known from various Arma 3 commands. I created a new script file in the newly created folder MyProject/scripts/GameCode/Tools according to the AR directory structure as I understand it^^. I named the file SaRo_Tools.c - this file will contain the class with my tools methods. What do I have to do when spawning a vehicle without that tools class? Something like this: Now instead of doing this we create our tools class which does most of this automatically: Now you have 2 easy methods to spawn a vehicle: IEntity vehicle1, vehicle2; //1st method using resource name and spawn position vehicle1 = SaRo_Tools.CreateVehicle("{DD774A8FD0989A78}Prefabs/Vehicles/Wheeled/M998/M1025_armed_M2HB_MERDC.et", Vector(1288.93, 0, 766.7)); //2nd method using resource name, an existing entity and a position vector relative to that entity vehicle2 = SaRo_Tools.CreateVehicle("{DD774A8FD0989A78}Prefabs/Vehicles/Wheeled/M998/M1025_armed_M2HB_MERDC.et", someEntity, Vector (0, 0, -15)); //spawns 15m behind someEntity Maybe I did some mistakes in this post because I did write it out of my mind partially. But I ll validate, expand and edit it if Im at home... Deletion methods will be done then as well EDIT: to get this done, I also added 2 entity deletion methods to the tools class. I just post those 2 methods and not the CreateVehicle methods from above again although they are in that class: Now you have 2 easy methods to delete an entity: //1st method delete using the entity ID SaRo_Tools.DeleteVehicle ( SaRo_BMHQ01MenuBaseClass.camoNetID ); //2nd method delete using the entity itself SaRo_Tools.DeleteVehicle ( someEntity ); Now YOU know how to build an own tools library class and you also know how to overload class methods. Its your turn to create more methods that way to get things a bit easier for you... -
Hi, I would like to know, how to get information about building type - such as military, industrial, civilian etc. I can read the building class (name) - but is there any function that returns what type it is? Or is it coded in building name? _nBuilding = nearestBuilding player; hint str typeOf _nBuilding; thnx
-
class compartmentsLights [config base]
Piloto_Spyke posted a topic in ARMA 3 - ADDONS & MODS: COMPLETE
Hi, I will post this because i havent found so much info related to class compartmentsLights. I have been helped by reyhard on the Arma 3 Discord. - Requieres the "points" to be defined in the model.p3d Memory LOD. - Requires compartments defined for all: driverCompartments = Compartment1; cargoCompartments[] = {Compartment1}; // and gunnerCompartments = "Compartment1"; in his respective turret class And this in myVehicle class: class compartmentsLights { class Comp1 // first class is asociated with Compartment1, second with Compartment2,.... { class Light1 { color[] = { 100,100,100 }; ambient[] = { 100,100,100 }; intensity = 0.1; size = 0; useFlare = 0; flareSize = 0; flareMaxDistance = 0; dayLight = 0; blinking = 0; class Attenuation { start = 0; constant = 0; linear = 1; quadratic = 70; hardLimitStart = 0.15; hardLimitEnd = 1.0; }; point = "light_interior1"; }; class Light2 : Light1 { point = "light_interior4"; }; class Light3 : Light1 { color[] = { 300,0,0 }; ambient[] = { 300,0,0 }; point = "light_interior2"; class Attenuation: Attenuation { start = 0; constant = 0; linear = 1; quadratic = 70; hardLimitStart = 0.5; hardLimitEnd = 1.5; }; }; class Light4 : Light3 { point = "light_interior3"; }; }; };- 1 reply
-
- 1
-
- class
- compartmentslights
-
(and 2 more)
Tagged with:
-
Problems with ladder class config
Prodeath21 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hey, I am currently working on an Arma object and now want to implement the ladder function on to the model. But it´s not working and I don´t know why. Tryed out several things, but still not working... I also surched for a thread about it but could not fined one. Here´s my object class class Static; class Pro21_Autobahnschild : Static { author = "Prodeath21"; displayName = "$STR_Pro21_autobahnschild"; scope=2; model = "\Pro21_Autobahnschild\autobahnschild\autobahnschild.p3d"; //icon = "\Pro21_Autobahnschild\autobahnschild\icons\autobahnschild.paa"; editorCategory="Pro21_Addon"; editorSubcategory="Pro21_Objects"; //editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\I_Boat_Transport_01_F.jpg"; //picture = "\Pro21_Autobahnschild\autobahnschild\icons\autobahnschild.paa"; //vehicleClass = ""; ladders[]= { { "Ladder_1_start", "Ladder_1_end", 2.5, "Ladder_1_action" } }; }; I configured: Ladder_1_start -> Memory LOD -> at the start of the ladder Ladder_1_end -> Memory LOD -> at the end of the ladder Ladder_1_action -> Geometry LOD -> geometry selection of the ladder I looked it up here: https://community.bistudio.com/wiki/CfgVehicles_Config_Reference#ladders But the player option to climbe is still not showing up ingame.. Am I missing something? Pls Help Thanks in advance. -
Hey, I am currently working on an Arma object and now want to implement the ladder function on to the model. But it´s not working and I don´t know why. Tryed out several things, but still not working... I also surched for a thread about it but could not fined one. Here´s my object class class Static; class Pro21_Autobahnschild : Static { author = "Prodeath21"; displayName = "$STR_Pro21_autobahnschild"; scope=2; model = "\Pro21_Autobahnschild\autobahnschild\autobahnschild.p3d"; //icon = "\Pro21_Autobahnschild\autobahnschild\icons\autobahnschild.paa"; editorCategory="Pro21_Addon"; editorSubcategory="Pro21_Objects"; //editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\I_Boat_Transport_01_F.jpg"; //picture = "\Pro21_Autobahnschild\autobahnschild\icons\autobahnschild.paa"; //vehicleClass = ""; ladders[]= { { "Ladder_1_start", "Ladder_1_end", 2.5, "Ladder_1_action" } }; }; I configured: Ladder_1_start -> Memory LOD -> at the start of the ladder Ladder_1_end -> Memory LOD -> at the end of the ladder Ladder_1_action -> Geometry LOD -> geometry selection of the ladder I looked it up here: https://community.bistudio.com/wiki/CfgVehicles_Config_Reference#ladders But the player option to climbe is still not showing up ingame.. Am I missing something? Pls Help Thanks in advance. Transfered to other section --> https://forums.bohemia.net/forums/topic/231663-problems-with-ladder-class-config/
-
Virtual Arsenal is not working. It returns an Error on Initialization and its Inventory is not full. An Error may be seen on the Screenshot. The Inventory lacks at least the 'Mk200' Weapon. The Screenshot of an Error: Text of an Error: Sample Script Code which demonstrates the Effect: Thank you.
-
Hello there Arma community (and developers)! Is there any way to assign costs directly to groups (of units) such as OIA_InfSquad and so on? Well heh, actually I know that it is possible: you just declare the costs of individual classes in the cost table and then call it with bis_fnc_curatorObjectRegisteredTable; That does work so long that when I place a vanilla infantry squad for example the CSAT one, the individual costs I've set will get summed up and then subtracted from the total amount of available Curator (Zeus) points. Why is it then that when I declare individual class costs for a game modification such as Iron Front lite placing individual soldiers works as intended (the set points get subtracted) but when placing a group that consists of those same individual soldiers no curator points get subracted Shouldn't the game handle modifications the same way as it does with vanilla game's groups? That is, when placing a group of units -> sum up all the individual costs and then subtract the total amount. So what gives? Might this be an issue with the base game or the modification I'm using.. or maybe I should declare some additional stuff somewhere that I just currently don't know what to declare and where. I even tried to declare cost (0.9) for LIB_GER_infantry_squad in the very same list where I have set costs for the individual soldiers but that didn't help much. By using the module Set Costs - Soldiers & Vehicles it is possible to circumvent the behavior I'm struggling with here. In that module there's an empty field Men where you can set a cost for every class type "Man". By setting a cost (eg. 0.5) in that field every class type "Man" gets the same cost and then the cost for placing a group from game modifications (such as Iron Front in this case) will be subtracted from the available Curator points. But if I set the cost like that I lose all the control over setting individual costs for every single soldier and then every grunt, marksman, officer and so on will cost the same amount to place and that's a thing I'd like to avert as much as possible.
-
Hello everyone, I have compiled a little list of base classes for CfgVehicles. so that these can be used in combination with isKindOf CfgVehicles Base I had created a pastebin to preserve a little more forum space.
- 10 replies
-
So I'm trying to test out the kbtell command to use dialogue in missions, but I've hit a wall. Everything appears to be working, I'm not getting any errors, but the first subtitles play, the sound doesn't, and nothing else happens. bikb file script file Is there something I'm doing wrong? Thanks in advance.
-
cfgfunction Cfgfunction - set folder path & leave fnc paths undefined
Vandeanson posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hi all, I am a bit puzzled with regards to how cfgFunctions are added (when not defining the path-to-.sqf file for each function). I am trying to merge my functions defined in a test missions description.ext into my mods config.cpp. The below worked in description.ext. "VA3" is the root folder of my mod, containing the "VA" folder. config.cpp is in the "VA" folder I am trying to follow this guide: https://community.bistudio.com/wiki/Arma_3_Functions_Library#Adding_a_Function more precisely, I am trying to get this to work: https://imgur.com/a/k0Z5IWa Any idea what I am doing wrong? I appreciate any help, thanks! Cheers VD -
A way for a script to pull all units name on a given side including mods
Joedapro posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I need a easier way to spawn random units instead of individually pulling all classes from the in game editor and pasting it while adding quotations and commas like this: ["B_mas_med_Army_ENG_F", "B_mas_med_Army_EXP_F", "B_mas_med_Army_GL_F",]. I want to use a script that when called it will pull a random unit from a given side of a given type (infantry, land, air) and spawn them in a group. The group will be filled with random units. I also want it to pull units from mods that I download. I dont want to have to keep updating the script every time I download another unit mod. The mod MMC sandbox has no problem in doing this but I dont know how they did it. -
Hi! All is in the title. For the moment i have this : _configs = "getNumber (_x >> 'scope') >= 2 AND configName _x isKindof 'Car' AND gettext (_x >> 'faction') == 'UNSUNG_E'" configClasses (configFile >> "CfgVehicles"); But it miss the condition to check if the car is armed..
-
Hey guys, as i bought the Creator DLC, i first edited the new Wefelingen map in the EDEN Editor for a little nice base for my ZEUS missions. When i had it finished, i uploaded it to my Nitrado Server via FileZilla. As i joined in the lobby, the lobby started "flashing" with errors in the bottom left corner. I already put the "-mod:gm" in the modification field. And i tried it again with no assets or other buildings. I simply have the spawn and the roles on the map. I tried it with the winter map and the normal map. As i cant edit the files i dont know how to fix it. The only mods i have loaded are: - Achilles - CBA_A3 I hope you can help me 🙂
-
Undefined Base Class in config.cpp
Sacha 'Voodoo' Oropeza posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello folks, As some of you may already know, I'm working on the AH-64D Project, which was originally made by Franze & Nodunit. As the project went open source, I decided to reorganize the code before exploring new possibilities however I got an issue which I don't understand hence I post here a part of the 'new' code. The concerned code part (CfgVehicles) is accessible here on Pastebin. Any ideas ? -
Hello, so what I want to do is make a script that rearms infantry. I have a endless defense mission and respawn loadouts, however I want an addiction on a box to call a script that resupply them with ammo and items. Now what I have now is multiple addActions for each loadout but I don't like that I want a single addActions. so I made a script that checks there weapon and gives them the ammo based on there weapon. Problem is I can't really give say the explosive specialist claymores unless the explosive specialist has a different gun then the rest of them. So I was wondering if there is a way to check the player loadout class from the respawnInventory template? ( so if player loadout class == "AT" then {code}) I took a look at the scripting commands but the best I could find is isClass but I couldn't get it to work.
-
Whitelisting armor to a specific class/unit
Odderino posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I currently have a script in a sqf file that allows me to whitelist certain weapons to certain classes. It looks like this: (Only the parts that matter) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define AT_MSG "Only AT Soldiers may use this weapon system. Launcher removed." _missileSoldiers = ["B_soldier_LAT_F","B_soldier_AA_F","B_soldier_AT_F","B_officer_F","B_recon_LAT_F"]; _missileSpecialised = ["launch_NLAW_F","launch_B_Titan_F","launch_O_Titan_F","launch_I_Titan_F","launch_B_Titan_short_F","launch_O_Titan_short_F","launch_I_Titan_short_F"]; if (({player hasWeapon _x} count _missileSpecialised) > 0) then { if (({player isKindOf _x} count _missileSoldiers) < 1) then { player removeWeapon (secondaryWeapon player); titleText [AT_MSG,"PLAIN",3]; }; }; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (this is not my code, but I do understand everything except why the >0 and <1 is there.) _missileSpecialised would be the rocket launcher itself _missileSoldiers would be the class I would want to have it (and it would be restricted to only that class) I am trying to make it so no matter what I put in _missileSpecialised (mainly weapon, uniform, vest, backpack and helmet) it will take it away from the player if they are not in the _missileSoldiers parameter. The script currently only takes away weapons, and how seeing how there is no counterpart to the hasWeapon command (ex. there is no hasUniform or hasVest) I would be very grateful for some extra help. AT_MSG is just the message displayed when the weapon is taken away from you I tried to fiddle with the code myself, but I have just started learning and this is way outside my skillset, seeing how it probably needs an entire rewrite, as it is only taking away the secondary weapon as of now, and only detecting if you have a WEAPON in the _missileSpecialised section, and not any other items. Also, I am trying to run this on a dedicated server, which to my understanding may require slightly altering parts of code (something with underscores I believe). Thank you to any kind soul in advance. -
I was wondering if there was a certain way to restrict certain classes to certain users on my server? The server runs on a modified Invade and Annex base, so classes are currently setup like this: class Item0 { position[]={15280.771,17.870386,17400.666}; azimut=-201.653; special="NONE"; id=0; side="WEST"; vehicle="SWOP_Clonetrooper"; player="PLAY CDG"; leader=1; rank="LIEUTENANT"; skill=0.60000002; text="s40"; init="(group this) setGroupId [""ALPHA""];"; description="Alpha Squad Leader"; syncId=0; synchronizations[]={70}; }; Vehicle is the name of an NPC, and spawns you with all the equipment the NPC wears. I think restricting the "vehicle" string to a certain User ID would be the best course of action. Something like: If player = SWOP_Clonetrooper and Player UID is not in list then display: You are not whitelisted for this slot and then something with BIS_fnc_endMission Obviously this is not how code works, and would appreciate any help!
-
please forgve my ignorance, i already searched the forum about this, but no luck. where i can find a list of the "type" or "class" (dunno whats the correct word) for the item kind ? i mean like : car, tank, plane .... what are the others ?? thanks guys!
-
Crewman can drive tanks and pilots can pilot helicopters
KdubyaDOG556 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey everyone, Is there a script that will restrict any other unit than crewman from getting in tanks; same with pilots and helicopters. Thanks, KdubyaDOG556 -
Find out vehicle weapon/magazine classnames
WurschtBanane posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, i want to find out vehicle weapon/magazine classnames in order to be able to change the armament of them. As far as i remember there was some kind of command for that, but i am not sure... And no, i cant use the wiki because i am talking about modded content. -
mdhClassReplace.jar is a simple javaprogram to replace classes in all ext, sqs, sqf, sqm files in the folder and subfolders of the toollocation. Set classnames in the mdhClassReplace.cfg file. i wrote it to replace all the A2 classnames of my arma 2 missions with the CUP ones. So the tool scans all ext, sqs, sqm, sqf files and replace the classnames with the ones set in the mdhClassReplace.cfg. mdhClassReplace.jar Source: how does it work: 1. create and write log messages into the mdhClassReplaceLog.txt 2. read the mdhClassReplace.cfg to get the old and new classnames for the replacement 3. check every ext, sqs, sqm, sqf file in the folder and subfolders of the toollocation for the old classnames and replace them with the new one how to use it, example to port A2 mission to A3 with CUP: 1. download the mdhClassReplace.7z 2. extract it to an empty folder 3. put your arma 2 missions into the same folder 4. doubleklick the mdhClassReplace.jar file 5. check the mdhClassReplaceLog.txt file to see what the tool has done 6. copy your arma 2 mission into your arma 3 missions folder and open it in the 3D editor (hopefully it works :D) attention, use this tool/mdhClassReplace.jar on your own risk Download: http://moerderhoschi.bplaced.net/public/tools/arma3/mdhClassReplace.7z my A2 -> CUP ClassnameMSExcelWar :D -> http://moerderhoschi.bplaced.net/public/tools/arma3/ArmAClassnames.png updates: v1.1 - fixed issue with case sensitivity at classname replace -> now the class replacement is case insensitiv - added more classes to replace to the mdhClassReplace.cfg v1.2 - added more replacements to the mdhClassReplace.cfg - update of Javaprogram .sqs and .ext files now also checked along with .sqm and .sqf kind regards moerderhoschi
- 12 replies
-
- 2
-
- moerderhoschi
- java
- (and 4 more)