Jump to content

stanhope

Member
  • Content Count

    1194
  • Joined

  • Last visited

  • Medals

Everything posted by stanhope

  1. Have a look in your RPT, does it say "Error: Unlimited ammo script: _magazineType was nil"?
  2. If it's the ones added by the difficulty settings: no, there is no way.
  3. Did you add a custom blufor tracking script or does the mission you're editing add one? If you're not sure, turn your game to veteran difficulty, play it and see if you've still got them.
  4. The quick and dirty fix is: //Unlimited Ammo Script by XxanimusxX _unit = _this select 0; _ammoCount = _this select 1; _primeWpn = ""; _prevWpn = ""; _magazineType = ""; _foundMags = 0; //hint format["%1 is added",_unit]; //used to check if units are spawned into the mission //diag_log format["%1 is added",_unit]; //used to check if units are spawned into the mission while {alive _unit} do { waitUntil {sleep 0.5; currentWeapon _unit != ""}; _primeWpn = currentWeapon _unit; if (_primeWpn != _prevWpn) then { _prevWpn = _primeWpn; _magazineType = getArray(configFile >> "cfgWeapons" >> _primeWpn >> "magazines") select 0; }; if (isNil "_magazineType") exitWith {diag_log "Error: Unlimited ammo script: _magazineType was nil";}; _foundMags = 0; { if (_x == _magazineType) then { _foundMags = _foundMags + 1; }; } forEach (magazines _unit); if (_foundMags < _ammoCount) then { for "_i" from 1 to (_ammoCount - _foundMags) do { _unit addMagazine _magazineType; }; }; sleep 1; }; But you should probably try to figure out why that getarray is returning nothing
  5. Which player marker? The one from the difficulty settings or a custom bluforce tracker?
  6. stanhope

    RANDOM TRIGGERS

    All you have to do to the code I linked above is replace the 2000 with 4000
  7. https://forums.bohemia.net/forums/forum/162-arma-3-addons-configs-scripting/ ^that's where the people who know a lot about addons hang out
  8. These are the files you need: https://github.com/acemod/ACE3/search?q=tracer&amp;unscoped_q=tracer
  9. Check if the license ace is released under allows you to. Take that part out of ace (just google for arma 3 ace git put it in a separate mod or script
  10. stanhope

    RANDOM TRIGGERS

    I tweaked a few more things, just test the code, it works.
  11. stanhope

    RANDOM TRIGGERS

    Fixed, you'll still need to take my debug messages out and at that one trigger statement back in. If you want a trigger with a radius of 2000 meters the centres of these triggers don't have to be 2000 but 4000 meters apart
  12. stanhope

    RANDOM TRIGGERS

    What I'd do is create an array of positions you know to be good. Start of by putting 1 position in there, which will always be good as there are no other triggers yet. Then in a while loop that checks for the number of items in your array you get a new position and check it against all the other positions in your array. So pseudo code: private _array = []; private _minDistance = 2000; private _firstPos = [...] call bis_fnc_getSafePos; _array pushback _firstPos; while {count _arracy < 15} do { private _pos = [...] call bis_fnc_getSafePos;//Grab a new, random position private _i = _array findIf {_firstPos distance2D _pos < _minDistance}; //check if other positions are too close if (_i == -1) then { _array pushback _pos; //If not too close, add it to the array } else { systemChat "Too close to other pos"; }; }; You can already create your triggers in this loop if you want and it's probably best to add a counter to check that you don't run through this loop a million times looking for a pos. This code will obviously not run as it's got syntax errors but you should get the idea.
  13. Tell the pilot to not use auto hover
  14. stanhope

    Constant crashes

    Could you list your specs as well as what CPU and GPU usage and temperature you have before the crashes? Could you also share some RPTs from crashes (they can be found at C:\Users\yourUser\AppData\Local\Arma 3). And finally, did you verify the integrity of your game files through steam?
  15. wrap it inside 0 = [] spawn {<code here>}
  16. stanhope

    Server browser log files?

    Could you post them here (copy their contents into something like pastebin.com and link it here) The same as that server is running. If you're running a mod that the server isn't or the server is running a mod that you aren't you can't join. Cup maps
  17. stanhope

    Helicopters flight model is completely wrong

    Is arma 3 a helicopter simulator or a combined arms platform with a focus on infantry?
  18. stanhope

    BIS_fnc_holdActionRemove

    private _toRemoteExec = { laptopHackHoldActionId = [ _myLaptop, // Object the action is attached to "Hack Laptop", // Title of the action "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Idle icon shown on screen "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", // Progress icon shown on screen "_this distance _target < 3", // Condition for the action to be shown "_caller distance _target < 3", // Condition for the action to progress {}, // Code executed when action starts {}, // Code executed on every progress tick { _this call MY_fnc_hackingCompleted }, // Code executed on completion {}, // Code executed on interrupted [], // Arguments passed to the scripts as _this select 3 12, // Action duration [s] 0, // Priority true, // Remove on completion false // Show in unconscious state ] call BIS_fnc_holdActionAdd; }; [[], _toRemoteExec] remoteExec ["spawn", 0, _myLaptop]; [_myLaptop, laptopHackHoldActionId] remoteExec ["BIS_fnc_holdActionRemove", 0]; Untested and there are undoubtedly better ways of doing this.
  19. stanhope

    Screen lags / Game lags

    Then it's a mission issue. Report it to the server owner so they can fix it.
  20. stanhope

    Screen lags / Game lags

    Does this also happen on other missions? What's your CPU/GPU usage and temperature during this?
  21. stanhope

    DEPTH setPos random

    Just use https://community.bistudio.com/wiki/random
  22. stanhope

    DEPTH setPos random

    Have you tried https://community.bistudio.com/wiki/setPosASL
  23. Sounds like it could be a dynamic simulation issue, have a look at your mission file and be sure to turn that of. And for good measure verify the integrity of your game files through steam (right click on arma, properties, local files, verify integrity).
  24. stanhope

    what happen with the optimization?

    You should read up on the status of Arma 3, what you're asking isn't gonna happen and you'd have known this if you took some time to read up on things.
×