Search the Community
Showing results for tags 'dismiss'.
Found 2 results
-
Unit recruitment and dismissal
Theo Thalwitzer posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
This is just a little script-set I made to recruit and dismiss units at will. So far it works fine in SP (Surprisingly well, actually) but I want to make this MP compatible. The set consists of 4 small script files: 1. File: "recruiting.sqf" // Code below: /* Usage: put this in INIT of unit to be recruited; nul=[this] execVM "TRecruit\Recruiting.sqf"; // 'this' or unitname */ _guyNotRecruited = true; _fng = _this select 0; _fng setcaptive true; //use different state or condition perhaps?? _recruitGuy = _fng addAction ["Recruit","TRecruit\newguyinit.sqf"]; while {_guyNotRecruited} do { if (not(captive _fng)) then {_guyNotRecruited = false}; if (not alive _fng) exitwith {_fng removeAction _recruitGuy}; sleep 1; }; _fng removeAction _recruitGuy; [_fng] join (group player); _fng enableAI "MOVE"; sleep 1; nul = [[["New Team Member recruited.","<t align='center' shadow='2' size='0.7'>%1</t><br/>"],["","<t align='center' shadow='2' size='0.7'>%1</t><br/>"],["","<t align='center' shadow='2' size='0.7'>%1</t>"]]] spawn BIS_fnc_typeText; sleep 5; nul=[_fng] execVM "TRecruit\dismissing.sqf"; 2. File: "dismissing.sqf" //Code below: _guyRecruited = true; _fng = _this select 0; _dropGuy = _fng addAction ["Dismiss","TRecruit\dropguyinit.sqf"]; while {_guyRecruited} do { if (captive _fng) then {_guyRecruited = false}; if (not alive _fng) exitwith {_fng removeAction _dropGuy}; sleep 1; }; _fng removeAction _dropGuy; [_fng] join grpNull; _fng setCaptive true; sleep 1; if (not alive _fng) then { hint "Team member deceased"; } else { nul = [[["Team Member dismissed.","<t align='center' shadow='2' size='0.7'>%1</t><br/>"],["","<t align='center' shadow='2' size='0.7'>%1</t><br/>"],["","<t align='center' shadow='2' size='0.7'>%1</t>"]]] spawn BIS_fnc_typeText; nul=[_fng] execVM "TRecruit\recruiting.sqf"; }; sleep 5; 3. File: "newGuyInit.sqf" //Code below: // set unit not captive _unit=_this select 0; _unit setcaptive false; 4. File: "dropGuyInit.sqf" //Code below: // set unit not captive _unit=_this select 0; _unit setcaptive true; //// I hope someone will find this useful, but as I said it will have issues in MP. Works great in SP though. -
All-In-One AI Command Menu A "WW AI Menu" Patch By Leopard20 & WindWalking This thread is no longer updated! For the latest release, check here Hello everyone. As you know, the WW AI Menu was one of the first and best AI mods released in the early days of ARMA 3 release. It addressed a lot of issues and shortcomings with the vanilla ARMA commanding system, and packed a lot of handy features including: - Infantry commands such as healing, garrisoning & clearing building, rearming, .... - Vehicle commands such as engine on and off, horn and eject with parachute. - Waypoint system with the ability to assign multiple waypoints to your squad members. - Weapon accessories (silencers, flashlights, ...) - Unsticking units. and .... Read more about the mod: https://forums.bistudio.com/forums/topic/153621-ww-aimenu-complimentary-commands/ Unfortunately, when Windwalking left the community some of the features ended up broken, and due to the community rule forbidding people from taking over and/or changing an author's work without their permission, nobody has stepped up to bring this mod back to life. Until now. I decided to bring this mod back to life in a way that respects the community rule and the author's work. Namely, "patching" the original mod by adding features and fixing broken ones. As a result, you will need the original mod installed for my mod to work. You can activate the menu by pressing Y .If you use the "Y" key for Zeus or anything else you can either change the keybinding for those features (I personally use "Ctrl+Y" for Zeus) or change the keybinding for the menu by navigating to: "OPTIONS > CONTROLS > CONFIGURE ADDONS > (dropdown menu) All-In-One Command Menu". I've also included a userconfig file where you can add support for your mods (if they are not supported already). Currently you can add support for: Resupply vehicles, AT soldiers (used in the rearming script) and the Handgun suppressors. Note that you might need to enable "file patching" for the config file to work (either add the -filepatching commandline or enable it in the launcher parameters). This mod is compatible with other commanding mods (such as C2). Although I don't recommend using both for issuing the same command at the same time (e.g when you use C2 to order your units to mount a vehicle, don't use the same command in this mod, as it may cause conflicts and unforeseen consequences) I also recommend this mod as it makes issuing regular and frequent commands a lot easier: (you may need to change the default keys used by the mod, keys 1, 2, 3 , 4, as these keys are used for switching weapons) Advanced Command System (ACS) All features were tested using the vanilla ARMA vehicles/weapons (including all DLCs up to the time of release), and work as intended. However some features (the most important of which being weapon accessories) may not work in other mods (such as RHS or CUP). Edit: As of version 0.50 Beta most features should work with other mods without issues. If they don't please post your feedback in this thread. Here's a quick overview of what is changed: Unchanged: Fixed/Modified/Removed: Added: Screenshots: Notes: Special thanks to: - @Windwalking for his awesome mod. - @Muzzleflash for helping me with showing objects on the map and also teaching me a lot about scripting. He's one of the best guys on this forum. - @mad_cheese for allowing me to use the "Bounding Box" function used in his legendary mod, C2. - and everyone else who kindly answered all my questions on the forum. Disclaimer: I can't guarantee this mod is completely harmless. Please back up your ARMA 3 directory located in the "Documents" folder (C:\Users\YOUR_PC_NAME\Documents\) prior to using this mod (especially the file *.vars.Arma3Profile and the "saved" folder because they are the only files that may be affected). Multiplayer support is in alpha state and not fully tested yet. Dear Moderators, The current release still uses the scripts from the original version. Also, to avoid some conflicts, I had to rename the global variables. If you think this mod is still not in compliance with forum rules please let me know to come up with a solution (you can PM me or post it here). By installing this patch, the original mod will be disabled (If you want me to leave it enabled please leave a feedback and I'll re-enable it). Download Link (Current Version: v1.2.1): GitHub (always up-to-date) DropBox Armaholic (updates with a slight delay) How to Install: Future Plans: Changelog: Requirements: CBA: http://www.armaholic.com/page.php?id=18767 WW AI Menu by Windwalking: http://www.armaholic.com/page.php?id=22380 Since v1.0.0, WW AI Menu mod is not required anymore. It's because some users reported they had trouble setting up WW AI Menu (mostly because of FilePatching used in WW AI Menu, which complicated things), so I decided not to make it necessary to have this mod. A couple of such reports:
- 209 replies
-
- 19
-
- ai mod
- all-in-one
- (and 27 more)