Jump to content

Midnighters

Member
  • Content Count

    894
  • Joined

  • Last visited

  • Medals

Everything posted by Midnighters

  1. Midnighters

    type class list?

    you mean like, a config entry has a parent named "corpse" ?
  2. Well. One could say, it's still being calculated locally. But...
  3. Larrow posted this for that exact use: [ missionNamespace, "arsenalOpened", { disableSerialization; _display = _this select 0; { ( _display displayCtrl _x ) ctrlSetText "Disabled"; ( _display displayCtrl _x ) ctrlSetTextColor [ 1, 0, 0, 0.5 ]; ( _display displayCtrl _x ) ctrlRemoveAllEventHandlers "buttonclick"; }forEach [ 44146, 44147 ]; } ] call BIS_fnc_addScriptedEventHandler;
  4. Well I wouldn't doubt one bit that it would. Every single weapon config entry? At start? At Random? I wouldn't expect any less. the preProcessing will help, I believe the server saves a cache of these kind of operations.
  5. Yeah good point. Sometimes if it throws and error for me it won't even be on that line, and the error was a line or two above it. so commenting out some different problematic lines could help break it down to the solution. I guess in your case @shape1205 there could be something wrong, and preventing something loading even if arma doesn't throw an error in your face.
  6. I would try preProcessing this file anyways if it's being ran more than once..
  7. why not just remove every weapon globally? then add it all back to the arsenal after a sort of "blacklist" has been established? BIS_fnc_removeVirtualWeaponCargo I would imagine this works correctly. I'm not too sure?
  8. Midnighters

    Randomized Array of Clothing

    Right, I understand there is a distinct difference between the two. However, by others above both (selectRandom) and (bis_fnc_selectRandomWeighted) were used. (in this context)
  9. Midnighters

    Hostile civilians

    aye, I missed that tid bit. Thanks, this makes more sense now.
  10. if anything this could've just been defined in CfgFunctions in the description.ext (if this in fact a file containing a function)
  11. Midnighters

    Hostile civilians

    Wait a sec. Wouldn't reveal show the enemy position regardless of the friendly position? IE: Across the map? :/
  12. Midnighters

    Addaction Woes

    I recommend you use remoteExec instead of bis_fnc_MP next time.
  13. Midnighters

    Randomized Array of Clothing

    what's the performance differences on the two? bis_fnc_selectRandomWeighted and just selectRandom ? Especially with a larger array.
  14. Midnighters

    type class list?

    are you looking for something like configClasses ?
  15. so I'm assuming you're using bis_fnc_ambientAnim use remoteExec in combination with it. remoteExec BIS_fnc_ambientAnim Pierre had provided a sample of such at the bottom of the documentation for the ambientAnim function.
  16. The epe contact event hanlder is for physical collision no matter if stored in a weapon holder (i believe). AttachTo will be the only thing that prevents it from firing unless you collide with the ground the returned object will. Dont know how well checking the distance between each will work. Very taxing on performance i would believe. The epe event handlers should work fairly well.
  17. Midnighters

    A3 Tank hit parts

    getAllHitPointsDamage returns an array, you dont create the array manually. hint format["%1",(getAllHitPointsDamage _vehicle)]; That would give you an onscreen representation of what its creating. Make sure to store it in a variable so you can reffer back to it later in the script. Ex _myHitpoints = getHitPointsDamage _vehicle; { _vehicle setHitpointDamage[_x, 1]; } forEach _myHitpoints;
  18. epeContactStart event handler? You could always check the distance between any given two.
  19. Midnighters

    Hide respawn position marker

    Does addRespawnPosition actually create a marker though? I dont see any way to track the markers created from it if hat is the case.
  20. Midnighters

    Respawn_west

    I always use the trusty respawn markers. Could just be a habit of mine. But, @GioLabo make sure to add: respawn=3; in your description.ext for base respawning.
  21. yeah it definitely has no idea where the ied is at..
  22. Hello all. I ran into a problem recently. I found that if I set _trg to trg then my triggers work outside a given set of brackets. Which is expected. same with _ied and ied iedtype = (_this select 0); //marker or map based. Either a string with the marker name, or as string with "mapPos" probability = (_this select 1); //probability arrayMin = ((_this select 2) select 0); //array of numbers ex: [1,2,3] arrayMedian = ((_this select 2) select 1); arrayMax = ((_this select 2) select 2); allowRoads = (_this select 3); //boolean debug = (_this select 4); //boolean safeZones = (_this select 5); //array findMapPos = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition"); findMapSize = getNumber(configFile >> "CfgWorlds" >> worldName >> "mapSize"); findRoads = findMapPos nearRoads findMapSize; iedSelection = ["_iedUrbanBig_F","_iedLandBig_F"]; explosionSelection = ["M_Titan_AT","Bo_Mk82","Bo_GBU12_LGB","R_230mm_He","R_80MM_HE"]; fnc_explosion = { (selectRandom explosionSelection) createVehicle (getPos (_this select 0)) }; if(iedType == "mapPos") then { for "_i" from 0 to random[arrayMin,arrayMedian,arrayMax] do { if(allowRoads) then { if(probability > random 100) then { _ied = (selectRandom iedSelection) createVehicle (getPos (selectRandom findRoads)); _trg = createtrigger["EmptyDetector",(getPos _ied)]; _trg setTriggerArea[1,1,1,false]; _trg setTriggerActivation["Any","PRESENT",false]; _trg setTriggerStatements["this","(selectRandom explosionSelection) createVehicle (getPos _ied); deleteVehicle _ied;",""]; if((count safeZones) > 0) then { { if((getPos _ied) inArea (getPos _x)) then { deleteVehicle _ied; }; if((getPos _trg) inArea (getPos _x)) then { deleteVehicle _trg; }; } forEach safeZones; }; if(debug) then { _mkr = createMarker[(str(getPos _ied)),(getPos _ied)]; _mkr setMarkerType "hd_dot"; _mkr setMarkerColor "ColorRed"; }; }; }; }; }; This is the entirety of the script, I am nowhere near done with it. But the issue is that when the trigger is activated, another ied is set off. I'm thinking because ied is all the same to the script. Rather than each fo them being their own mine?
  23. Midnighters

    Arma 3 module documentation.

    For as many people as they are hiring on. Why don't they have just one person dedicated to document things? Dunno.
  24. yes, glad to see you are getting this to work.
×