Jump to content

Search the Community

Showing results for tags 'script'.



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 455 results

  1. Hi guys: In a script for a vehicle to appear in a certain position, I have included a list of items that should appear in the vehicle inventory: morphine, bandages, ammunition ... I have also included tools and a backpack. The soldier must use the backpack to store the tools inside and be able to move with them to repair the vehicle. However, it is more interesting that the tools are already included inside the backpack. In this way, when taking the backpack, they already have the tools in the inventory. Can anyone help me in this regard? That is, the backpack appears in the inventory of the vehicle with the tools inside. Thanks. if (!isServer) exitWith {}; // VEHICLES // _markerstr = createMarker ["VEHICLE",[8849.8,23460.5]]; _markerstr setMarkerShape "ICON"; _height = 0.000335693; _vehicle = createVehicle ["CUP_B_RG31E_M2_OD_USMC", (getMarkerPos "VEHICLE"),[],0,"NONE"]; _dir = 210; _vehicle setDir _dir; _vehicle setFuel 0.5; clearMagazineCargoGlobal _vehicle; clearWeaponCargoGlobal _vehicle; clearItemCargoGlobal _vehicle; clearBackpackCargoGlobal _vehicle; /// WEAPONS /// _vehicle addweaponcargoGlobal ["launch_MRAWS_green_F",1]; _vehicle addweaponcargoGlobal ["launch_I_Titan_F",1]; _vehicle addweaponcargoGlobal ["rhs_weap_M320",2]; /// AMMUNITION /// _vehicle addmagazinecargoGlobal ["DemoCharge_Remote_Mag",4]; _vehicle addmagazinecargoGlobal ["200Rnd_556x45_Box_F",12]; _vehicle addmagazinecargoGlobal ["DGR_264_S_30Rnd",64]; _vehicle addmagazinecargoGlobal ["1Rnd_HE_Grenade_shell",32]; _vehicle addmagazinecargoGlobal ["HandGrenade",24]; _vehicle addmagazinecargoGlobal ["MiniGrenade",24]; _vehicle additemcargoGlobal ["Titan_AA",4]; _vehicle additemcargoGlobal ["MRAWS_HEAT_F",4]; /// EQUIPMENT /// _vehicle additemcargoGlobal ["ACE_Clacker",1]; _vehicle additemcargoGlobal ["B_UavTerminal",1]; _vehicle additemcargoGlobal ["ALIVE_Tablet",1]; _vehicle additemcargoGlobal ["tf_anprc152_1",2]; _vehicle additemcargoGlobal ["tf_rt1523g_big_bwmod",2]; _vehicle additemcargoGlobal ["SAS_Predator_W",8]; _vehicle additemcargoGlobal ["ToolKit",1]; _vehicle addbackpackcargoGlobal ["B_Carryall_khk",1]; _vehicle addbackpackcargoGlobal ["B_UAV_01_backpack_F",1]; /// MEDICINES /// _vehicle addItemCargoGlobal ["ACE_personalAidKit",8]; _vehicle addItemCargoGlobal ["ACE_bloodIV_500",32]; _vehicle addItemCargoGlobal ["ACE_epinephrine",16]; _vehicle addItemCargoGlobal ["ACE_tourniquet",32]; _vehicle addItemCargoGlobal ["ACE_morphine",40]; _vehicle addItemCargoGlobal ["ACE_packingBandage",100]; _vehicle addItemCargoGlobal ["ACE_elasticBandage",100]; _vehicle addItemCargoGlobal ["ACE_surgicalKit",2];
  2. Compilation List of my GF Scripts - Mods by GEORGE FLOROS [GR] Credits & Thanks: 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 . Below are the links and the download button , for every of my available GF Scripts . This list , will always be up to date. For anything that you might want , feel free to ask , if it's possible to do something for this , after all the arma series generally , has a good and helpfull community! Thank you Guys , for the whole support ! and off course . . . have FUN !
  3. GF Custom Deathscreen Script by GEORGE FLOROS [GR] Description: Adding an image of blood and sound when killed to spice it a little bit . 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: Installation / Usage: For usage instructions and information of how to use the GF Custom Deathscreen Script , please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.sqf and the description.ext , 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 colours 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/ Credits & Thanks: 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 fixed name v1.0 Forum topic: - Armaholic forums Armaholic GF Custom Deathscreen Script
  4. JBOY Throw Knife Script With this script players and AI can throw knife objects. Vanilla ARMA does not have a knife object, so I am using screw drivers and files. Think of these as "guerilla knives" that have been ground to a sharp point and balanced for throwing. You should also be able to use Mod objects with this script (like knives in Max Melee or Unsung mods). Demo Mission Link: https://www.dropbox.com/s/tbzvom2m3stctty/JBOY_ThrowKnife.Stratis.zip?dl=0 Features: Player can throw knife objects. Knife target destination is determined by position of center of screen (screenToWorld position), i.e., where the player is looking. AI can throw knifes via scripts. Knife target destination is provided by position. AI throw accuracy is determined by their skill level for skill "AimingAccuracy". AI can throw exactly on target also, via an additional parameter. Good for cutscenes where you need the knife to arrive in an exact destination (like left eye of some bad hombre for example). Knives stick on objects they hit. Knives stick on AI when hit. Attached position is relative to closest AI mempoint (head, hand, foot, spine, etc.). So when wounded AI moves, the knives still show as stuck in relative position. Limitations: When AI killed by knives, I have to detach knives so they fall to the ground. We would all rather see a nice "pin cushion" effect where knives are sticking out of dead AI in correct directions. But this is impossible because once a dead AI ragdolls, those positions are screwed up, and you see knives disconnected and suspended in air. That is bad for immersion, so I opted to just detach them instead. JBOY_Throw script:
  5. Plant and harvest your health plants. Due to request of script author . Link was removed.
  6. I just don't find anything that can do that. All I want is that when a ambulance drives into the trigger that it turns on the sirens and lights.
  7. So what I want to do is when a player walks into a trigger the window of the building breaks
  8. GF Cargo Airdrops Script by GEORGE FLOROS [GR] Description: Spawn Cargo Airdrops, including configurable loot and it can be a random or supply drop , of any kind of item - vehicle. 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 Cargo Airdrops Script please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.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 colours 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: The Airdrops can be spawn , on certain locations or random. It can be used for a supply Airdrop. You can select the number of Airdrops to spawn. The type of Cargo can be anyting , item or vehicle. The type of loot of this item , is configurable. It is possible to adapt this script easy , by your own needs. Credits & Thanks: 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 . Special thanks to : zagor64bz https://forums.bohemia.net/profile/805186-zagor64bz/ lordfrith https://forums.bohemia.net/profile/1079222-lordfrith/ Changelog: v 4.0 Code and fix optimization. added a mod version. v3.1 Code and fix optimization. Fixed an error: the plane sound now works in all clients. v3.0 added option for : show the Airdrop position with a marker, random loot, minor changes. v2.0 added a modified Script by zagor64bz and lordfrith , GF_Cargo_Airdrops_ZAG_LORD , added a modified Script for requested Airdrops, added an option , for spawning groups , that try to find and secure the dropped Cargo , added some options and small additions inside the scripts , changed the name of all the scripts , starting now with GF . v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=39846 Armaholic download GF Cargo Airdrops Script
  9. So I want to hide the sidechat on trigger. Example when I have a unit talking in sidechat and the player just walks away (leaves the trigger) I dont want the unit to keep talking in sidechannel. I tried showChat false; but it just hides all channels. Maybe something that can kill the script and stol the talking or something like that idk. I tried looking for a solution but I didnt find anything. termniatescript isnt working too. Once the script actived it wont stop till it finished
  10. DESCRIPTION: This is a script which enhances the in-game VOIP by adding radio effects when communicating with other players, while factoring weather conditions during transmissions. No mods or third-party programs required. Setup is easy! I created a Feature Request ticket for BI to add a mutePlayer command. Please up vote! VIDEO: SCREENSHOTS: FEATURES: No mods required! No third-party programs required! Script will initialize only if TFAR / ACRE2 aren't enabled Tiny file size (44 KB) No performance impact Admin/clients don't have to download anything to play your mission No custom sounds; AFAR recycles Arma 3's audio files No custom artwork; AFAR recycles Arma 3's models/textures No custom animations; AFAR uses an animation already Arma 3 No custom items; Players just need a radio equipped to talk on radio channels Adds interesting depth to VOIP, which it has lacked for so long Talking on VOIP channels in-game will broadcast radio noise to all friendlies with a radio Radio noise gets louder based on overcast, rain, and sunOrMoon Incapacitated / dead players cannot use radio In-game radio interface includes options to customize settings locally Compatible with land, sea, and air vehicles Compatible with Arma's End Game respawn templates Compatible with Arma's End Game Spectator Compatible with Arma's Dynamic Groups Compatible with Zeus More information in the "ReadMe.txt" TO DO LIST: Simplify script installation Add new (Optional) radio animations Rewrite interface code into .SQF instead of .HPP Singleplayer compatibility Extend AI communications with you Terrain interference Expand radio interference effects Reintroduce distance factors (Once BI adds necessary commands to Arma) Release a separate standalone mod version (Low priority) Create official AFAR gitHub repository (Lowest priority) KNOWN BUGS: (Upcoming Change-Log) Mouse button inputs (LMB, MMB, RMB) are not supported CREDITS: • Phronk: Script Creator • Bohemia Interactive: Radio model, audio, animation, and BIS_fncs CONTRIBUTIONS: • DirtySanchez: Helped organize functions/define CfgRemoteExec • Metalman [EXP]: Helped optimize code initialization TESTERS: • BadBenson • Chaser • Kargi8499 • Limey • MorpheousMike • PRYMSUSPEC • Sjakal • statsback2zero • Task Force Ronin INSTALLATION: (24AUG2019) - v0.93 Download Link (Google Drive) Download Link (Steam Workshop) Download Link (Armaholic) CHANGE-LOGS:
  11. This script allows scripters to re-use all the voice command phrases in Arma. This is especially useful for AI type mods where scripts are making AI perform tasks, and you want to hear the audible commande like "Move Up", "Set Charge", "Detonate Charge", "Frag out", etc. Features: Unit's ingame language is used (i.e., English, French, Russian, Persian, etc). Sound file may be played loud or soft depending on unit's current behavior (Normal, Combat, Stealth) Lip animation Download Mission: Here. Credit: @Larrow for his badass utility for finding sound file paths. Use this tool to find additional sound paths to add to this script. If you add more paths to this script, please post them in this topic, so I can add them to my script. Boring Video of Demo Sample init.sqf script from mission showing how to call the script: The JBOY_Speak script (so you don't have to download demo mission to see it)
  12. <Insert fancy Logo here > Disclaimer: If you don't use unscheduled scripts or you don't know what "unscheduled" means this won't be useful for you. If you are a beginner in Scripting this is also likely nothing for you. This is a tool aimed to help intermediate/advanced Programmers. Also No Battleye! I'm proud to present the first public Intercept based mod! I have a tiny script performance OCD so when I had the Idea about this last week I couldn't stop myself. Arma Script Profiler is a mod that allows you to profile scripts in a way that wasn't possible like this before. ASP replicates what the profiling binary already provides via it's diag_captureFrame commands but instead of only showing Engine Internals it shows Scripts. In fact it is even using it's UI. Which sadly means that you also need to use the Profiling Binary to use ASP to it's full potential. I wrote a full Wiki page explaining how to use it. Edit: I've done lots of work lately to move away from the very limited ingame interface in the profiling build. The new version has it's own UI, doesn't need the profiling binary, displays more information, and can even profile over the Network. Read https://forums.bohemia.net/forums/topic/211626-arma-script-profiler/?do=findComment&comment=3298483 for more info. Here is the old version of the Profiler, for more current information see link above: Download: You can get the Mod here: https://github.com/dedmen/ArmaScriptProfiler/releases This is still a bit experimental, I should really do a partial rewrite of the code. In case of Game crashes please PM me your crash report or crashdump files. For bugs and feature requests please refer to the Github page. This is also on Reddit! I'm not really good in writing fancy forum posts. If someone wants to make this more splendid feel free to PM me. Uploading this to Armaholic, withSix, Steam workshop or similar is not allowed! Please refer to the License.
  13. Hey Guys, i wrote a script to set the AI on the whole server every 10 seconds to certain Values according to the Side it is on for a modded "KP Liberation" Mission. This worked perfectly. But i wanted to change the script for the East Side to better reflect the skill of certain factions. the original script was: while {true} do { { _x setSkill 0.6; _x setSkill ["aimingAccuracy", 0.2]; _x setSkill ["aimingShake", 0.7]; _x setSkill ["aimingSpeed", 0.7]; _x setSkill ["Endurance",0.5]; _x setSkill ["spotDistance",0.6]; _x setSkill ["spotTime",0.8]; _x setSkill ["courage", 0.8]; _x setSkill ["reloadSpeed", 1]; _x setSkill ["commanding", 0.7]; } forEach (allUnits select {side _x == east}); sleep 10; }; this worked exactly as i intended. (is exec. via init.sqf and sets the skills from mission start every 10 seconds so that it includes every spawned unit, even if called by Zeus or any other special way. works great) but now i wanted to change } forEach (allUnits select {side _x == east}); to something that affects only a certain faction like } forEach (allUnits select {faction _x == LOP_TKA}); this line however doesn't work and i can't find any answer how to only call a script on a certain faction, so i was hoping someone in this forum could help me :) PaloKan EDIT: I am an idiot. All i was missing was putting the Faction name into " " to make my scripts work haha. great, now i have differently skilled Middle Eastern Militia, ISIS Soldiers and Russian Elite soldiers to fight <3 Thread can be closed :) /thread
  14. Just to place this into context - i made a mission where the players will be supported by some cruise missile fire, fired by the AI. There are 3 different targets, and 3 different MK41 VLS launch pads firing at each their target. I found this script/code and its been working very "on/off". It works every time in singleplayer, but only "occational" in multiplayer on a dedicated server - so im approachig you guys, the mighty Arma 3 oracle, to see if you guys can help me improve this code so that it'll work more predictably and reliably on dedicated servers too. This is the code im using: ------------------------------------------------ // This is the script I'm using in an .sqf ------------------------------------------------ west reportRemoteTarget [HAA1_0, 3000]; HAA1_0 confirmSensorTarget [west, true]; west reportRemoteTarget [T2, 3000]; T2 confirmSensorTarget [west, true]; west reportRemoteTarget [T1, 3000]; T1 confirmSensorTarget [west, true]; Cruise1 fireAtTarget [HAA1_0, "weapon_vls_01"]; Cruise2 fireAtTarget [T2, "weapon_vls_01"]; Cruise3 fireAtTarget [T1, "weapon_vls_01"]; ------------------------------------------------ // This is basically the information provided for each launcher ------------------------------------------------ west reportRemoteTarget [HAA1_0, 3000]; HAA1_0 confirmSensorTarget [west, true]; Cruise1 fireAtTarget [HAA1_0, "weapon_vls_01"]; While developing the mission, i do my fair share of testing on a dedicated server - first time i tried it, all 3 missiles fires and hits their targets. Next time i did some changes to the mission, although nothing to the settings of the targets/missiles or script - suddenly all 3 missiles fires, but 1 goes straight up - while 2 hit their target. And ofc, during the offical playthrough of the mission with my Arma 3 group, all 3 missiles fires but all 3 goes straight up and none of them seemingly targeting their targets. This was mildly put rather annoying. So in short, if any of you script-wizzes know how to help me out with this to have it work more predictably and reliably on a dedicated server it would be absolutely epic, and much appreciated.
  15. Hey there guys, so I'm pretty new to scripting and I've ran into something I could do with a little help with. I'm trying to use this script To make loot spawn in a crate, but I don't need it to be done on the missions init, I need it to be based on a repeatable trigger so it only activates when a player gets close to it. Is there a way to do this?
  16. GF Vehicle Radio chatter script by GEORGE FLOROS [GR] Description: GF Vehicle Radio chatter script , configurable script. 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 Vehicle Radio chatter script please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.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 colours 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: Notes: Configurable Script. You can display Custom or game's default sounds, select distance from vehicle and repeat time. The radio is disabled for the civilian vehicles and there is available an exclude list. It is working on any type of vehile (Landvehicle,Tank,Air,Ship). It is working also for the spawned vehicles. 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 . Special Thanks to : @tpw https://forums.bohemia.net/profile/762937-tpw/?do=content&type=forums_topic&change_section=1 For helping , with sharing part of his mod / script . @TPW MODS / tpw_radio https://forums.bohemia.net/forums/topic/154944-tpw-mods-v20180630-enhanced-realism-and-immersion-for-arma-3-sp/ Changelog: v2.0 Reedited code. Added a Mod version ,possible to unpack and edit. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=40143 Armaholic download GF Vehicle Radio chatter script
  17. Here is a super simple script for animating lip movement for an AI unit for specified # of seconds. Script: Here is some sample usage code, where two different units talk with each other. In this example the valdez character says a sound file that is about 5 seconds long, and the paramedic1 character says a sound file that is 2.6 seconds long. // ************************************************************** [valdez, 5] call JBOY_Lip; valdez customRadio [JBOY_Channel,"hvTempHospital"]; //valdez globalchat "Hey Zeke. When are they going to build the new hospital? This temporary one is a dump."; sleep 5; // ************************************************************** [paramedic1, 2.6] call JBOY_Lip; paramedic1 customRadio [JBOY_Channel,"hParaCutOffFunding"]; //paramedic1 globalchat "Maybe never. Madagascar has cut off the funding."; sleep 3;
  18. GF Auto Loot with userconfig by GEORGE FLOROS [GR] Description: GF Auto Loot with userconfig , will detect the enable 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: To install GF Auto Loot with userconfig , you should use modfolders to keep it seperate from the official game content to prevent issues. With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded. Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3. Place the "userconfig" folder into your game install folder, usually: "C:\Program Files (x64)\Steam\steamapps\common\Arma 3". You may already have "userconfig" folder from other addons and/or mods in which case it is safe to merge the contents from this archive. 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 colours 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: This mod , is including a userconfig folder. The userconfig folder , must be in the main arma 3 game folder. Inside the userconfig folder , are the settings. To make changes in the userconfig , you need to close the game. GF Auto Loot with userconfig , will detect the enabled Mods , without editing lists. There are 4 options available : 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only There is a Possibility option available. There are Blacklist Zones available , 5 from default and a safe distanse from players , to prevent the loot from spawn. The loot will spawn also , at the spawned or placed in editor Buildings. More information inside the Settings.sqf It is also 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: v3.1 Fixed , working now also on Dedicated , with auto init.  v3.0 A lot of the previous code is reedited. Added option for the spawned items number. Code optimization. v2.0 It is possible to add your custom item list. There are 4 options available : 1 = Load every Mod + Bohemia Items , 2 = Load every Mod - No Bohemia Items , 3 = Load Bohemia Items Only , 4 = Custom items only Changed the codes for the search of the configs. Minor Fixes. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=40300 Armaholic GF Auto Loot with userconfig
  19. Hello Dear Community! So I am using agents for my Civilian needs on a coop mission but the mission also requires that some of those civilian agents rebel and attack players. Since agents are very basic and cannot attack I must find a way to smoothly replace said agent for a REGULAR UNIT when the WITNESS´s rebel state triggers. Here is how I do stuff so far: PS: As you can probably tell by the script I am going for a "as optimized" as posible script since there will be lots of Witnesses and Enemy Units on the map as well as objects so I am tight on frames.
  20. GEORGE FLOROS GR

    GF Missions Script

    GF Missions Script by GEORGE FLOROS [GR] Description: GF Mission Script , configurable script. 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 Mission Script please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , in the init.sqf and description.ext , 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 colours 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: This is a standalone Mission Pack , that will give more depth in a mission. It is working in every map. It will generate missions on random. This script is also including DAC Script version. ** CAUTION ** The player variable names , must start with : s_1 , s_2 and so on up to s_70. Otherwise , they must be defined in the DAC/DAC_Config_Creator.sqf Feel free everyone , to post your missions (scripted , MP compatible) in order to make this Misson Pack bigger ! 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 . Special Thanks to : Big thanks to Silola , for his unique DAC mod/script. DAC V3.1 (Dynamic-AI-Creator) https://forums.bohemia.net/forums/topic/167033-dac-v31-dynamic-ai-creator-released/ Changelog: v3.0 Several Fixes. v2.0 added a lot of available options, added the EOS Script, added a custom spawn system, added more missions, addded a time out option, the missions that must be spawn in the desired position, added safe areas, added addactions, added the new GF_Set_Custom_Loadout script, which is modified for this purpose, scripts for the spawned enemies will allow everyone to select from an array for the classnames for ex: RHS units , vehicles , etc excluded GF_Police_and_Siren script , and there are a lot of changes on the whole script. This version is completely reedited. v1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=40207 Armaholic GF Missions Script Extra usefull information from the topic , will be added at the post below:
  21. Hello everyone, I need a little help I try to create, through a script, a combination of modules to add a civilian presence to the cities crossed by the player. The problem is that at the launch of the mission, despite the generation of three modules (visible and existing in Zeus mode) the main module (ModuleCivilianPresence_F) does not link with the other two modules (ModuleCivilianPresenceSafeSpot_F and ModuleCivilianPresenceUnit_F), and I have the following error message : "bis_fnc_moduleCivilianPresence [x] Civilian Presence L-Alpha 1-2: 1 terminated." There are at least 1 spawnpoint and 1 position module. " How to make dialogue, synchronize the three modules, created via a script, ingame ? This is just a piece of extracted code; the rest of my project works perfectly : Do not pay attention to the two ways to create a unit, both ways work exactly the same, I put the necessary characters to hide the text for reading the script > /* and */ _townLoc = nearestLocations [getPos player, ["NameVillage","NameCity","NameCityCapital","NameLocal","CityCenter","Airport"], 2500]; if ((count _townLoc) > 0) then { sleep 0.01; _townPos = locationPosition (_townLoc select 0); /* sleep 0.50; _MCP_Spawn = (createGroup sideLogic) createUnit ["ModuleCivilianPresenceUnit_F",_townPos,[],0,"NONE"]; _MCP_Spawn setvariable ['BIS_fnc_initModules_disableAutoActivation', false]; sleep 0.50; _MCP_SafeSpot = (createGroup sideLogic) createUnit ["ModuleCivilianPresenceSafeSpot_F",_townPos,[],0,"NONE"]; _MCP_SafeSpot setvariable ['BIS_fnc_initModules_disableAutoActivation', false]; sleep 0.50; _MCP_Module = (createGroup sideLogic) createUnit ["ModuleCivilianPresence_F",_townPos,[],0,"NONE"]; _MCP_Module setvariable ['BIS_fnc_initModules_disableAutoActivation', false]; */ sleep 0.50; _MCP_SafeSpot = "ModuleCivilianPresenceSafeSpot_F" createUnit [_townPos, createGroup sideLogic, "this setVariable ['BIS_fnc_initModules_disableAutoActivation', false];", 0.6, "PRIVATE"]; sleep 0.50; _MCP_Spawn = "ModuleCivilianPresenceUnit_F" createUnit [_townPos, createGroup sideLogic, "this setVariable ['BIS_fnc_initModules_disableAutoActivation', false];", 0.6, "PRIVATE"]; sleep 0.50; _MCP_Module = "ModuleCivilianPresence_F" createUnit [_townPos, createGroup sideLogic, "this setVariable ['BIS_fnc_initModules_disableAutoActivation', false];", 0.6, "PRIVATE"]; }; Otherwise I also tried another method : I to place the necessary modules in the 3den editor, then move them by script when the player is near a locality. The modules change position, but the created civil entities always go to the moduleCivilianPresenceSafeSpot module's initial position, ie the position of the module when it was placed in the editor, even if it was changed position. :/
  22. Description: This is a GUI that allows the person who executed the script to add/assign or remove/unassign Zeus to any specified player(s). Downloads & More Information: GitHub: link Pastebin: link * No download required! Video: link Steam Guide: link Curator Creator Version 1.0: (Check the GitHub for the latest version) comment "Script Title: Curator Creator (Create and Assign New Zeuses). < Current Version: 1.0 > "; comment "Credits: Created by J [WoLF] and M9-SD. "; comment "Description: - Creates new unique zeus module for specified players. - Assigns unique Zeus module to specified clients. - Automatically updates zeus interface with new objects. - Re-assigns zeus to player every respawn. - Re-assigns zeus to player upon reconnecting to the session. - JIP (join-in-progress) compatible. "; comment "Usage: - Copy entire script. Paste in debug console. - Execute on local client. - Exit the pause menu if open. - Wait for GUI to appear. - Select recipients of the Zeus Interface. - Choose to remove or add interface. - The selected players will now either be assigned or unassigned their unique Zeus module. "; comment "Distribution: - You may share this script with anyone you want. - Don't give this to trolls, please. - Give credit where it is due. - Enjoy :) "; [] spawn { comment "-----------------------------------------------"; if (!hasInterface) exitWith {}; waitUntil { !isNil { player } && { !isNull player } }; waitUntil { !isNull (findDisplay 46) }; comment "-----------------------------------------------"; systemChat "[JAM] >>> Zeus Helper >>> Initializing Curator Creator..."; JAM_fnc_createAndAssignZeus = { if (typeOf getAssignedCuratorLogic player != "") then { comment "do nothing"; systemChat "[JAM] >>> Zeus Helper >>> You already have a zeus interface."; } else { JAM_fnc_createAssignCurator = { comment "-----------------------------------------------"; if (!hasInterface) exitWith {}; waitUntil { !isNil { player } && { !isNull player } }; waitUntil { !isNull (findDisplay 46) }; comment "-----------------------------------------------"; _myPlayer = _this # 0; _myCuratorPlayer = _myPlayer; JAM_addZeus_UID = getPlayerUID _myPlayer; JAM_addZeus_superCuratorVar = ("JAM_" + JAM_addZeus_UID + "_superCurator"); JAM_addZeus_superCuratorPlayerAttributesVar = ("JAM_" + JAM_addZeus_UID + "_superCuratorPlayerAttributes"); _JAM_my_curatorInitText = ("" + "if (isNil """ + JAM_addZeus_superCuratorVar + """) then {" + JAM_addZeus_superCuratorVar + " = JAM_superCurator_group createUnit ['ModuleCurator_F', [0, 90, 90],[],0.5,'NONE'];" + JAM_addZeus_superCuratorVar + " setVehicleVarName '" + JAM_addZeus_superCuratorVar + "';" + JAM_addZeus_superCuratorVar + " setVariable ['text','" + JAM_addZeus_superCuratorVar + "'];" + JAM_addZeus_superCuratorVar + " setVariable ['Addons',3,true];" + JAM_addZeus_superCuratorVar + " setVariable ['owner','objnull'];" + JAM_addZeus_superCuratorVar + " setVariable ['vehicleinit',"" _this setVariable ['Addons',3,true]; _this setVariable ['owner','objnull']; ""];" + "unassignCurator " + JAM_addZeus_superCuratorVar + ";" + "objnull assignCurator " + JAM_addZeus_superCuratorVar + ";" + JAM_addZeus_superCuratorPlayerAttributesVar + " = JAM_superCurator_group createUnit ['ModuleCuratorSetAttributesPlayer_F', [2, 91, 91],[],0.5,'NONE'];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['curator','" + JAM_addZeus_superCuratorVar + "'];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['unitpos',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['fuel',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['respawnposition',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['respawnvehicle',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['skill',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['rank',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['damage',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['exec',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['lock',true];" + JAM_addZeus_superCuratorPlayerAttributesVar + " setVariable ['vehicleinit',"" _this setVariable ['curator','" + JAM_addZeus_superCuratorVar + "']; _this setVariable ['unitpos',true]; _this setVariable ['fuel',true]; _this setVariable ['respawnposition',true]; _this setVariable ['respawnvehicle',true]; _this setVariable ['skill',true]; _this setVariable ['rank',true]; _this setVariable ['damage',true]; _this setVariable ['exec',true]; _this setVariable ['lock',true]; ""];" + "[" + JAM_addZeus_superCuratorVar + ",[-2,-1,0,1]] spawn BIS_fnc_setCuratorVisionModes;" + "JAM_" + JAM_addZeus_UID + "_updateSuperCuratorEditableObjects = true;" + "[] spawn {while {(JAM_" + JAM_addZeus_UID + "_updateSuperCuratorEditableObjects" + ")} do { if ( ((getAssignedCuratorUnit " + JAM_addZeus_superCuratorVar + ") != objNull) && (alive (getAssignedCuratorUnit " + JAM_addZeus_superCuratorVar + "))) then { " + JAM_addZeus_superCuratorVar + " addCuratorEditableObjects [([] call JAM_fnc_getEditableObjects),true]; }; sleep 30;}; };" + "}; " + ""); [_JAM_my_curatorInitText,{ _initText = _this; _initCode = compile _initText; if (isNil "JAM_blacklistedObjectsArray_01") then { JAM_blacklistedObjectsArray_01 = [ "ModuleCurator_F", "ModuleCuratorSetCamera_F", "Logic", "ModuleHQ_F", "VirtualCurator_F", "ModuleCuratorSetModuleCosts_F", "ModuleCuratorAddPoints_F", "ModuleCuratorSetObjectCosts_F", "ModuleCuratorSetCosts_F", "ModuleCuratorSetCoefs_F", "ModuleCuratorSetDefaultCosts_F", "ModuleCuratorAddEditingAreaPlayers_F", "ModuleMPTypeGameMaster_F", "ModuleRadioChannelCreate_F", "ModuleCuratorSetAttributesPlayer_F" ]; }; if (isNil "JAM_fnc_getEditableObjects") then { JAM_fnc_getEditableObjects = { _allObjs = allMissionObjects 'all'; _editableObjs = []; { if ( ( not ( ( typeOf _x ) in JAM_blacklistedObjectsArray_01 ) ) && ( not ( _x isKindOf "Logic" ) ) ) then { _editableObjs pushBackUnique _x; }; } forEach _allObjs; _editableObjs; }; }; if (isNil "JAM_superCurator_group") then { JAM_superCurator_group = createGroup sideLogic; }; [] spawn _initCode; }] remoteExec ['spawn',2]; comment "JIP"; [[JAM_addZeus_UID,JAM_addZeus_superCuratorVar], { comment "-----------------------------------------------"; if (!hasInterface) exitWith {}; waitUntil { !isNil { player } && { !isNull player } }; waitUntil { !isNull (findDisplay 46) }; comment "-----------------------------------------------"; _curatorUID = _this # 0; _curatorVarStr = _this # 1; if (getPlayerUID player == _curatorUID) then { _curatorPlayer = player; JAM_my_curatorInitText = ("" + "waitUntil {(not isNil """ + _curatorVarStr + """)}; " + "_curatorVar = " + _curatorVarStr + "; " + "_curatorPlayer = _this select 0; " + "[_curatorVar,_curatorPlayer] spawn { _curatorVar = _this # 0; _curatorPlayer = _this # 1; while {((getAssignedCuratorLogic _curatorPlayer) != _curatorVar)} do { unassignCurator _curatorVar; objnull assignCurator _curatorVar; unassignCurator _curatorVar; _curatorPlayer assignCurator _curatorVar; sleep 3.5; }; };" + "JAM_" + _curatorUID + "_updateSuperCuratorEditableObjects = true;" + "_curatorPlayer = _this select 0; '[JAM] >>> Zeus Helper >>> You were given Zeus interface. To open, press [Y].' remoteExec ['systemChat', _curatorPlayer];" + ""); [[JAM_my_curatorInitText,_curatorPlayer],{ _initText = _this # 0; _curatorPlayer = _this # 1; _initCode = compile _initText; [_curatorPlayer] spawn _initCode; }] remoteExec ['spawn',2]; comment "re-assign upon death/respawn"; JAM_keepGivingMeZeus = true; if (!isNil "JAM_EH_autoReassignCuratorUponDeath") then { player removeEventHandler ["Respawn",JAM_EH_autoReassignCuratorUponDeath]; }; waitUntil {(alive _curatorPlayer)}; JAM_EH_autoReassignCuratorUponDeath = player addEventHandler ["Respawn",{ if (JAM_keepGivingMeZeus) then { [] spawn { waitUntil {(alive player)}; sleep 3.5; [[JAM_my_curatorInitText,player],{ _initText = _this # 0; _curatorPlayer = _this # 1; _initCode = compile _initText; [_curatorPlayer] spawn _initCode; }] remoteExec ['spawn',2]; }; }; }]; }; }] remoteExec ['spawn',0,JAM_addZeus_superCuratorVar]; }; _target = player; [_target] spawn JAM_fnc_createAssignCurator; }; }; JAM_fnc_deleteAndUnassignZeus = { if (typeOf getAssignedCuratorLogic player == "") then { comment "do nothing"; systemChat "[JAM] >>> Zeus Helper >>> You already do not have a zeus interface."; } else { JAM_fnc_deleteUnassignCurator = { comment "-----------------------------------------------"; if (!hasInterface) exitWith {}; waitUntil { !isNil { player } && { !isNull player } }; waitUntil { !isNull (findDisplay 46) }; comment "-----------------------------------------------"; _myPlayer = _this # 0; _myCuratorPlayer = _myPlayer; JAM_addZeus_UID = getPlayerUID _myPlayer; JAM_addZeus_superCuratorVar = ("JAM_" + JAM_addZeus_UID + "_superCurator"); JAM_addZeus_superCuratorPlayerAttributesVar = ("JAM_" + JAM_addZeus_UID + "_superCuratorPlayerAttributes"); _JAM_my_curatorInitText = ("" + "if (!isNil """ + JAM_addZeus_superCuratorVar + """) then {" + "JAM_" + JAM_addZeus_UID + "_updateSuperCuratorEditableObjects = false;" + "unassignCurator " + JAM_addZeus_superCuratorVar + ";" + "objnull assignCurator " + JAM_addZeus_superCuratorVar + ";" + "unassignCurator " + JAM_addZeus_superCuratorVar + "; sleep 0.1;" + "comment 'deleteVehicle " + JAM_addZeus_superCuratorVar + ";';" + "};" + "if (!isNil """ + JAM_addZeus_superCuratorPlayerAttributesVar + """) then {" + "comment 'deleteVehicle " + JAM_addZeus_superCuratorPlayerAttributesVar + ";';" + "};" + ""); [_JAM_my_curatorInitText,{ _initText = _this; _initCode = compile _initText; [] spawn _initCode; }] remoteExec ['spawn',2]; comment "remove JIP"; [[JAM_addZeus_UID,JAM_addZeus_superCuratorVar], { comment "-----------------------------------------------"; if (!hasInterface) exitWith {}; waitUntil { !isNil { player } && { !isNull player } }; waitUntil { !isNull (findDisplay 46) }; comment "-----------------------------------------------"; _curatorUID = _this # 0; _curatorVarStr = _this # 1; if (getPlayerUID player == _curatorUID) then { _curatorPlayer = player; JAM_my_curatorInitText = ("" + "_curatorPlayer = _this select 0; '[JAM] >>> Zeus Helper >>> Zeus Interface was removed from your client.' remoteExec ['systemChat', _curatorPlayer];" + ""); [[JAM_my_curatorInitText,_curatorPlayer],{ _initText = _this # 0; _curatorPlayer = _this # 1; _initCode = compile _initText; [_curatorPlayer] spawn _initCode; }] remoteExec ['spawn',2]; JAM_keepGivingMeZeus = false; [] spawn { if (not (isNull (findDisplay 312))) then { (findDisplay 312) closeDisplay 0; }; waitUntil {(not (isNull (findDisplay 312)))}; if (not JAM_keepGivingMeZeus) then { if (not (isNull (findDisplay 312))) then { (findDisplay 312) closeDisplay 0; }; }; }; if (!isNil "JAM_EH_autoReassignCuratorUponDeath") then { player removeEventHandler ["Respawn",JAM_EH_autoReassignCuratorUponDeath]; }; }; }] remoteExec ['spawn',0]; [[],{}] remoteExec ['spawn',0,JAM_addZeus_superCuratorVar]; }; _target = player; [_target] spawn JAM_fnc_deleteUnassignCurator; }; }; JAM_curator_recipients = []; comment "check if player is Zeus"; if (isNil "JAM_fnc_getDisplay46or312") then { JAM_fnc_getDisplay46or312 = { comment "default"; _displayNumber = 46; if ((isNull (findDisplay 312)) && (not isNull (findDisplay 46))) then { _displayNumber = 46; }; if (not isNull (findDisplay 312)) then { _displayNumber = 312; }; comment "return value (display number)"; _displayNumber }; }; comment " - Define critical variables. > JAM_txtSizeNum > JAM_txtSizeStr "; JAM_txtSizeNum = 0.5 * safezoneH; JAM_txtSizeStr = str JAM_txtSizeNum; with uiNamespace do { JAM_txtSizeNum = 0.5 * safezoneH; JAM_txtSizeStr = str JAM_txtSizeNum; }; with missionNamespace do { JAM_txtSizeNum = 0.5 * safezoneH; JAM_txtSizeStr = str JAM_txtSizeNum; }; comment " ...Variables Defined. "; JAM_open_selectJAMZeusRecipients = { JAM_curator_recipients = []; _centerScreenPos = [0.494844 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.004125 * safezoneW,0.0055 * safezoneH]; disableSerialization; d_selectJAMZeusRecipients = (findDisplay ([] call JAM_fnc_getDisplay46or312)) createDisplay "RscDisplayEmpty"; showChat true; _ctrl_selectJAMZeusRecipientsTitle = d_selectJAMZeusRecipients ctrlCreate ["RscStructuredText", -1]; _ctrl_selectJAMZeusRecipientsTitle ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + (str (JAM_txtSizeNum * 0.8)) + "'>ZEUS HELPER >>> CURATOR CREATOR<br/><t size='" + (str (JAM_txtSizeNum * 0.7)) + "'>(Create and Assign New Zeuses)<t/>"); _ctrl_selectJAMZeusRecipientsTitle ctrlSetBackgroundColor [0,0,0,0.77]; _ctrl_selectJAMZeusRecipientsTitle ctrlSetPosition _centerScreenPos; _ctrl_selectJAMZeusRecipientsTitle ctrlSetFade 1; _ctrl_selectJAMZeusRecipientsTitle ctrlCommit 0; _ctrl_selectJAMZeusRecipientsTitle ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH]; _ctrl_selectJAMZeusRecipientsTitle ctrlSetFade 0; _ctrl_selectJAMZeusRecipientsTitle ctrlCommit 0.5; ctrl_sJr_PlayerList = d_selectJAMZeusRecipients ctrlCreate ["RscListBox", -1]; { _pL_index = ctrl_sJr_PlayerList lbAdd name _x; } forEach allPlayers; ctrl_sJr_PlayerList ctrlSetPosition _centerScreenPos; ctrl_sJr_PlayerList ctrlSetFade 1; ctrl_sJr_PlayerList ctrlCommit 0; ctrl_sJr_PlayerList ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.061875 * safezoneW,0.22 * safezoneH]; ctrl_sJr_PlayerList ctrlSetFade 0; ctrl_sJr_PlayerList ctrlCommit 0.5; ctrl_sJr_recipientList = d_selectJAMZeusRecipients ctrlCreate ["RscListBox", -1]; ctrl_sJr_recipientList ctrlSetPosition _centerScreenPos; ctrl_sJr_recipientList ctrlSetFade 1; ctrl_sJr_recipientList ctrlCommit 0; ctrl_sJr_recipientList ctrlSetPosition [0.494844 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.061875 * safezoneW,0.22 * safezoneH]; ctrl_sJr_recipientList ctrlSetFade 0; ctrl_sJr_recipientList ctrlCommit 0.5; _ctrl_cancel = d_selectJAMZeusRecipients ctrlCreate ["RscButtonMenu", -1]; _ctrl_cancel ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + JAM_txtSizeStr + "'>CLOSE<t/>"); _ctrl_cancel ctrlSetTooltip "Cancel the script and close this menu."; _ctrl_cancel ctrladdEventHandler ["ButtonClick",{ d_selectJAMZeusRecipients closeDisplay 0; JAM_curator_recipients = []; }]; _ctrl_cancel ctrlSetFade 1; _ctrl_cancel ctrlSetPosition _centerScreenPos; _ctrl_cancel ctrlCommit 0; _ctrl_cancel ctrlSetPosition [0.469063 * safezoneW + safezoneX,0.698 * safezoneH + safezoneY, 0.0464063 * safezoneW,0.022 * safezoneH]; _ctrl_cancel ctrlSetFade 0; _ctrl_cancel ctrlCommit 0.5; _ctrl_removeJAMZeusbutton = d_selectJAMZeusRecipients ctrlCreate ["RscButtonMenu", -1]; _ctrl_removeJAMZeusbutton ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + JAM_txtSizeStr + "'>---------REMOVE ZEUS---------<t/>"); _ctrl_removeJAMZeusbutton ctrlSetTooltip "Delete and unassign unique zeus module for each player on the right-hand list."; _ctrl_removeJAMZeusbutton ctrlSetBackgroundColor [0.5,0.2,0,0.6]; _ctrl_removeJAMZeusbutton ctrladdEventHandler ["ButtonClick",{ if (count JAM_curator_recipients != 0) then { d_selectJAMZeusRecipients closeDisplay 0; { _recipientName = _x; systemChat ("[JAM] >>> Zeus Helper >>> Removing Zeus from " + (_recipientName) + "..."); { if ((name _x) == (_recipientName)) then { [JAM_fnc_deleteAndUnassignZeus,{ _code = _this; [] spawn _code; }] remoteExec ['spawn',_x]; }; } forEach allPlayers; } forEach JAM_curator_recipients; comment "[] call JAM_init;"; } else { hint "[JAM] : ERROR : You have not selected any players; Array is empty."; systemChat "[JAM] : ERROR : You have not selected any players; Array is empty."; }; }]; _ctrl_removeJAMZeusbutton ctrlSetPosition _centerScreenPos; _ctrl_removeJAMZeusbutton ctrlSetFade 1; _ctrl_removeJAMZeusbutton ctrlCommit 0; _ctrl_removeJAMZeusbutton ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.118594 * safezoneW,0.033 * safezoneH]; _ctrl_removeJAMZeusbutton ctrlSetFade 0; _ctrl_removeJAMZeusbutton ctrlCommit 0.5; _ctrl_addBtn = d_selectJAMZeusRecipients ctrlCreate ["RscButtonMenu", -1]; _ctrl_addBtn ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + JAM_txtSizeStr + "'>Add<t/>"); _ctrl_addBtn ctrlSetTooltip "Add selected player to the target list."; _ctrl_addBtn ctrlSetBackgroundColor [-1,0.5,-1,0.6]; _ctrl_addBtn ctrladdEventHandler ["ButtonClick",{ _selectedItem = lbCurSel ctrl_sJr_PlayerList; _playerName = ctrl_sJr_PlayerList lbText _selectedItem; if (JAM_curator_recipients find _playerName == -1) then { JAM_curator_recipients pushBackUnique _playerName; ctrl_sJr_recipientList lbAdd _playerName; }; }]; _ctrl_addBtn ctrlSetPosition _centerScreenPos; _ctrl_addBtn ctrlSetFade 1; _ctrl_addBtn ctrlCommit 0; _ctrl_addBtn ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.061875 * safezoneW,0.022 * safezoneH]; _ctrl_addBtn ctrlSetFade 0; _ctrl_addBtn ctrlCommit 0.5; _ctrl_removeBtn = d_selectJAMZeusRecipients ctrlCreate ["RscButtonMenu", -1]; _ctrl_removeBtn ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + JAM_txtSizeStr + "'>Remove<t/>"); _ctrl_removeBtn ctrlSetTooltip "Remove selected player from the target list."; _ctrl_removeBtn ctrlSetBackgroundColor [0.5,-1,-1,0.6]; _ctrl_removeBtn ctrladdEventHandler ["ButtonClick",{ _selectedItem = lbCurSel ctrl_sJr_recipientList; _playerName = ctrl_sJr_recipientList lbText _selectedItem; if (JAM_curator_recipients find _playerName > -1) then { _idx = JAM_curator_recipients find _playerName; JAM_curator_recipients deleteAt _idx; ctrl_sJr_recipientList lbDelete _selectedItem; }; }]; _ctrl_removeBtn ctrlSetPosition _centerScreenPos; _ctrl_removeBtn ctrlSetFade 1; _ctrl_removeBtn ctrlCommit 0; _ctrl_removeBtn ctrlSetPosition [0.494844 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.061875 * safezoneW,0.022 * safezoneH]; _ctrl_removeBtn ctrlSetFade 0; _ctrl_removeBtn ctrlCommit 0.5; _ctrl_giveJAMZeusbutton = d_selectJAMZeusRecipients ctrlCreate ["RscButtonMenu", -1]; _ctrl_giveJAMZeusbutton ctrlSetStructuredText parseText ("<t valign='middle' align='center' size='" + JAM_txtSizeStr + "'>------------GIVE ZEUS------------<t/>"); _ctrl_giveJAMZeusbutton ctrlSetTooltip "Create and assign unique zeus module for each player on the right-hand list."; _ctrl_giveJAMZeusbutton ctrlSetBackgroundColor [-1,-1,0.4,0.6]; _ctrl_giveJAMZeusbutton ctrladdEventHandler ["ButtonClick",{ if (count JAM_curator_recipients != 0) then { d_selectJAMZeusRecipients closeDisplay 0; comment "[] call JAM_init;"; { _recipientName = _x; systemChat ("[JAM] >>> Zeus Helper >>> Giving Zeus to " + (_recipientName) + "..."); { if ((name _x) == (_recipientName)) then { [JAM_fnc_createAndAssignZeus,{ _code = _this; [] spawn _code; }] remoteExec ['spawn',_x]; }; } forEach allPlayers; } forEach JAM_curator_recipients; } else { hint "[JAM] : ERROR : You have not selected any players; Array is empty."; systemChat "[JAM] : ERROR : You have not selected any players; Array is empty."; }; }]; _ctrl_giveJAMZeusbutton ctrlSetFade 1; _ctrl_giveJAMZeusbutton ctrlSetPosition _centerScreenPos; _ctrl_giveJAMZeusbutton ctrlCommit 0; _ctrl_giveJAMZeusbutton ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.61 * safezoneH + safezoneY,0.118594 * safezoneW,0.033 * safezoneH]; _ctrl_giveJAMZeusbutton ctrlSetFade 0; _ctrl_giveJAMZeusbutton ctrlCommit 0.5; systemChat "[JAM] >>> Zeus Helper >>> Select players to give or remove Zeus Interface."; }; comment "close debug console"; if ( not (isNull (findDisplay 49)) ) then { (findDisplay 49) closeDisplay 0; }; waitUntil { isNull (findDisplay 49) }; sleep 0.1; systemChat "[JAM] >>> Zeus Helper >>> Spawning GUI..."; [] spawn JAM_open_selectJAMZeusRecipients; }; - Feel free to give me some feedback on this script, as I am sure there are some bugs to be reported with it, and I would like to improve it however I can. I might make an alternate version where it doesn't auto-add objects to the Zeus interface every 30 seconds.
  23. DynamicCamo (Updated Version 1.5 ) 17/5/19 What does it do? It takes account of players stance, uniform and environmental factors to adjust the players and/or AI unitTrait CamouflageCoef and audibleCoef A low camouflageCoef and audibleCoef gives greater camouflage to the unit and makes it harder for ai to see and hear you. Units appear to be created with camouflageCoef set t0 1 as default. This script dynamically resets this depending on a number of factors. It does this each time player changes stance and at set intervals. This is not just a "stealth" or Ghillie script and will provide camo benefit in all infantry combat. No distinct handling of urban environment at this time. Maybe later. Why? Player may feel AI are not sufficiently impaired in detecting player by factors such as uniform camo, light level, rain, Overcast level, Fog, and Wind, and Trees, Bushes and rocks near player. Script allows player to determine what impact these factors will have on AI ability to detect player or ai unit by sight and sound. It does not alter AI ability to detect movement. When the script is run on an ai unit it impacts the ability of other ai iunits to see or hear that uit depending on environmental factors etc just as for player. What influences the Dynamic Camo? Units stance, units uniform, Fog, Rain, Overcast, light level,wind and bushes or trees and some other objects ( rocks, telephone poles so far) adjacent to unit. Changes happen automatically on change of stance (a minimum 3 second cooldown is built in.) and at scheduled intervals of around five seconds. Can the effect be adjusted ? User can adjust impact of the Dynamic camo by passing the range for the impact for both caounflageCoef and AudibleCoef . These are passed as arguments when calling the script. See guide to adjusting the effect. Installation Copy script as camoscript.sqf to mission folder. In player init ( and/or the init of any other ai unit you want to have dynamicCamo running on) put camo = [this, "DEBUG", 0,1,0,1,5] spawn compile preprocessFile "camoscript.sqf"; will run script in DEBUG mode with a five second recalc delay and a full effect.. Remove DEBUG to turn off and just play. IMPORTANT - the script monitors keys associated with stand/crouch and prone through the use of User1. It will work if you don't do this but you will only get the automatic calculation every five seconds and not the additional stance change triggered recalculation. Go to the menu - controls>custom controls > User1 and ensure you set both the prone key AND the crouch stand key for User1. ( usually z and x keys) If you want to use a different User number select User2... User20 as desired, set keys as stated and change User1 to your desired User,n in script. USE You don't need to do anything other than occasionally crouch, stand up , go prone and watch the different camouflageCoef that is being set for you. Try at night V day, with and without rain, fog etc and watch result. In general I am trying to adjust the impact of the various factors so that they combine together sensibly. User can adjust impacts via linearconversion. If anyone doesn't understand anything please ask. Script prints calculated values when DEBUG on. A BRIEF GUIDE TO ADJUSTING THE EFFECT - NOTE 1- It takes quite low values of camouflageCoef to make detection quite hard so this version comes with the factors and the result scaled towards that direction. 2 - I am tuning the impact of factors as the script develops. If you want to try your own tuning try the graph calculator link below then adjust linear conversion output ranges or specific values ( eg for stance) as required. The values currently in the script give a fairly good out of the box result though. Further Development Plans 1) make specific calculation for audibleCoef- done.2) weighting for unit being near bush(s) - done 3) same for tree(s) 4) parameterise adjustables so that they are supplied by array? done 5) handling of weighting for uniform ( ie ghillie suits etc) done ( may upgrade further) 6) test and weight for inside building 7) useable for squad and other ai. (partly done) 8 ) consider MP and JIP compatibility. Version/ Update Notes This is an annotated fully working version. I trust the annotations make the script self explanatory. Version 1.1 - included setting of audibleCoef. Make unit harder to hear. Separate scaling of effect for audibleCoef to allow user to define how much they want impact on audibleCoef. Version 1.2 - handling of light level significantly improved around dawn and dusk. Light level impact adjustable via linearconversion. Version 1.3 - audibleCoef calculation now uses specific factors which can be weighted separately from those for camouflageCoef. Other tweaks include adjustment of range values Version 1.4 - 1) script now auto recalcs every 5 seconds as well as on stance change. Soldier can keep lower stance camo max five seconds on bob down and up. 2) calculated values shown by systemchat and hint for camouflagecoef , audiblecoef and number of trees/bushes/hides found in 2m radius. Turn of by setting DEBUG to empty string in call ie camo = [this,"DEBUG"] spawn etc. See installation. 3) calculation now influenced by near proximity of trees bushes and hides to player. 4) sleep after stance change calculation shortened to 2s for better responsiveness. Version 1.5 1) script now has parameters which can be passed to it allowing easy adjustment of Dynamic Camo impact. See USE. 2) Script now gives different DynamicCamo depending on uniform type. 3) Script works with ai to ai. Ai running the script benefit from DynamicCamo. 4) Recalc interval can be specified per instance of the script. The Script - The script was starting to clutter up this first post so I have removed it. The script is available via the download link for the test scenario at the bottom of this post. If you have any problems getting it from there let me know. All comments welcome. I set up this graphical calculator to show how the function works - just mess with the sliders. https://www.desmos.com/calculator/buiia4zs2j Test scenario mission with v1.5 https://www.dropbox.com/s/xf6x34963ixjue0/camouflagescript.Altis.zip?dl=0 Watch camo level change on stance change. Watch values change as you move about (script in this version also shows opfor man knowsabout unit value with debug set.) Try to escape across the patrolled fields. For me the effect is a bit strong at this point but you can change values in script call. See adjusting the effect above. Make sure to set User1 keys to x and z as instructed above before playing or recalc on stance change wont work.
  24. Vanilla like AMMO REPACK SCRIPT Hello guys I just finished my new Ammo repacking script. Which have few benefits than other repack scripts. Let me just show you the simple gif Demos. ^^ (Sorry for unfamiliar language but you see the familiar calibers under the inventory. Right?) As you see, this new script has few benefits than other repack scripts. 1)NO MOD! -Adding this script is very easy. You just drop the file, add one line in the init.sqf. Thats all! No mod, No bulky instruction for installing! 2)SIMPLE FILE STRUCTURE! -The script has GUI but has no header file nor class definition file. Only single script sqf file. You can even adapt the script in game with debug menu. 3)VANILA-LIKE DESIGN & UX! -The UI just look like it's a part of the ARMA3 game itself. Newbies will even think this is a part of game and ask why they don't have the repack ui on other servers. -Users doesn't have to be informed about the repack short-cut since they will see the ui as they open the inventory. And you know what to do! 4)REPACK EASY! -You can repack every magazines if they uses same ammo. Different magazines even can be repacked if they use same ammo. (but no tracer-normal ammo mixing!) -You can select multiple magazines and preview the result of repacking. And Choosing order affects which magazines should be filled first. Multi select source, automatically multi repacked! Download and Informations[armaholic] : http://www.armaholic.com/page.php?id=35582 🙂
  25. GF ALIAS Anomaly Spawner Script by GEORGE FLOROS [GR] Description: GF ALIAS Anomaly Spawner Script , is a configurable spawner for ALIAS Anomaly Scripts. 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 ALIAS Anomaly Spawner 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/ ArmA 3 | Notepad ++ SQF tutorial https://www.youtube.com/watch?v=aI5P7gp3x90 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/ BI Forum Ravage Club Owner : https://forums.bohemia.net/clubs/73-bi-forum-ravage-club/ Notes: GF ALIAS Anomaly Spawner Script , is a configurable spawner for ALIAS Anomaly Scripts. I was asked several times on how to spawn them automatically , without any editing in the 3D editor and create multiple spawns. This is why i created this spawner : The scripts of ALIAS are NOT included ! This Spawner Script is supporting the following : Burper Farty Flamer Screamer Smuggler Sparky Steamer Strigoi Worm Everything in the description.ext , is ready to use with these scripts. There are settings for : Debug Max Number of the spawned scripts Blacklist Zone distance Safe distance spawn from players Select ( scripts ) The spawner will work automatically , without need of placing Markers in the 3Deditor. The spawn position will be random. #CAUTION : Inside the Description.ext , the initServer.sqf and the initplayerlocal.sqf , there are extra codes for Farty and Flamer Scripts. If they are not in use , they must be deleted. Credits and Thanks to : #SPECIAL THANKS TO ALIAS ! He was my motivation to start scripting. I'm following him all these years and for me , it's a unique person. The least that i can say is , thank you ALIAS for everything ! 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.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&amp;q=40409 Armaholic GF ALIAS Anomaly Spawner Script Thank you very much ALIAS for everything ! PS : You are the Greatest !!! I have told you and you know that !
×