-
Content Count
1194 -
Joined
-
Last visited
-
Medals
Everything posted by stanhope
-
need a little help to resolve this script error I am getting.
stanhope replied to avibird 1's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Have a look in your RPT, does it say "Error: Unlimited ammo script: _magazineType was nil"? -
Trigger script to turn off player position markers on the map
stanhope replied to Antman2o1o's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If it's the ones added by the difficulty settings: no, there is no way. -
Trigger script to turn off player position markers on the map
stanhope replied to Antman2o1o's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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. -
need a little help to resolve this script error I am getting.
stanhope replied to avibird 1's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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 -
Trigger script to turn off player position markers on the map
stanhope replied to Antman2o1o's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Which player marker? The one from the difficulty settings or a custom bluforce tracker? -
All you have to do to the code I linked above is replace the 2000 with 4000
-
How to make standalone version of ACE tracers?
stanhope replied to pvtTunt's topic in ARMA 3 - QUESTIONS & ANSWERS
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 -
How to make standalone version of ACE tracers?
stanhope replied to pvtTunt's topic in ARMA 3 - QUESTIONS & ANSWERS
These are the files you need: https://github.com/acemod/ACE3/search?q=tracer&unscoped_q=tracer -
How to make standalone version of ACE tracers?
stanhope replied to pvtTunt's topic in ARMA 3 - QUESTIONS & ANSWERS
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 -
I tweaked a few more things, just test the code, it works.
-
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
-
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.
-
multiplayer Heavy camera shake as gunner in Blackfoot in Multiplayer
stanhope replied to Kreu's topic in ARMA 3 - TROUBLESHOOTING
Tell the pilot to not use auto hover- 2 replies
-
- 1
-
- helicopter
- coop
-
(and 3 more)
Tagged with:
-
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?
-
Script to spawn datalinked laser
stanhope replied to Thorimus's topic in ARMA 3 - MISSION EDITING & SCRIPTING
wrap it inside 0 = [] spawn {<code here>} -
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
-
Helicopters flight model is completely wrong
stanhope replied to Lowinternettroll's topic in ARMA 3 - QUESTIONS & ANSWERS
Is arma 3 a helicopter simulator or a combined arms platform with a focus on infantry?- 8 replies
-
- flight model
- helicopters
- (and 6 more)
-
ARMA 3 Vietcong Campaign & Vietcong Fist Alpha in Russian (would like to have it in English)
stanhope replied to Alex Hakkenberg's topic in ARMA 3 - QUESTIONS & ANSWERS
Was it made by a Russian speaking developer? -
BIS_fnc_holdActionRemove
stanhope replied to Anteq Iney's topic in ARMA 3 - MISSION EDITING & SCRIPTING
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.- 2 replies
-
- 1
-
- holdcation
- remove
- (and 3 more)
-
Then it's a mission issue. Report it to the server owner so they can fix it.
-
Does this also happen on other missions? What's your CPU/GPU usage and temperature during this?
-
Just use https://community.bistudio.com/wiki/random
-
Have you tried https://community.bistudio.com/wiki/setPosASL
-
Plane units in my squad getting stuck in midair
stanhope replied to Kickbub's topic in ARMA 3 - QUESTIONS & ANSWERS
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). -
what happen with the optimization?
stanhope replied to Castor7891's topic in ARMA 3 - QUESTIONS & ANSWERS
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.