Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

50 Excellent

About soldierXXXX

  • Rank
    Lance Corporal

Recent Profile Visitors

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

  1. soldierXXXX

    Chat GPT tried to script

    So i just finished the code you wanted. Triggers can work with CollectedItems variable. Variable is number that is tracking how many intel you handed over. To see how many items you handed over you can write: hint format ["Items i have handed over:%1",CollectedItems]; Condition in trigger might be something like this example if you have collected 13 and more items. CollectedItems > 12; The script is run from action that i demonstratively attached to player. I´ve added classic scroll menu action and hold action. Choose one you like more and delete the other one. Only change in the original code is that local variable _intelItems was changed to global variable intelItems. Why ? Because now you need to access information about array of items in more than one script (or scope to be precise). Global variables are just better for changing information on single place. I´ve also added notification, but delete it if you want. Put this whole code to init.sqf and it will work (or elsewhere if you want). This is solution for singleplayer. For multiplayer it must be done differently. You can change parameters to your liking. I´ve commented most of them. If you have questions, i´m happy to answer them. 🙂
  2. soldierXXXX

    Chat GPT tried to script

    Yeah that code won't work because, as I'm reading what AI wrote, there might be two situations. 1) player might have full inventory and thus can't add any item so it will just return 0. 2) player might be able to add item to inventory and the script will get stucked in while loop and since it's run in unscheduled environment it should stop around 10000 iterations and you don't want that. Pretty sure it would freeze arma if not whole PC 😄 If by any chance code worked it would have to repeat this process for x times depending on array length. However this is not what you desire. You want something much simpler and optimized. I will write the code for you when I'll return home. Basically the logic would be: Global variable of items given;//this will be good for triggers implementation Function: Count items that are relevant; Add this number to global variable; Remove all relevant items from player's inventory Currently I'm still at work, so I'll do it as soon as I'm available 😉
  3. soldierXXXX

    Chat GPT tried to script

    Lol no way. Did ChatGPT just stole my code? I've used it here in this topic. That just really made me laugh 🤣. When i'm back at home, i will see how can i help. I'm thinking about implementing "take" and "put" eventhandlers with some action that can do something similar like what you see in extraction. Or maybe someone will be quicker than me and solves your issue. 😉 Edit: Actually take and put eventhandlers might not be needed at all. Action that removes all required items from your inventory and adds numeric variable might do just fine. Do you need it for singleplayer or multiplayer?
  4. Command orderGetOut doesn't exist. Use doGetOut with combination of orderGetIn FALSE, allowGetIn FALSE or leaveVehicle. Also pay attention for commands syntax. Some commands needs units array instead of group.
  5. soldierXXXX

    De-ACEing a mission?

    There are two ways how to do that. First option is to open editor and merge mission. That should remove dependency and remove all items that are not present in the game. Save the mission. You need to copy all mission file content except mission.sqm if you have any in the folder (if you save the mission with the same name this might not be needed). Then you need to also set playable character again and weather attributes. Then save the mission. I did this to one of my published missions (same problem with ace dependency). Maybe also check units gear if they have first-aid kit automatically added. It's been while since i did this so I'm not sure if everything is gonna work as i wrote. Second option is to force load mission through eden editor. This option was added in update 2.06 but i haven't tried this method myself.
  6. Very interesting issue indeed. I´ve tested your mod, observed how AI works normally, with forceSpeed, without custom runways and here is my conclusion. So the biggest problem that is causing this issue are those custom runways you placed in editor. AI thinks that something that they can´t recognise is blocking the way which causes them to get stuck. Doesn´t happen everytime in the same spot but mostly somewhere on the runway (mostly first right turn in mod provided mission on airfield 0). when forceSpeed was used AI got unstucked and in many cases was able to take Off. Sometimes it still got stucked somewhere but not often. The range issue is the most interresting one because when i was just a normal unit on the ground it worked pretty good but as soon as i moved further from aircraft with unit or switched to splendid camera/spectator mode the plane got stucked until i moved the camera closer just like you did on the video. When i tested it without these runways the AI didn´t have a problem and moved as expected. The range issue with forceSpeed didn´t occurred anytime in this case. My previous solution works only for one plane at time. Plane is able to move like there are no obstacles in the way. Why does this work for only one plane ? It´s because object references. Disabling collision creates reference between two objects, but as soon as some other object refers to the same object, reference on that object gets overwritten and first object automaticaly enables collision again. See example 3 in disableCollisionWith. My code for this solution: Test for disabled collisions in debug console: Only solution for more planes i could have think of was to create pushing script so the AI cannot get stucked anywhere. AI is still able to turn around the runway so pushing the aircraft is working, but it´s not eye candy. However it works anywhere on the map and player doesn´t have to be around. Ideal solution would be to make these runways as part of the map but i think that´s not possible in this case. Another ideal solution would be allowing objects to be set as Simple objects. Here is my code for this solution: So in conclusion runways colliding with planes. Range issue with forceSpeed only appears when there are custom objects in the runway path that might normally block pilot AI movement. It´s a very specific case that causes this issue. Still, i´m not entirely sure if it should happen. Because it´s strange that when you´re around plane moves, but as soon as you move out of sight the plane stops. Maybe create a feedback ticket for that. I´m thinking about something universal like _unit disableAI "COLLISIONCHECK" or something like that might be pretty useful in such situations. But i´m not sure if it´s doable. I´m afraid i cannot help any further with this problem. At least i can confirm the issue does happen when AI is dealing with this situation 😄. I hope this helped 🙂. For anyone interested here is a debug code that will mark config positions on any map. I created it to test these airport ways.
  7. Alright so this seems like a collision issue. I´ve tested the case you described in your previous post. I´ve seen the plane brake when aproached object(s). Solution to this is simple. ForceSpeed is not needed. If the object can be set in Atributtes as Simple object, the plane stops braking. If the object cannot be set as Simple object (mission design or doesn´t have the option) you can solve it by disabling the collision with the plane. in the colliding object init field write: this disableCollisionWith myPlane1; and the object shouldn´t be a problem anymore. Tested case: Also (not sure if you know this or not) be aware that Planes cannot move upon the runway the way you might want them to. They can move only on predefined paths that is written in world config so they will ignore any move waypoint you gave them. For that case is best to record the path with unitCapture function. Example Altis airfield points: Green are for take off and Red are for Landing Also i´m still not sure about the 50m problem. That i can´t reproduce. Might you share a video about what´s happening in your mission and the code you use ?
  8. Can´t reproduce this either. I´ve tested it with multiple situations and the smoke was visible everytime. We need more informations. 1) Do you play with mods ? 2) What is your Video option settings 3) Which plane do you use ? 4) Do you have a repro code you can provide that issue occurred with ? 5) Rpt file you can provide ? 6) Anything you might tell us Here are some pictures so you can see this works normally on my end. *Edit Smoke example is to confirm command forceSpeed is working as expected (like: plane1 forceSpeed 2000;). Not sure if the issue is related to effect visibility or just the sound.
  9. soldierXXXX

    drawLaser between two objects

    Exactly what @Larrow said except i would change getPosASL for getPosASLVisual which gives you much smoother movement and visually precise position (getPosASL runs in simulation scope and getPosASLVisual runs in render scope) Example code: addMissionEventHandler ["Draw3D", { drawLaser [ getPosASLVisual object_1, getPosASLVisual object_1 vectorFromTo getPosASLVisual object_2, [0, 0, 1000], // Bright blue [], 0.5, 2, -1, false ]; }];
  10. soldierXXXX

    lbCurSel not working?

    Hi. Replace this part of code with this and it should work (not tested). Do you need explanation ? //index = lbCurSel _lista; //getLbText = _lista lbText index; life_fnc_boton = { _display = findDisplay 7726; _lista = _display displayCtrl 5245; _index = lbCurSel _lista; _getLbText = _lista lbText _index; if (_index == -1) exitWith { hint "No has seleccionado ninguna opción"; }; hint format ["%1 | %2", _getLbText, _index]; };
  11. Hi, yes it is possible to interrupt action for specific doors. If you find the building in config viewer, you can see that in "UserAction" every door action has priority number set to 11 (not sure about moded buildings). The engine automatically decreases every action with same priority number by -0.001. That means that door can be identified by it´s priority number -> door1 open = priority 11, close = priority 10.999, door2 open = priority 10.998, close = priority 10.997 and so on... I´ve made simple code that tells you the priority of door action you just performed so you can simply find the number you need. Sadly i can´t think about any other way to achieve what you desire. Default user actions like heal, open doors, get in vehicle and so on are not possible to remove so this is the only way how to interrupt it. Code for example that "locks" the main door: change position of wantedBuilding and if you want different doors to be locked, change _priority == number according to doors you interacting with. wantedBuilding = nearestBuilding [6005.66,10592.8,0]; inGameUISetEventHandler ["Action", "params ['_target', '', '', '', '', '_priority', '', '', '', '', ''];_forbidAction = FALSE;_condition = (_target == wantedBuilding AND {_priority == 11});hint format ['Building Locked:%1\nAction priority:%2\nAction is interrupted:%3',_target == wantedBuilding,_priority,_condition];if _condition then {_forbidAction = TRUE};_forbidAction"];
  12. soldierXXXX

    arma 3 sound insulation in vehicle

    Everything is explained HERE. It just plays the sound as speech when TRUE is set. That means it doesn´t apply sound filters but reacts to fadeSpeech instead of fadeSound. In case you replaced TRUE with 2 instead it would also not apply sound filters this time the sound would react to fadeSound. Basicaly that´s the only difference between these two parameters. So in short- testvehicle1 say3D ["vtolRamp", 100, 1, TRUE];//this reacts to fadeSpeech testvehicle1 say3D ["vtolRamp", 100, 1, 2];//this reacts to fadeSound
  13. soldierXXXX

    arma 3 sound insulation in vehicle

    Hello. Try to set isSpeech parameter to TRUE (or 2 if you need fadeSound applied instead of fadeSpeech) when executing the command. I just quickly tried that and it helped. What is interesting is that some vehicles can play sounds normally as you expect the command should behave (i tested with "C_Offroad_02_unarmed_F" which plays sounds correct and with "B_LSV_01_unarmed_F" which does not) but most vehicles does play sound exactly as the car in the video. This is my best bet, so try it and let us know 🙂. testvehicle1 say3D ["vtolRamp", 100, 1, TRUE];
  14. Okey. I´ve enhanced the script for all the possible usage 😄. It was a bit of work but now the script can do these things: Script now can be repeated if needed. Drones will now attack targets only if the target is not claimed by other drone. Drones wait until all drones that claimed target are destroyed or if they meanwhile find different target. Drones now have optional parameter that will decide their usage-If they should reposition to new area or if they should stay at their current location. (when script is repeated) I´ve added also example how to spawn drones at multiple locations heading for the same target area. The script now doesn´t need anything prepared in the mission (i´ve removed the marker depandency) The script is now also more optimized and should be separated into Init.sqf and 1234.sqf (memory operations optimization) I´ve also added syntax comments so you know how you can use the scripts and what they need. Init.sqf 1234.sqf Try it out and let me know if that meets your expectations 😄
  15. Thanks 🙂 I´m glad it´s working. In case you don´t need to repeat the radio action, i think we can consider this topic as closed 🙂.