Jump to content

Search the Community

Showing results for tags 'random'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Server tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Chernarus
  • TKO's Livonia
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 38 results

  1. Hello, my fellow friends from the community! 🙂 -> We all know about some scripts for special effects like those of @aliascartoons. -> Such special effects can be spawned, for example, within marker areas, or attached to objects, placed on the map. -> I would like to create such areas or use such objects, generated randomly on the map and depending on different conditions that are checked by the script over different periods of time. -> In this case, as I suggest or suppose, that a condition can be: 1) if the player is moving; 2) if the player is alive; 3) if the player is X meters away from these objects; 4) if the player is within a marker area etc. They can differ and vary from the possible commands used in the scripting. -> My idea is these effects to be randomly spawned at different locations and time around the player so he wouldn't know where they can appear if he goes through an area multiple times or replays the mission. -> I can later provide example codes of such special effects, but I guess it's more important to define the way they would appear on the map. -> I personally prefer to add some objects on the map, but if they are too many, this could lead to a weaker performance of the PC and dropping FPS. So, is it possible to create these objects randomly and they are named after creation, using specific names, which are also used for the special effects as a condition to be triggered at the same time? We all know about the S.T.A.L.K.E.R.-like effects from this mod or the effects provided by @aliascartoons. I have tagged him assuming he may also help to find a way and achieve this. Thank you in advance and cheers! 🙂
  2. I need a easier way to spawn random units instead of individually pulling all classes from the in game editor and pasting it while adding quotations and commas like this: ["B_mas_med_Army_ENG_F", "B_mas_med_Army_EXP_F", "B_mas_med_Army_GL_F",]. I want to use a script that when called it will pull a random unit from a given side of a given type (infantry, land, air) and spawn them in a group. The group will be filled with random units. I also want it to pull units from mods that I download. I dont want to have to keep updating the script every time I download another unit mod. The mod MMC sandbox has no problem in doing this but I dont know how they did it.
  3. This page is for discussion of script features in Fly Tanoa Air. Mod page available now. Dev Files Current Version 0042 This download is compatible with APEX game version 1.7 and higher Live readMe [FTA] Guidebook
  4. The script I'm working on calls for random sqf selection. I found this, here, and I want to make sure I understand the function. Please advise if my comments to the script are correct. _script = [1,3] call BIS_fnc_randomInt; //defines a range for cases, actually says 1-3 or 1, 2, 3. Selects one randomly. switch (_script) do { // -- I think it says if "_script" is defined, do case 1 : { [] execVM "1.sqf"; }; //put script names here case 2 : { [] execVM "2.sqf"; }; case 3 : { [] execVM "3.sqf"; }; }; SwitchDo So I could, EMERGENCY = [1,3] call BIS_fnc_randomInt; switch (EMERGENCY) do { case 1 : { [] execVM "searchZONE.sqf"; }; case 2: { [] execVM "searchZONE2.sqf"; }; case 3 : { [] execVM "noEMERG.sqf"; }; }; Can I increase the probability of a script by using it for multiple cases? Or would I use something like selectRandomWeighted?
  5. GF Auto Random Loadout Script - Mod by GEORGE FLOROS [GR] Description: GF Auto Random Loadout Script , it will detect the enabled Mods , without editing lists. You are free to do anything but i would like to give me Credits for this! Simple and easy to use and adapt . Have Fun ! Installation / Usage: For usage instructions and information of how to use the GF Auto Random Loadout Script please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the initServer.sqf , to copy paste in your mission. https://community.bistudio.com/wiki/SQF_syntax Don't try to open this with the simple notepad. For everything that is with comment // in front or between /* means that it is disabled , so there is no need to delete the extra lines. You can open this ex: with notepad++ https://notepad-plus-plus.org/ and also use the extra pluggins (this way will be better , it will give also some certain colors to be able to detect ex. problems ) http://www.armaholic.com/page.php?id=8680 or use any other program for editing . For the Compilation List of my GF Scripts , you can search in: https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/ Notes: It will detect the enabled Mods , without editing lists. There are 3 options available : 1 = Load every Mod + Bohemia items , 2 = Load every Mod - No Bohemia items , 3 = Load Bohemia items Only There is an exclude list available or add in the init of a unit: this setVariable ["Var_GF_ARL", true]; Extended options about the loadouts , are available. It is also included a mod version , posible to unpack and edit. Credits and Thanks to : Thanks to All script contributors Thanks to everyone who tries to do the best for this game! Thanks to BIS for such a great platform . Thanks to BIS Community and BIS Community Forums . Thanks to Armaholic Community and Forums . Changelog: v1.1 Added Custom items array. Minor fixes. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=40307 Armaholic GF Auto Random Loadout Script - Mod
  6. Steam workshop link - https://steamcommunity.com/sharedfiles/filedetails/?id=1618325439 MISSION Russians have invaded the small peaceful island of Malden, and are holding it's citizens captive! Execute missions to weaken the russian presence on the island and set it's citizens free! A randomly generated campaign, execute missions and lead the United States Armed Forces to capture the island of Malden and win the war against the Russian Federation. FEATURES Random AO - One of Malden's cities, the main airport, or the military island base will be selected to attack. Finish one and another is generated. Random Selectable Side Missions - If you want a bit more excitement, you can choose a side mission from the mapboard at base. It will open the map and show you all available missions. Side missions range from diffusing a bomb on your officer, to stealing an enemy supply truck, to finding and rescuing a downed pilot, plus much more. Every time you open the side mission map, there will be different missions at different locations, so if you don't like what's available, just close it and reopen it. Civilian Population and Traffic - There is a heavy civilian presence on Malden, its citizens populate most of the island and are driving cars (shocking!), and walking around everywhere. They aren't hostile to our forces. In fact the reason we are on malden is for them, as the russians have invaded and are making their life a living hell. Recruitable AI - You can recruit AI units from the officer at base. Please allow them a few seconds to get deployed and join your group. If you wish to dismiss a unit, simply walk up to him and select 'Dismiss.' Mobile Respawn - There are 3 mobile respawn vehicles, a 4 door Humvee, an unarmed M113, and an unarmed MRAP. They should have green letters above them saying M.H.Q. 1, 2, or 3. When you die, simply choose which M.H.Q. you wish to respawn on, or just choose to spawn at base. If a M.H.Q. is destroyed, it will respawn at base. Revive - You can be revived by your teammates if you are incapacitated. There is a 5 minute window to be revived before you die. Players can only revive other players, A.I. units do not revive or become incapacitated, they simply die. HALO Jumping - You can HALO Jump by choosing H.A.L.O. Jump from the mapboard at base. You can also choose H.A.L.O. Group to jump with your squad members. CAUTION: if you have joined another players group, it will force ALL GROUP MEMBERS to jump as well! Dynamic Group System - Press the Teamswitch key (Default "U") to open the group menu. Here you can create/disband your own group, invite other players, join or leave another players group. Virtual Arsenal - There is an ammobox at base with virtual arsenal, and all MHQ vehicles are virtual arsenal enabled. You may also call in a supply drop which has virtual arsenal. AVAILABLE SUPPORT (Called with 0-8 on Radio) Supply Drop - An ammobox will drop near you and be marked with green smoke. This box will have virtual arsenal. UAV Recon - Click a location on the map and after the data from the UAV comes in, all hostile and friendly units will be marked for 3 minutes. These markers will not be updated, so be aware units may move around. Artillery, Mortars, Carpet Bomb - Choose one of the 3 from the support menu and click on the map to rain down some good ol' american pop rocks on the enemies. Caution when using in cities, as it may result in lots of civilian casualties, our mission is to protect the civilians, not kill them. Laser Designated Missile - If you have a laser designator, you can call in laser designated missile strikes. You must keep your laser designator on the target until the missile strikes. (There might currently be a bug that removes the missile if you turn the designator off). Fast Travel Transport Helis - A UH-60 and MH-9 are available to transport you around Malden. When you select the heli you want, it will mark an LZ near your location and head that way. Green smoke will automatically be popped at the LZ when the Heli is near. Once you get in, choose "Give a LZ to the Pilot" and it will head to that location. After a few seconds, the screen will go black and you will fast travel to the location. If at any moment the heli becomes bugged out, choose "Detonate Heli Transport' from your action menu to destroy the heli and make the support available again. Paratroop Reinforcements - Click on the map and a squad will paradrop on your location. After the squad has landed, they will fall under your command (Or your group leader's, if you are in another player's squad). Requires both RHS USAF and AFRF. Credits: DUWS by Kibot. Modified Version by BigShot. EOS script & Occupation mission by BangaBob Civilian scripts by Enigma ATM Airdrop HALO script by PokerTour. Defuse Bomb script by Cobra4v320. Thanks to Kempco for the mapsize script. Thanks to FrankHH for correcting the typos. Thanks to Yumsum, Porte and Phil for all their patience in testing.
  7. Hey I'm trying to get my script to randomly select a location specified in an array and spawn units accordingly. Only problem is that while the unit does spawn, the other spawn locations end up getting a few units spawned there as well. Can anyone one find the error? _spawnPoints = ["spawn_1", "spawn_2", "spawn_3"]; _indUnitList = [ "CUP_I_TK_GUE_Soldier", "CUP_I_TK_GUE_Soldier_TL", "CUP_I_TK_GUE_Soldier_MG", "CUP_I_TK_GUE_Soldier_AT", "CUP_I_TK_GUE_Soldier_AAT", "CUP_I_TK_GUE_Soldier_M16A2", "CUP_I_TK_GUE_Soldier_GL", "CUP_I_TK_GUE_Soldier_HAT", "CUP_I_TK_GUE_Soldier_AK_47S", "CUP_I_TK_GUE_Soldier_AR", "CUP_I_TK_GUE_Soldier_AA", "CUP_I_TK_GUE_Commander", "CUP_I_TK_GUE_Guerilla_Medic", "CUP_I_TK_GUE_Guerilla_Enfield", "CUP_I_TK_GUE_Demo", "CUP_I_TK_GUE_Sniper", "CUP_I_TK_GUE_Mechanic" ]; _spawnMarker = _spawnPoints select (floor random (count _spawnPoints)); _unkSpawnPosition = getMarkerPos _spawnMarker; IndGroup = [_unkSpawnPosition, INDEPENDENT, _indUnitList] call BIS_fnc_spawnGroup; IndGroup allowFeeling 0; IndGroup enableDynamicSimulation true; sleep 0.5; EDIT: Never mind guys, I guess when I was alt tabbing I somehow managed to place a few units. But if anyone reads this, do they have a more efficient way of doing this?
  8. Hey guys, I am thinking of changing some tank reload sounds for use with my group. I am considering changing some of the default reload sounds of the round being loaded to a couple different ones. Only thing is, I'd like it to be kind of random across several different sounds. I already figured I would need to make a small mod out of it that would override the files that tanks use (in this case I believe it's default vanilla tank reload sfx). I think I would be able to override the sound itself, but I would like to have a few variants of the reload sfx which would be chosen and played at random. Is it possible to script in any way? I will be thankful for any guidance in this regard. Thanks! Adam
  9. I've been having an issue lately with our Arma 3 servers and I could use some help. I have two servers running on a dedi box (Windows Server 2012 R2 Standard) that are restarting randomly. This is what I find in the activity log: Does anyone know what this means? "Restart SYSTEM 127.0.0.1 Monitoring (query not responding)". 1/22/2019 12:01:08 AM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 12:35:02 AM Restart PITN ***.***.***.*** Control Panel 1/22/2019 12:36:47 AM Restart PITN ***.***.***.*** Control Panel 1/22/2019 2:22:56 AM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 2:33:50 AM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 6:22:47 AM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 6:22:20 PM Stop PITN ***.***.***.*** Control Panel 1/22/2019 7:45:49 PM Start PITN ***.***.***.*** Control Panel 1/22/2019 8:07:15 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 8:08:39 PM Stop PITN ***.***.***.*** Control Panel 1/22/2019 8:10:56 PM Start PITN ***.***.***.*** Control Panel 1/22/2019 8:21:39 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 8:52:21 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 9:08:05 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 9:18:47 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 10:52:46 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 11:03:29 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 11:34:40 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 11:35:55 PM Stop PITN ***.***.***.*** Control Panel 1/22/2019 11:45:00 PM Start PITN ***.***.***.*** Control Panel 1/22/2019 11:55:43 PM Restart SYSTEM 127.0.0.1 Monitoring (query not responding) 1/22/2019 11:56:55 PM Stop PITN ***.***.***.*** Control Panel As you can see the server is restarting quite frequently. What I have done so far. Regardless of mission, custom or BI, server will restart with or without players present. No errors in .rpt. Update and validate game through steamcmd. Manually updated BE dll in the BattlEye directory. Verified ports are defined and open. Servers are 100+ ports apart. Defined all paths with startup line. Went line by line through config file with no errors or changes. I have run the server with the cfg set for BattlEye on and off. Still resets. Note: Both arma 3 servers have been running fine for the last few years. This problem started in the last few weeks.
  10. Hello. I Have 16 missions loaded up and running on my server. However, I want the sever to choose a random mission from the mission cycle. Is this possible? If so, would someone who has the know-how and skills please show me how to do so? I have included my mission cycle in the post. Thank you. Mission cycle
  11. Helo. I have a seeding problem with the random function that I just can't figure out. while { surfaceIsWater _suitable || count _list > 0} do { while {_spot distance officer_jeff < 1000 || surfaceIsWater _spot} do { _prevStep = _center getPos[ (random 2000), (random 350)]; for "_i" from 0 to 2 do { _step = _prevStep getPos[ (random 2001), (random 351)]; _prevStep = _step; }; _spot = [_step select 0,_step select 1,0]; }; _suitable = [_spot, 0, 300, 20, 0, 0.7, 0] call BIS_fnc_findSafePos; _list = nearestTerrainObjects [_suitable,["TREE","BUILDING","RUIN","ROCK","HOUSE"], _howBig,false]; }; If the script can't find a position that is not a water surface, it restarts BUT the RANDOM functions just keeps giving me the same position every time the cycle ends. I don't understand, is it not supposed to be random? I also tried this with seed using the alternate syntax of random: while { surfaceIsWater _suitable || count _list > 0} do { while {_spot distance officer_jeff < 1000 || surfaceIsWater _spot} do { _prevStep = _center getPos[ (time random 2000), (time random 350)]; for "_i" from 0 to 2 do { _step = _prevStep getPos[ (time random 2001), (time random 351)]; _prevStep = _step; }; _spot = [_step select 0,_step select 1,0]; }; _suitable = [_spot, 0, 300, 20, 0, 0.7, 0] call BIS_fnc_findSafePos; _list = nearestTerrainObjects [_suitable,["TREE","BUILDING","RUIN","ROCK","HOUSE"], _howBig,false]; }; Here is an example output: 15:12:48 "[823.795,10712.5] as _suitable, 56 as count _list, [816.133,10551.5,0] as _spot " 15:12:49 "[820.423,10745.8] as _suitable, 46 as count _list, [816.133,10551.5,0] as _spot " 15:12:50 "[828.004,10684.4] as _suitable, 76 as count _list, [816.133,10551.5,0] as _spot " Any help would be much appreciated.
  12. Evening people So I'm currently in the process of making a missions which is coming along rather well but I've now ran into a problem (which I was aware would happen), and I'm unsure how to go about it. Context: Upon spawning there two sides "west" & "civilian" When the CivPop players spawn I wish for one of them at random to be selected to have a certain option and also be hinted they are the chosen player. The option I wish for them to have is an "AddAction" which when activated will execute a script.In that script I wish for it to force that unit to switch Side to "east", change their loadout, play a sound file, hint to "west", and then remove action. Currently I have a onPlayerRespawn.sqf file with the following (Var shooter is currently on "east" side) sleep 5; shooteraction = shooter addAction [ "<t color='#C00000'>BEGIN CARNAGE</t>", "shooter.sqf" ]; Within the shooter.sqf is the following shooter say3d ["pumped", 25, 1]; shooter removeAction shooteraction; All of the above code works fine, it's quite simple, I've got the sound file to play fine and the action to be removed; but now how would I go about the rest. Upon spawning: Choosing random CivPop player to have said option and hint informing them upon spawning When activated: Forcing chosen player to side "east" Forcing chosen player to change loadout to what I list To play the above sound file and finally remove action Any help would be great. I'm still quite Amature to development for Arma but I have a passion to learn. Sadly I'm stumped .
  13. So I want to make things easier when randomizing things. Right now I have an array of vehicles, air vehicles, and units class names that I manually pulled from the in game editor. Im alright with manually selecting individual units but now I want to randomize the units vest, weapons, and headgear but I do not want to go through the in games edit loadout screen and export each vest and items then have to search the text to find the class name of the vest to add it to an array. Is there a way for the game to provide a list of ALL vests and ALL weapons ect. in the game including addons? If this is possible is there a way to do that to ALL vehicles and units on a given side like EAST or WEST? Is there a possible way to do this without creating an array like calling a BIS_FN?
  14. Hi!, sry for my bad english, i am looking for a script to do : A training camp, with a Addaction start the training, then spawn "X" IA unit in random location inside, also a addaction where you can restart training or delete training,. I have the training camp , and the random location with marks, but idk how to spawn unit inside and how delete. anyone know a script or something for this pls?, Thanks you very muchS!!
  15. Hi guys, I've been poking around here and redit for a few days trying to find snips of code I can combine and use to revive/respawn/replace some ai in a mp scenario. What I have: I have a training course with 25 OPFOR AI, and 11 Civ Ai. 36 position markers oriented in the direction I want the unit to face. What I need: I want to have the OPFOR (all the same exact unit) respawn at random position markers as well as civi to respawn at random position markers. I want to the units to retain the code I have in the init field in eden. The civies can be random or all the same unit not a big deal to me. Any help is greatly appreciated! Edit: I'm kind of brute forcing it at this point and I know I'm doing it wrong...… here's the code I'm working with. I need a way to select one of the positions at random, use it to spawn an ai unit then exclude that used position from the next spawn sequence.
  16. Hi, first sorry, i dont speak english XD... I am looking for a script to do this: Example: Go to a laptop,and with the Addaction, select a task from multiple task, kill oficer,destroy tower,rescue civil, etc, then this task spawn in 15 randoms posible location... you can take more task in the same time, but, if you dont complete kill oficer,, cant select kill oficer again,. ¿Is this posible? , i search for this ,but dont find it,, also i dont speak english, and cant search good,, can anone help me pls??? Thanks you very muchs!!
  17. Hi to everyone, I 've searched tried and then frustrated because with a lot of googling i can find anything so far but this. Is there a way to make a minefield module randomly generated? As you can imagine i tried to link the module to an empty marker but as expected didn't work. I tried to find a post here creating a minefield with script but i couldn't as well. So i beg for your help. Even an answer like : No you can't will be so much time saver. Thank you in advance to anyone who will even read my post and question, Jim
  18. Hi. My problem is that my game freezes after a "random" time. I was playing on "HostileTakeover.co - King Of The Hill - EU#2 Infantry" server and game was running normally (around 40-50fps, around 110 people on that server) and then it just froze right when i died and that's not first time today. When it happened for the first time i've checked file integrity on steam and there were 3 corrupted files (1.2GB) but downloading them didn't help. After another crash i've went to game directory and repaired all programs that were located in _CommonRedist (using installers that were located there, i've rebooted my pc after that) and that didn't help either. Before writing this i've made another test run and same results* but this time i had HWMonitor running in the background and i've closed GeForce Experience (both services and process). *The only difference is that this time game detected crash that when i close it (with taskmgr) and created crash report. Here is the link to Dropbox folder with crash report, arma3 log.rpt, dxdiag and HWMonitor https://www.dropbox.com/sh/w3kmghlbst5ik5m/AACVWRv_Zc_IzRH2GVEPHleva?dl=0 Thank you in advance for help.
  19. I want to have AI assets moving randomly within a radius of an arbitrary point (the objective). ALiVE does not do what I need. DAC appears to be incompatible with the current version of ARMA 3.
  20. Hi, I searching for a way to spawn units randomly in a marker. I've tried something with radius etc but it seems that units spawn even out of the marker and even on water... I'd like to spawn those units only on ground and in the definided marker. And I have another problem, The units I try to spawn are zombies... And when I choose to spawn 2000 of them with a debug marker to know where each zombies are, I don't find any zombies at the markers positions... is there any units limit on Arma 3 ?
  21. Is there a way to randomly spawn the premade item groups in Eden? Example: I would like to be able to define a radius in which object groups will be randomly pulled from the list and randomly placed. ALIVE does some of this already, but with only a few items. If this is not possible, my follow up question would be: is it possible to set a spawn radius for a premade object group as if the group were a single object? Normally, Eden will set a spawn radius for each object in the group while not maintaining the objects relative position to each other.
  22. Need Help me Guys. I try makes scenaries for Multiplayer. And tried to resolve this issue - Select one player with Opfor team, assign him Somename as "spy1" and createDiaryRecord for him. i try many scripts but not rusult. one script work in my computer but not work with my friends. i try that in init.sqf _arr=[r1,r2,r3]; rozv1 = selectRandom _arr; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; if (alive rozv1) then {hint format ["%1 is chosen", rozv1];}; and that fn_SelectRandomOpfor = { _unit = objNull; _unitsArray = []; { if ((side _x == east ) and (isPlayer _x)) then { _unitsArray = _unitsArray + [_x]; }; } forEach allunits; rozv1 = _unitsArray call BIS_fnc_selectRandom;} call fn_SelectRandomOpfor; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; and that waitUntil {player == player}; playerarray = []; { playerarray = playerarray + [_x]; } forEach playableUnits; if (side player == opfor) exitWith { rozv1 = playerarray call BIS_fnc_selectRandom; rozv1 createDiaryRecord ["Diary", ["Bla-bla", "Bla-bla-bla"]]; if (alive rozv1) then {hint format ["%1 is chosen",rozv1];}; }; but every times when i tested with my friends we have problem with Select that one spy player. say me please what I need to do to achieve the desired result.
  23. I want to randomize the damage on a car on the start of a mission, same thing with a tank and helicopter and so on. What are the codes for each part and how do I make it random? Is there some place to reference each part of a car/tank/helicopter like a website I could use?
  24. Hey folks! So throughout the time I spent working on my mod there was one thing I was quite unsure about, and that was randomizing anything from loadouts to music/sounds. When I found a way I personally find simple and useful I thought I should post it here to help other people who are new to modding/mission making. Let's begin. 1) You need to create an array of the things you need, in this tutorial's case, I want to spawn a unit with a random uniform and hat. //Loadout Array _CivSpawnUniform = selectRandom ["LOP_U_AFR_Civ_03","LOP_U_AFR_Civ_06","LOP_U_PMC_Fatigue_02","LOP_U_AFR_Civ_05"]; _CivSpawnHeadgear = selectRandom ["H_Bandanna_gry","H_Bandanna_cbr","H_Bandanna_khk","H_Bandanna_camo","H_Cap_blk","H_Cap_grn","H_Cap_oli","H_mas_afr_Bandana","H_mas_afr_c3","rhs_beanie_green"]; Now take a look at "_CivSpawnUniform", that's the name it'll use if you want to call everything after the "=" symbol on the same line, rather than individually In there, you should place the clothes/uniforms you want your unit to choose from. Your code should look something like this: _NAME = selectRandom ["CLASSNAME1","CLASSNAME2","CLASSNAME3"]; Now you have defined a basic randomize script. How does this work though? Lemme show you. The function below selectRandom; This basically tells the game to look at the class names you have and randomly pick one of them. Don't forget to put the function command BEFORE the class names. Your script should now look like this: _NAME = selectRandom ["CLASSNAME1","CLASSNAME2","CLASSNAME3"]; And voila! The randomization script is working, but how do we get it to actually randomize the unit's gear? I'll be giving the soldier a uniform in the following example: UNITNAME AddUniform _ARRAYname; To finalize it, I'll show you what a full working one looks like: //Loadout Array _CivSpawnUniform = selectRandom ["LOP_U_AFR_Civ_03","LOP_U_AFR_Civ_06","LOP_U_PMC_Fatigue_02","LOP_U_AFR_Civ_05"]; _CivSpawnHeadgear = selectRandom ["H_Bandanna_camo","H_Cap_blk","H_mas_afr_Bandana","H_mas_afr_c3","rhs_beanie_green"]; //Unit Init removeUniform UNITNAME; removeHeadgear UNITNAME; UNITNAME addUniform _CivSpawnUniform; UNITNAME addHeadgear _CivSpawnHeadgear; The above units will have uniforms and headgear randomly selected from the arrays we defined at the top. I really hope this helps some new guys here! If it wasn't easy to understand or if you have any issues, feel free to leave a comment below or contact me through PM. Kind regards, MrCrazyDude115
  25. Hello, i am writing a mission and I am hitting a hurdle that I can not get over. I have not been able to find any info on the web about what I am trying to do. I am making a mission that involves a hostage providing you with Intel. I want there to be a 50/50 chance that the Intel they provide is good or bad Intel. If good info is randomly generated I want to take the squad down the storyline if bad Intel is provided I want to send the squad into an ambush. Thank you
×