Jump to content

Search the Community

Showing results for tags 'scripting'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Arma Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • DayZ Italia's Lista Server
  • DayZ Italia's Forum Generale

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 513 results

  1. I have some experience in writing code, but for the life of me cannot figure out how to write a small add on that is 1) always present, not a modified SQF(I do know how to sign a PBO) 2) Access events or other Arma scopes, I want to control the execution of my code. Does someone have a config.cpp with necessary headers for creating an add on. I just want to save flight data out of the game. I have seen the members/types of the Arma Class on BIS's web page, but have no clue on how to structure it. Thanks in advance!
  2. FiredMan can complete replace Fired. Problem solved, please close this.
  3. I've been playing a lot on a server where they have a scroll menu action for each player to build sandbag walls as cover by selecting build obstacle and then drop equipment.(it hovers where you are looking until you select drop so you could build a high wall if you really wanted to) https://photos.app.goo.gl/uCoBd6wFRe8EmJ319 I've tried other sandbag type scripts but they don't work like whatever this is. I would really like to be able to use this for a co-op mission as it really improves play for my friends and I. (I was going to directly ask the mission maker but i haven't been able to ascertain whom that is as of yet) I appreciate any ideas anyone might have as to how they've accomplished this or what I would need in my mission folders to make this work. Thanks
  4. Hello all. I'm a non-coder, trying to figure this out, and have put together my first ever patch, to change a loadout in ITC's SPHs. I've got 99% of it ironed out, but am running into an issue where I get an error in CBA every time I load a mission with it included - trying to polish this to use w/ Zeus-based MP server, and would love to eliminate this error. Here's the relevant error section from the RPT. This repeats several 10's of times, over a couple seconds. 23:01:10 Error in expression <ba_settings_fnc_openSettingsMenu'] call SLX_XEH_COMPILE_NEW; ['\x\cba\addons\set> 23:01:10 Error position: <SLX_XEH_COMPILE_NEW; ['\x\cba\addons\set> 23:01:10 Error Undefined variable in expression: slx_xeh_compile_new 23:01:10 File \x\cba\addons\settings\fnc_addSetting.sqf [CBA_fnc_addSetting]..., line 5634 23:01:10 Error in expression <nit.sqf', 'cba_settings_fnc_init'] call SLX_XEH_COMPILE_NEW; ['\x\cba\addons\set> 23:01:10 Error position: <SLX_XEH_COMPILE_NEW; ['\x\cba\addons\set> 23:01:10 Error Undefined variable in expression: slx_xeh_compile_new 23:01:10 File \x\cba\addons\settings\fnc_addSetting.sqf [CBA_fnc_addSetting]..., line 5622 23:01:10 Error in expression < call SLX_XEH_COMPILE_NEW; }; }; call cba_settings_fnc_init == 0 }> 23:01:10 Error position: <cba_settings_fnc_init == 0 }> 23:01:10 Error Undefined variable in expression: cba_settings_fnc_init 23:01:10 File \x\cba\addons\settings\fnc_addSetting.sqf [CBA_fnc_addSetting]..., line 5655 And here's the fairly simple cfgVehicles.hpp (called with an #include from the Config.cpp) /// Magazines macros definition /// #define mag_2(a) a, a #define mag_3(a) a, a, a #define mag_4(a) a, a, a, a #define mag_5(a) a, a, a, a, a #define mag_6(a) a, a, a, a, a, a #define mag_7(a) a, a, a, a, a, a, a #define mag_8(a) a, a, a, a, a, a, a, a #define mag_9(a) a, a, a, a, a, a, a, a, a #define mag_10(a) a, a, a, a, a, a, a, a, a, a #define mag_11(a) a, a, a, a, a, a, a, a, a, a, a #define mag_12(a) a, a, a, a, a, a, a, a, a, a, a, a #define mag_15(a) a, a, a, a, a, a, a, a, a, a, a, a, a, a, a #define mag_20(a) a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a #define mag_24(a) a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a #define mag_30(a) a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a #define mag_35(a) a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a class CfgVehicles { class LandVehicle; class Tank: LandVehicle {}; class Tank_F:Tank { class Turrets { class MainTurret {}; }; }; class MBT_01_base_F:Tank_F { class Turrets: Turrets { class MainTurret: MainTurret {}; }; }; class MBT_01_arty_base_F:MBT_01_base_F { class Turrets: Turrets { class MainTurret: MainTurret {}; }; }; class B_MBT_01_arty_base_F:MBT_01_arty_base_F { class Turrets:Turrets { class MainTurret:MainTurret {}; }; }; class itc_land_SPH01_base:B_MBT_01_arty_base_F { class Turrets:Turrets { class MainTurret:MainTurret { //animationSourceBody = "turret_source"; //animationSourceGun = "gun_source"; turretInfoType = "ITC_Land_RscIGS_SPH"; weapons[] = {"itc_land_155mm_howitzer"}; magazines[] = { mag_35("itc_land_g155hex"), mag_10("itc_land_g155smo"), mag_5("itc_land_g155ill"), mag_10("itc_land_g155lgm"), mag_10("itc_land_g155pgm"), mag_5("itc_land_g155map"), mag_10("itc_land_g155mat") }; }; }; }; class itc_land_b_SPH_Sholef2:itc_land_SPH01_base { class Turrets:Turrets { class MainTurret:MainTurret { //animationSourceBody = "turret_source"; //animationSourceGun = "gun_source"; //turretInfoType = "ITC_Land_RscIGS_SPH"; //weapons[] = {"itc_land_155mm_howitzer"}; magazines[] = { mag_35("itc_land_g155hex"), mag_10("itc_land_g155smo"), mag_5("itc_land_g155ill"), mag_10("itc_land_g155lgm"), mag_10("itc_land_g155pgm"), mag_5("itc_land_g155map"), mag_10("itc_land_g155mat") }; }; }; }; class itc_land_b_t_SPH_Sholef2:itc_land_b_SPH_Sholef2 { class Turrets:Turrets { class MainTurret:MainTurret { //animationSourceBody = "turret_source"; //animationSourceGun = "gun_source"; //turretInfoType = "ITC_Land_RscIGS_SPH"; //weapons[] = {"itc_land_155mm_howitzer"}; //magazines[] = { // mag_35("itc_land_g155hex"), // mag_10("itc_land_g155smo"), // mag_5("itc_land_g155ill"), // mag_10("itc_land_g155lgm"), // mag_10("itc_land_g155pgm"), // mag_5("itc_land_g155map"), // mag_10("itc_land_g155mat") //}; }; }; }; }; You'll note I've commented out some strings, trying to figure out what I can cut from the file, and what needs to stay - the last two classes at the end ("...b_SPH..." and "...b_t_SPH..." weren't changing when I put their parent class in (itc_land_SPH01_base), so there's an inheritance issue somewhere, but I was able to get it to work. Less concerned about that (I can do iterative revisions to figure it out) and more concerned about the CBA errors. Any thoughts as to what might be causing the CBA error, or resources I can dig into to figure it out, are all appreciated. Thanks in advance!
  5. Hello I was searching for documentation to ARMA 3 Editor module "Zone Protection". It is calling BIS_fnc_moduleZoneProtection I cannot find any description or use cases. If my hunch is right, it should be a functionality used to create an area where damage is not applied to objects / characters? However BI wiki is very much empty on this module or function. Using function viewer i had a look into the code of the function but i am very much a newbie on arma scripting. While i understood from the code that the module can be synced only with Locations logic entities - documentnation on Locations is equally shabby. I tried in a single player scenario to place a location entity and sync it with this module. To my understanding some area should have been displayed on map but nothing happened. It had no effect. So i would be grateful if somebody experienced could explain. Thank you very much! P.S: Sorry if a topic exists somewhere on the forum explaining it - i was unable to find it.
  6. Is there a way to get a tripwire to detonate when an object (e.g. door or AI) goes through it by scripting in the editor? If so, how?
  7. JElledge_58

    Hint Timer?

    Is it possible to make a hint go away after a certain amount of time?
  8. I've been trying desperately to make a mission for my friends, You basically run a hospital, randomly generated wounded Ai come to you for help, it uses ACE medical. I've gotten them to spawn and everything, but they refuse to move from where they spawn. Can anyone help me out? sleep 1; _group1=createGroup west; 'b_survivor_F' createUnit [getmarkerPos 'PatientSpawn', _group1,'pat1=this; dostop pat1']; _wp1 = _group1 addwaypoint [getmarkerPos 'hospital', 0]; _wp1 setWaypointType "MOVE"; _wp1 setWaypointSpeed "FULL"; [pat1, selectRandom[0.3,0.5,0.7,0.9], "LeftLeg", selectrandom ["stab","bullet","falling"]] call ace_medical_fnc_addDamageToUnit; [pat1, selectRandom[0.3,0.5,0.7,0.9], "RightLeg", selectrandom ["stab","bullet","falling"]] call ace_medical_fnc_addDamageToUnit; [pat1, selectRandom[0.3,0.5,0.7,0.9], "Body", selectrandom ["stab","bullet","falling"]] call ace_medical_fnc_addDamageToUnit; [pat1, selectRandom[0.3,0.5,0.7,0.9], "RightArm", selectrandom ["stab","bullet","falling"]] call ace_medical_fnc_addDamageToUnit; [pat1, selectRandom[0.3,0.5,0.7,0.9], "LeftArm", selectrandom ["stab","bullet","falling"]] call ace_medical_fnc_addDamageToUnit; Update: I've loaded Achilles to see if the waypoint was placed, it was, they just won't move, I even gave him another with Achilles and he still won't. Any help at all?
  9. I'm wondering how to get the AI in singleplayer to perform the THS hand signal animation. I don't see the animation anywhere in the editor. Would I manually insert it? Or do I need to create a .sqf file? Thanks!
  10. Hello, I'm new to creating missions with the editor, and am trying to set up a mission where, after you kill an officer in a base, another officer starts retreating, and you need to take him out as well. On top of that, you need to clear the base of hostiles to finish the scenario; however; if you kill the second officer before you kill the first one, the scenario doesn't end. You still get assigned to take him out even though he's already dead. I have multiple triggers and tasks set up, one that activates the retreat when you kill the first officer(which is the first task). This also assigns the task of eliminating the second officer. I have another task that makes you have to clear the base which is synced to a trigger that completes the task. I guess long story short, is it possible to skip a task if it is completed before it is assigned?
  11. I'm having an issue with players doing the dumbest things while I am "setting the mood". It's a simple helo insertion, and I don't want them to be able to get out of this helicopter in any way shape or form until it lands and ejects them out. Some scripts only manage to prevent them from getting out of the helicopter, but the eject function works just fine. I'm fairly new to scripting and it is likely an error on my side, but I haven't been able to stop them. I figured a way to solve this would to set them all as hostages to be released until the transport unload waypoint is complete, but I don't have the scripting knowledge to do it. How would I do this? If it's a really simple fix, I apologize for my stupidity. I like ambiance, but players doing suicidal things like this I want to desperately avoid.
  12. As the title says. I want a door to be locked in my mission, but since its a stealth mission I want the player to have to force the door lock instead of opening it with an explosion, for let's say 20 seconds, until it opens. How do I achieve this?
  13. I know this must be easy, but I've been looking on online and there's nothing I found that was useful. In my mission I want players to be able to open up a rugged portable cabinet, after that I want a message to pop up somewhere to tell them that the box was empty. How do I do this? I already have the system in place thanks to 3den enhanced, I just need the script to alter the state of the cabinet and to pop the message
  14. I’m currently making a Singleplayer where the player clears out multiple enemies before capturing an unarmed enemy officer, using holdActionAdd. The plan is for the enemy officer’s load out will then change (blindfold put on) and then for the enemy to follow the player into which ever vehicle they get into. As a somewhat novice to scripting any help would be greatly appreciated, cheers.
  15. Hey all. Apologies if I posted in a wrong section. I'm getting into modding and I'm playing around with some different solutions. I was thinking about creating and releasing a mod soon. As a part of it however, I need to create a custom object that can draw a text (from its custom attributes) on its flat surface. I really want to avoid creating textures for every single digit and letter of the alphabet. I'm guessing it's possible, as even aircraft HUD's and dials can display current altitude and speed. I tried looking it up on the forums but I didn't find anything useful. Obviously performance is key for me, so if there isn't any good way to solve it, I'm happy to do it with a ton of textures instead. The object is very unlikely to change its text mid-game because it's basically a specific, static sign, so I don't know if having each frame loop to update it is really necessary, unless it doesn't take too much power. In case I need to use the textures approach, can anyone shed some light how to create an object that works with setObjectTexture? As mentioned earlier, I would like to provide some extra options in the eden editor's object's attributes to customise the sign's textures, is there a way of making it reflect its textures set in attributes in Eden after they've been changed? Is there a way of creating textures that glow in the dark, or otherwise having a light on an object that turns on at night and lights up the sign? Thanks!
  16. Hey there everyone, I'll get to the point. I'm still pretty new to ArmA 3 Scripting and mission creating. I have a couple of these questions that maybe the Veteran community could answer. I want to add custom images, unit patches, voice lines, etc etc etc. BUT. I am inexperienced in how to get them to work. I've looked on the community and the wiki but it doesn't seem to work in the way that I was hoping. The questions. - What scripting program is good? - What programs would I need? - Where can I find a way to insert my own custom made files into the game?
  17. Hello, I think of myself as decent when it comes to Arma scripting, but I can't seem to figure out event handlers for this case. I'm basically trying to create two event handlers that will play sounds when a unit dies or is damaged. One event handler will play a randomized death sound The other will play a randomized on hit sound effect I have already defined sounds in my mission description file. However, how would I apply these event handlers too all units in the mission that match certain unit classes (i don't want to have to place something in every unit's init). Is this possible? It's worth noting that this is for a MP environment (not dedicated) and I plan to use say3d on a dummy object for the death sounds.
  18. Hello, I am trying to make a TreeView dialog that allows me to select units (in fact what I would like is exactly the same treeView of the Eden Editor) and I have been making filters and using the configClasses but I just did not like the result. Anyone know how I could get something like that? I'm using this to filter, but it doesn't seem to be a good approach I think, because some strange units still appear fn_load.sqf _cntrlTree = (findDisplay 1500) displayCtrl 0; _ManList = ("configName _x isKindOf 'Man' AND configName _x isKindOf 'SoldierWB' AND (getText (_x >> 'faction')=='BLU_F') AND (getText(_x >> 'editorSubcategory')=='EdSubcat_Personnel')" configClasses (configFile / "CfgVehicles")); { _text = getText(configFile >> "CfgVehicles" >> configName _x >> "displayName"); _text0 = getText(configFile >> "CfgVehicles" >> configName _x >> "editorSubcategory"); _cntrlTree tvAdd [[],_text]; _cntrlTree tvSetTooltip [[_forEachIndex], configName _x]; } forEach _ManList; _cntrlTree tvSort [[], false]; The following is in case someone serves as I am doing the treeVIew, although to solve the problem it may not be necessary. Thanks for the help.
  19. Im trying to spawn jet with crew (pilot) in air, but "BIS_fnc_spawnVehicle" don't return even empty array, code: _spawnMarker = selectRandom ["markerSPopforAC2", "markerSPopforAC1", "markerSPopforAC0"]; _enemiesCount = selectRandom [2, 3, 4]; _height = selectRandom [700, 1000, 1250, 1500]; _isSaD = false; _position = getMarkerPos _spawnMarker; _position set [2, _height]; //fix height if(_spawnMarker == "markerSPopforAC2") then { _isSad = true; }; try { ["Spawning root at: %1 // count: %2 // SaD: %3", _spawnMarker, str _enemiesCount, str _isSad] call fnLog; _root = [_position, 180, "O_Plane_CAS_02_F", east] call BIS_fnc_spawnVehicle; _rootGroup = _root select 2; _rootVehicle = _root select 0; ["Spawn pos: %1, root: %2", str _position, str root] call fnLog; // for [{_i = 0}, {_i < (_enemiesCount - 1)}, {_i = _i + 1}] do { // _child2DPos = [_position, 100, 500, 0, 1, 0, 0] call BIS_fnc_findSafePos; // _childFixedPos = [_child2DPos select 0, _child2DPos select 1, _height]; //setup array with missing height // _child = [_position, 180, "O_Plane_CAS_02_F", east] call BIS_fnc_spawnVehicle; // //_childCrew IS ARRAY // _childCrew = _child select 1; // //take first member of crew (we have only one pilot) // //and join him to group // [_childCrew select 0] join _rootGroup; // }; _waypointPos = _position; _waypointType = "CYCLE"; // if(_isSaD) then { // _waypointPos = getMarkerPos "marker_10"; // _waypointType = "SAD"; // }; _waypoint = _rootGroup addWaypoint [_waypointPos, 0, 1]; _waypoint setWaypointType _waypointType; } catch { ["Error occured: %1", str _exception] call fnLog; hint str _exception; }; Sample debug output: Spawning root at: markerSPopforAC0 // count: 4 // SaD: false Spawn pos: [12715.8,29182.7,1000], root: I would be thankful for any suggestions.
  20. So I'm currently trying to make a mission like that from Ace Combat's multiplayer where each team is trying to take out the other's ground or sea assets first while in aircraft. Currently I'm just using a sector control game mode that works fine just using modules. What I've done is make it so dying and respawing for players doesn't take away tickets and the cap area is a tiny area in the middle of the map which players will ignore (this is a private multiplayer things so we just agree to ignore it) Now the point of the question. There is also a bunch of AI trucks driving around, when one of them dies I want it to take a specific number of tickets away from the side it belonged too. Therefore, destroying all of Opfor's teams AI trucks would mean they have no tickets and Blufor Would win. Is there something I could stick in the AI trucks "Init" in the editor that would just remove a number of sector control tickets for it's side die upon death?
  21. I have been searching for a solution to this for a few days, and finally decided to make a post. Is there a way to remove specific default actions from an object through scripting in ACE3? Or even disable to interact with a specific object at all? I would like to remove the ability to remove wheels and repair from a set of vehicles. Sorry if this is not the exact location to post this, but the ACE wiki does not seem to have anything on this, and I couldn't find an answer online.
  22. Hi everyone, Need help with this script. I create a marker who spawn on tanks placed in Zeus on the map call T1, T2 etc... This marker could be dynamic. I mean its move with the tanks and show on the map, with a bliking effect only when the player will be at a defined distance. So I try this, but the marker don't move with the tank. I try to use setPos getPos player, to attach markers to tanks but nothing. The Marker will be create correctly, could see on the map, but didn't move with de tank... _tank = ["T1", "T2", "T3", "T4", "T5"]; while {((!alive _tank) && (player distance _tank < 1000))} do { (_marker1 = createMarker ["mark1", _tank]; _marker1 setMarkerShape "Ellypse"; _marker1 setMarkersize [500, 500]; _marker1 setMarkerColor "ColorRed"; mark1 attachTo [_tank]; ["mark1", 3, 50] spawn BIS_fnc_blinkMarker; }; Somebody could help me?
  23. I was trying to use some trigger to refuel/repair/rearm ground vehicles, heli and jets but when i reach the trigger, an error appears "scriptname.sqf not found" I already did the Scripts folder in the mpmissions folder, etc... I'm new at these script things, someone can help me with this? I just want to choose a place in my missions tô refuel/rearm/repair my vehicles
  24. Looking to make AI fire on random preset markers. I have ripped and tinkered with some bits and pieces of code. Most come from GOM's posts and replies. Here is what I've come up with: [] Spawn { while {true} do { _arty = mortar1; _target = ["target1","target2","target3"] call BIS_fnc_selectRandom; _artyAmmo = getArtilleryAmmo [_arty] select 0; _artyETA = _arty getArtilleryETA [getPosATL _target, _artyAmmo]; _inRange = (getPosATL _target) inRangeOfArtillery [[_arty], _artyAmmo]; systemchat format ["In range: %1",_inRange]; if (_artyETA > 0 AND _inRange) then { systemchat "Cleared to fire!"; systemchat format ["Impact ETA: %1s",_artyETA]; _arty commandArtilleryFire [getPosATL _target, _artyAmmo, 5]; sleep 45; } }}; But as far as I can tell, the target cannot be randomly selected. This bit here seems to break it: _target = ["target1","target2","target3"] call BIS_fnc_selectRandom; It works to fire on one position with it as this: _target = target1; The artillery fires nicely with the Do While loop and the sleep x; bit. But one other issue is that arty doesn't start firing until the sleep x time has passed. Which is a small issue in itself. Even with sleep being at the end of the code, it waits the full amount of time before firing. I thought these scripts ran top to bottom. TL;DR: Code works only for single target. I want to fire 5 shots, then pick another random preset target (target1,target2,target3,etc.) then fire 5 more with a sleep delay between barrages. Huge bonus: If someone can post a separate bit of code to fire on players current position. Once it fires, I just want it to hit where it was supposed to. As if players are running from the arty fire and if they stay still, RIP. I looked into getRelPos for players, but had no luck. Just errors.
  25. I've just begun modding in Arma 3, after someone approached me and asked me to help him with modding in a beret that didn't exist anywhere on the workshop yet, I did everything as he asked me to and followed closely Arma 3's limitations (10k triangles at most, no smooth shading, all triangles, taken from https://community.bistudio.com/wiki/Arma_3_Modding_Characters). I used Blender to model the beret and managed to export it into a P3D file, then I exported its texture in a PAA file, then I created its icon and saved it as a PAA file, too. The problems began with the config file. I used a tutorial for a steel tube (https://www.youtube.com/watch?v=hxiwU94zwjg&) first, and actually spawned it in the game, it appeared in my inventory, but it didn't exist once I dropped it onto the ground, I thought that's just because I didn't add a line to the config, I don't think it's important so I ignored it Then I found an actual config file for a headgear (from https://community.bistudio.com/wiki/Arma_3_Characters_And_Gear_Encoding_Guide#Headgear_configuration) and I thought if I just changed up some things it'd work good enough. After I was done modifying that config file and got the mod working the game wouldn't let me spawn the beret in. I didn't get any debug messages, nothing. The beret just wouldn't spawn in my inventory, as if it didn't exist in the first place. Now I know this is a long post, but I feel like I needed explained my whole "adventure", so that maybe someone gets an idea of what the problem might be. Here's the mod file if you want to check it out https://github.com/Kalimedes/Mod
×