Jump to content

sarogahtyp

Member
  • Content Count

    2494
  • Joined

  • Last visited

  • Medals

Everything posted by sarogahtyp

  1. Thank you for this great project. I will participate for sure. Maybe as client only but I guess as node or server as well. Depends on needed harddisk space and traffic volume per month. Just waiting for a release. EDIT: Mission accomplished, above Mod identified (I guess): https://www.moddb.com/games/arma-2/addons/tu95-and-tu142-bombers
  2. sarogahtyp

    Some help with array

    seems not to be a bug but a misleading wiki entry. see my post on github for further information: https://github.com/CBATeam/CBA_A3/issues/1463#issuecomment-857879864
  3. sarogahtyp

    Random SAR Missions

    _civ = selectRandom [ civ1, civ2, civ3 ];
  4. just append it to the item array: _stuff = items player; _stuff append magazines player;
  5. sarogahtyp

    Some help with array

    I tested it and it seems to be a cba bug for me. you can fix it easily by using selectRandom: [ this, selectRandom [ fe, de, ge ], 150, 3, 0.1, 0.9 ] call CBA_fnc_taskDefend Edit: I created a bug report here: https://github.com/CBATeam/CBA_A3/issues/1463
  6. _items = items player; _recipe = [ ["item1", 5], ["item2", 3], ["item3", 98]]; _crafting_allowed = true; { _item = _x#0; _wanted_num = _x#1; _num = {_x isEqualTo _item} count _items; if (_num < _wanted_num) then { _crafting_allowed = false }; } count recipe; if ( _crafting_allowed ) then { // script }; not tested, but shows the way at least...
  7. _items = items player; _wanted = [ "item1", "item2", "item3", "item4", "item5", "item6", "item7" ]; if ( _wanted findIf { _x in _items } > -1 ) then { // script }; script is executed if one of the items in _wanted is carried by player
  8. sarogahtyp

    Addaction cooldown?

    instead of {createDialog "CraftingUI";} you could use something like { if ( !isNil "yourtag_craft_cooldown" && { yourtag_craft_cooldown }) exitWith {}; yourtag_craft_cooldown = true; createDialog "CraftingUI"; sleep 123; yourtag_craft_cooldown = false; } modify 123 to your prefered cooldown time
  9. sarogahtyp

    wayPoints issue

    /* File: taskPatrol.sqf Author: Joris-Jan van 't Land Description: Create a random patrol of several waypoints around a given position. Parameter(s): _this select 0: the group to which to assign the waypoints (Group) _this select 1: the position on which to base the patrol (Array) _this select 2: the maximum distance between waypoints (Number) _this select 3: (optional) blacklist of areas (Array) Returns: Boolean - success flag */ //Validate parameter count if ((count _this) < 3) exitWith {debugLog "Log: [taskPatrol] Function requires at least 3 parameters!"; false}; private ["_grp", "_pos", "_maxDist", "_blacklist"]; _grp = _this select 0; _pos = _this select 1; _maxDist = _this select 2; _blacklist = []; if ((count _this) > 3) then {_blacklist = _this select 3}; //Validate parameters if ((typeName _grp) != (typeName grpNull)) exitWith {debugLog "Log: [taskPatrol] Group (0) must be a Group!"; false}; if ((typeName _pos) != (typeName [])) exitWith {debugLog "Log: [taskPatrol] Position (1) must be an Array!"; false}; if ((typeName _maxDist) != (typeName 0)) exitWith {debugLog "Log: [taskPatrol] Maximum distance (2) must be a Number!"; false}; if ((typeName _blacklist) != (typeName [])) exitWith {debugLog "Log: [taskPatrol] Blacklist (3) must be an Array!"; false}; _grp setBehaviour "SAFE"; //Create a string of randomly placed waypoints. private ["_prevPos"]; _prevPos = _pos; for "_i" from 0 to (2 + (floor (random 3))) do { private ["_wp", "_newPos"]; _newPos = [_prevPos, 50, _maxDist, 1, 0, 60 * (pi / 180), 0, _blacklist] call BIS_fnc_findSafePos; _prevPos = _newPos; _wp = _grp addWaypoint [_newPos, 0]; _wp setWaypointType "MOVE"; _wp setWaypointCompletionRadius 20; //Set the group's speed and formation at the first waypoint. if (_i == 0) then { _wp setWaypointSpeed "LIMITED"; _wp setWaypointFormation "STAG COLUMN"; }; }; //Cycle back to the first position. private ["_wp"]; _wp = _grp addWaypoint [_pos, 0]; _wp setWaypointType "CYCLE"; _wp setWaypointCompletionRadius 20; true
  10. sarogahtyp

    How to get DLC on server?

    Show servers rpt file!
  11. sarogahtyp

    Help on Waypaths Script

    select can be used as a kind of loop if you use it with curly brackets. the loop executes the code inside the brackets for each element of the given array (_green) inside those brackets there has to be a condition. the _x represents the current element of the loop. if that condition is true then select puts the current element into the returning array. if it is false then the current element just gets skipped. therefore inside the round brackets the select command creates an array with all alive objects of the array green that resulting array feeds selectRandom which picks a random element of it. read the bibki of each command you use in your code. there it is explained.
  12. sarogahtyp

    Random SAR Missions

    1st: dont use a BIS function like BIS_fnc_selectRandom if there is an engine command like selectRandom created already. But this is just a performance thing. 2nd: to get a marker position you have to use getMarkerPos 3rd: read the biki entry for each command you use! if (isServer) then { _marker_pos = getMarkerPos selectRandom ["marker1", "marker2", "marker3", "marker4", "marker5", "marker6"]; _civ = selectRandom ["civ1", "civ2", "civ3"]; _civ setPos _marker_pos; };
  13. sarogahtyp

    Dynamic airport and config.cpp

    I guess nobody gets banned for posting a thread in a wrong forum part. In future if you realize that you opened a thread on the wrong place then just click "Report post" on the upper right of your first post and ask the staff this way to move your thread. If your other question is a new one then just open a new thread. If it is config.cpp related then this should be the right place for it: https://forums.bohemia.net/forums/forum/162-arma-3-addons-configs-scripting/ If it is a sqf-scripting or other mission editing related question then open it just right here: https://forums.bohemia.net/forums/forum/154-arma-3-mission-editing-scripting/
  14. sarogahtyp

    Dynamic airport and config.cpp

    ... and was posted in the correct part of the forum. That part which people read who know about addons.
  15. sarogahtyp

    Random SAR Missions

    short version of above script: if (isServer) then { _markers = ["marker1", "marker2", "marker3", "marker4"]; guy setPos ( getMarkerPos ( selectRandom _markers ) ); };
  16. I don't know exactly, but I strongly suspect that the connected player is the only one who is able to activate the trigger but as triggers are created local on each client (except server triggers) I assume that player activates the trigger on each client and therefore the cutText is executed everywhere. I guess you have to give your player a variable name (like "translator") in eden and then you can do: if(player isEqualTo translator) then { cutText ["<t color='#07b30a'size='1.4'>Radio: </t> <t size='1.4'>ATTENTION CHARLIE BAKER!. We have three JIG UNCLE EIGHT FIVE to SAIL EASY from your position. They will arrive in 45 seconds.</t>", "PLAIN DOWN", -1, true, true]; }; another solution would be to edit the condition field and put this in it: this && (player isEqualTo translator) I find the second solution more elegant.
  17. sarogahtyp

    Help on Waypaths Script

    //pick a random living unit _add1 = selectRandom ( _green select {alive _x} );
  18. cutText is a command which has local effect only. You can see this on its biki page. The LE-icon (Local Effect) at the top left indicates this. That means if you execute it on one client only then it is executed on that clients machine only. since you posted the command only no one can say why it is seen on all clients. The reason could be how or where it is executed.
  19. sarogahtyp

    How to spawn Big Smoke Pillars?

    There is a way but maybe it is rocket science. https://community.bistudio.com/wiki/drop https://community.bistudio.com/wiki/ParticleArray but there is an easy way as well:
  20. sarogahtyp

    Pos Conversion Issue

    use pushBack to append just your wanted height in meters. I guess you want it on ground therefore push 0.
  21. SSAAPS - Sarogahtyps Simple Arena Active Protection System Full Singleplayer and Multiplayer compatible. Arma 3 script which simulates the russian Arena system which is an Active Protection System (APS) for tanks. Basically the russian Arena system lifts an explosive charge upto some meters above the tank. There it explodes and directs a few hundred shrapnels in a cone to the ground. If the countermeasure is successfull then the incoming threat is hit by some shrapnels of the cone. The script spawns some bullets above the tank which create the shrapnel cone. Then the incoming threat gets (hopefully) directed to ground. GitHub - Branch GitHub - wiki GitHub - Issue Tracker GitHub - Download GitHub - Direct File Download Dropbox - Download (temporary disabled) Installation (short story) - copy "functions" folder in your missions root folder - integrate cfgFunctions from description.ext into your own description.ext - if you secured your missions remote execution then integrate CfgRemoteExec from description.ext into your own description.ext - if you don't have a description.ext then you can just copy the given one into your missions root folder - apply the script with this line to any vehicle: [tank_1] spawn saro_fnc_arena_start; to stop the script on that vehicle just do this on any part of your mission: tank_1 setVariable ["saro_arena_active", false, true]; to adjust the behavior of the sysem you should take a look into fn_arena_start.sqf I do not recommend to adjust more parameters than skill and reload time. Full installation documentation will follow within the next days/weeks/months 😉 The Download contains an Example mission as .pbo and as unpacked Folder. brand-new shiny trailer video: version 1.0 video: Please tell me all thoughts you have in this thread. Issues and wishes can also reported on GitHub - Issue Tracker Changelog v1.10 - added simulation of the charge container which lifts up, explodes and sends shrapnels to threat - added ability to get threats exploding mid-air instead of smashing to ground only - added parameter to adjust protection skill of the system v1.01 - hot fix - new vanilla example mission created. the old one was mod depended. v 1.0 - initial release
  22. Hey folks, I released a new version and a brand-new shiny trailer video for this. v1.10 - added simulation of the charge container which lifts up, explodes and sends shrapnels to threat - added ability to get threats exploding mid-air instead of smashing to ground only - added parameter to adjust protection skill of the system For the trailer video, this time I drew on the skills of my son. So have some fun with it: To download this version just use a link of the updated first post. Regards...
  23. sarogahtyp

    COP Key-Card

    3 seconds using google: ("vop_keycard_west" in Magazines player); So it seems to be a magazine
  24. Its an animation so u could use an animation event handler
  25. a global variable is enough because the event script init.sqf is executed on every machine.
×