Jump to content

Blitzen88

Member
  • Content Count

    140
  • Joined

  • Last visited

  • Medals

Community Reputation

12 Good

About Blitzen88

  • Rank
    Sergeant

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Blitzen88

    RHS Escalation (AFRF and USAF)

    Question: Can the RHS grip system be applied to vanilla models? Im trying to figure out if you can use the system to add a vertical grip to the Spar 16
  2. I think the script could be exited by using the currentCommand feature. Something like: if ( currentCommand _unit == "STOP" ) then { exit } else { *code*} However, I cant figure out how to implement it into the code. This way, the script should end if the units are given a stop command.
  3. Greetings, I am fooling around with a very basic script, called via a radio trigger, which orders a player's AI squad mates to "clear" a targeted building. AI squad mates "clear" the building by moving, one after another, to each building position. Although the AI can clear small buildings relatively well, with the AI being what it is, they sometimes get hung up. Is there anyway to build in an "If condition exitwith" statement which will exit the script if the squad mates are given a return to formation command (ie dofollow player)? I tried something like: if (_Playersquadmates !dofollow player) then {} else {exit} With the idea being that the AI squad mates are not following the player when they are moving to a position. If they were issued a regroup command then they would be following the player and the script would end. However, it didnt work. Does anyone have any ideas? Here is what I got: //Define some variables for the rest of the script _PlayersGroup = group player; _PlayerSquadMates = (units _PlayersGroup - [player]); _PlayerSide = side Player; _OriginalFormation = formation _PlayersGroup; //Save the Cursor target building _Building = Cursorobject; //Get Building positions from the building and count them _BuildingPos = _Building buildingPos -1; _BuildingPosCount = count _BuildingPos; //Try to sort the Building Positions in ascending order (closest to farthest) _BuildingPos sort true; //Dont try to run the loop if all of the squadmates are dead if ((count _PlayerSquadMates) == 0) exitWith {}; //Dont try to run the loop if there are no building positions if ((count _BuildingPos) == 0) exitWith {player groupchat "Unable to clear the building - no builiding positions detected"}; //Acknowledge the command Player groupChat " Roger, Clearing building"; //Put the units into a File formation before they clear the building {_x setformation "FILE"} foreach _PlayerSquadMates; //Start the Loop while {_BuildingPosCount > 0} do { //Select the first Building Position _position = _BuildingPos select 0; //Remove the Building Position from the array _BuildingPos = _BuildingPos - [_position]; //Subtract a Building Position/Number from the Building Count _BuildingPosCount = _BuildingPosCount - 1; //Order the Units to the designated Position {_x doMove _position; sleep 1} foreach _PlayerSquadMates; waituntil { {unitReady _x} foreach _PlayerSquadMates; }; sleep 1; }; Player groupChat "Building cleared, returning to formation"; {_x dofollow leader _PlayersGroup} foreach _PlayerSquadMates; {_x setformation _OriginalFormation} foreach _PlayerSquadMates;
  4. Blitzen88

    ARMA 3 Addon Request Thread

    Are there any addons which have IR laser & light combos that work well with the vanilla Ak12? Specifically ones where the IR laser is mounted on the top of the handguard (as opposed to the side). All of the ones I have found sit too low and clip into the weapon
  5. I tried this and it didnt seem to work. Here is what I did: Copied and pasted the code into init.sqf Identified a CSAT unit and then ran to the other side of the map The CSAT marker remained visible even when the unit was on the other side of the map. I suppose this test is based off of the assumption that the unit will no longer know about a target after a certain distance Is there any way to use BIS_Marta_getVisibleGroups to get a list of id'd groups, filter that list down to a selection of enemy groups, and then run that list of enemy groups to see if the players side knows about that particular unit? If not, then get rid of the marker(s)? If this is possible, then I dont believe you could use Marta_Hide because there is a chance that enemy unit could be re-identified after its initial identification Also, just out of curiosity, what does this part of the script do/mean: >-1}]; ==-1}]; Thank you for your help
  6. Trust me, I have been looking a loooottt at that post. The original poster in that thread actually asks, at the end, how to set the “duration” setting for Marta and seems to indicate that it was not working.
  7. Just as a backup do you mind sharing your marker script?
  8. Greetings, I'm having an issue hiding "forgotten" units with the Military Symbols Module (aka Marta). The module correctly assigns military symbols to enemy units which have been identified but does not remove the symbol when that unit has lost contact with friendly forces. In other words, once a unit is identified, the Marta symbol stays with that unit until its death. Is there any way to fix this issue? I have tried both changing both of the following values: BIS_marta_mainscope setVariable ["delay", 0.1]; BIS_marta_mainscope setVariable ["duration", 600]; However neither command seems to work. If it is not possible to implement this by changing values, then is it possible to fix it via a script? Something sort of loop along the lines of: If player side does not know about enemygroup, then Marta_hide foreach unknown group...? I cant seem to figure it out and any help would be appreciated
  9. Thank you for this. I will give it a shot.
  10. Im making a mission where enemy units are put into positions via the BIS_fnc_ambientAnim function. For whatever reason this function creates a gamelogic on the map. Unfortunately, these gamelogics also show up on the map as a Blufor unit when the military symbols module is used. Is there anyway to disable military symbols for gamelogics? I tried putting this in the mission init but it didnt work: _gamelogics = allMissionObjects "Logic"; player setVariable ["MARTA_hide", [_gamelogics]]; Any help would be appreciated
  11. Greetings, Im having some problems with a script (provided below) that I am using in an attempt to improve upon the default BIS_fnc_ambientAnim function. What the script does is place the unit in a stance, waits until that unit is in combat, and then has the unit either guard their location (via BIS_fnc_taskDefend) or stay in place (for a unit in a guard tower, etc.). Since certain animations remove the unit's weapon, the script also gives the unit their weapon back when they enter combat mode. I am having some issues getting this script to work with some other scripts/things that I am trying to do. Setup I placed a CSAT Rifleman in the editor and executed the script via the unit's init. From my understanding, the unit's script should execute/run before the Init. The script should save the unit's initial starting weapon. I use the Init script to apply a loadout script to all of the East Units on the map. This loadout script also changes the unit's weapon to an AK12. I also use the Init script to run another script which, based upon the user's input, removes or applies nightvision goggles to units a particular side. This script also gives a weapon flashlight to units which do not have nightvision goggles. In this case, the CSAT Rifleman should receive a flashlight. Order of Execution Animation script executes via the CSAT unit's init. The CSAT unit's original rifle is saved by the script Loadout Script executes via Init. The CSAT's unit's weapon is changed to an AK12 Nightvision/Flashlight script executes via Init. The CSAT unit's Ak12 now has a flashlight Problems The script uses a waituntil loop to check if the unit has entered combat. Once the unit enters combat, he is weapon is given back to him. For whatever reason, the unit is being given his weapon back before he enters combat There is a weird interaction between the unit receiving a weapon and the built in loadouts of the BIS_fnc_ambientAnim function. If the unit's loadout is set to "None" via the BIS_fnc_ambientAnim function then he will use his original, pre-Init weapon. If the unit's loadout is set to "ASIS" then the unit will use the post-init weapon. I have no idea as to why... Is there anyway to fix to the unit receiving their weapon before entering combat mode? Is there any way to build in a check that "updates" the unit's weapon ( and weapon attachements, ie the flashlight) and then gives that weapon to the unit when they enter combat mode? /*========================================================================================== Arma III - AI Ambient Stances =========================================================================================== * Places units in an ambient animation (sitting, watching, etc) and makes them respond to combat * Units will respond to combat by either (based upon input) call Bis_Fnc_Defend, or remain at their placed position. * Unit Stances and "Loadout" inputs are Case Sensitive! * Any unit loadout script must be executed before the animation script!!! * Possible "Loadouts": - NONE - no goggles, headgear, vest, weapon - LIGHT - no goggles, headgear, vest - MEDIUM - no goggles, headgear - FULL - no goggles - ASIS - no changes to the unit's gear - RANDOM (default) - gear is randomized according to the animation set * Possible Stances: - STAND - standing still, slightly turning to the sides, with rifle weapon - STAND_IA - standing still, slightly turning to the sides, with rifle weapon - STAND_U1-3 - standing still, slightly turning to the sides, no weapon - WATCH1- - standing and turning around, with rifle weapon - GUARD - standing still, like on guard with hands behing the body - LISTEN_BRIEFIN - standing still, hands behind back, recieving briefing / commands, no rifle. - LEAN_ON_TABLE - standing while leaning on the table - LEAN - standing while leaning (on wall) - BRIEFING - standing, playing ambient briefing loop with occasional random moves - BRIEFING_POINT_LEFT - contains 1 extra pointing animation, pointing left & high - BRIEFING_POINT_RIGHT - contains 1 extra pointing animation, pointing right & high - BRIEFING_POINT_TABLE - contains 1 extra pointing animation, pointing front & low, like at table - SIT1-3 - sitting on chair or bench, with rifle weapon - SIT_U1-3 - sitting on chair or bench, without weapon - SIT_AT_TABLE - sitting @ table, hands on table - SIT_HIGH1-2 - sitting on taller objects like a table or wall, legs not touching the ground. Needs a rifle! - SIT_LOW - sitting on the ground, with weapon. - SIT_LOW_U - sitting on the ground, without weapon. - SIT_SAD1-2 - sitting on a chair, looking very sad. - KNEEL - kneeling, with weapon. - PRONE_INJURED_U1-2 - laying wounded, back on the ground, without weapon - PRONE_INJURED - laying wounded & still, back on the ground, with or without weapon - KNEEL_TREAT - kneeling while treating the wounded - REPAIR_VEH_PRONE - repairing vehicle while laying on the ground (under the vehicle) - REPAIR_VEH_KNEEL - repairing vehicle while kneeling (like changing a wheel) - REPAIR_VEH_STAND - repairing/cleaning a vehicle while standing * Call with: [this, "SIT3", "ASIS", True] execVM "Scripts\AI_AmbientStances.sqf" ==========================================================================================*/ //Define Variables/Input _unit = _this select 0; _stance = _this select 1; _loadout = _this select 2; _GuardMode = _this select 3; _OriginalPosition = position (_this select 0); _UnitsGroup = group (_this select 0); _UnitsPrimaryWeapon = primaryWeapon _unit; //Put the Unit in the Designated Position [_unit, _stance, _loadout] call BIS_fnc_ambientAnim; //Wait until the unit is in combat and then terminate the animation 0 = _unit spawn {waitUntil {behaviour _this == "combat"}; Sleep 1; _this call BIS_fnc_ambientAnim__terminate; }; Sleep 3; _unit setunitpos "Auto"; //Some animations remove the unit's primary weapon. Lets give the weapon back to him. [_unit, _UnitsPrimaryWeapon, 6] call BIS_fnc_addWeapon; _unit selectweapon (primaryweapon _unit); //The unit will either move/defend or remain at their position (useful for guardtowers, etc.) if (_GuardMode) then { [_UnitsGroup, _OriginalPosition] call bis_fnc_taskDefend; } else { _unit disableAI "Path"; }; Thank you for your help!
  12. This is the approach I was considering. Define a global variable in the loadout function script and then check for that variable in the loadout scripts.
  13. Greetings, I use two sets of scripts to apply different equipment/guns/loadouts to AI groups. One script is a "loadout functions" script which creates functions which are used by other scripts which actually apply the loadout to the AI. This "loadout function" script is automatically run via the Init. Usually this works just fine but I have errors occur when an AI group execs a loadout script via its unit init box; I assume this is because unit init boxes exec before the init file. Is there a way to build in a check to the loadout scripts to see if a the loadout function script has run? Something like this: If ( loadoutFunctions.sqs has run ) then { (Do nothing) } else { exec LoadoutFunctions};
  14. How could you change that so the trigger's location is used instead of the player? Also, can you automatically get the diameter from the trigger instead of a manual input?
×