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


    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
    • ARGO
  • 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 Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Virolahti
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Saint Kapaulio
  • 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
  • SOS GAMING's TS³ Viewer
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL


Jabber (xmpp)








Steam url id







PlayStation PSN














Found 542 results

  1. Hello everyone. I'm creating a mission on eden editor and when I put the support requester and the provider to be able to boom boom boom the enemies, when I test an error message appears... https://photos.google.com/album/AF1QipNj5RLe8PA5816sVP5DhiNch5T8zEC-9shFZTAS despite this, the support works normally. But my will to be perfectionist do not allows me to move on. So I created a new scenario from zero and did the same settings and nothing showed up. I tried find the file mentioned but i couldn't... 😕
  2. Hi everyone, Little overview, I am making a survival mission and I want to add items that are required for crafting (things like sandbags, woodplanks and cinderblock etc.) In my mission description.ext I am creating classes under the CfgWeapons for these items. However, I would like to inherit the itemCore class from configFile >> CfgWeapons >> itemCore to make my life much much easier. Simply calling the class like you would for an addon (class itemCore;) doesn't work as I am in the missionConfigFile namespace. So my question is, Is it possible to inherit a class from configFile while working inside missionConfigFile, and if not what would be the best way to go about this? Thanks in advance!
  3. Took a bit of code from LAMBS fnc_tacticsHide and did this. It runs on player's group AIs only and it's a separate script from LAMBS. It's just an example, a proof of concept (although fully functional). Note: unfortunately forgetTarget makes the whole group forget it's targets (even if used on unit), it would be nice if individual units could forget targets and let others retain the memory, this way we could order individual AT/AA to engage, now you have to make all your AT/AA's open fire (within this script), guys without launchers can remain hold fire though 👍. /* Force AT/AA specialists forget enemy vehicles when ordered hold fire Description: Allows AI in player's group to remain prone and regroup faster on the presence of enemy vehicles. Execute from initPlayerLocal.sqf */ params ["_player", "_didJIP"]; forgetAT_targets = []; forgetAT_fnc = { //hint str forgetAT_targets; if (forgetAT_targets isNotEqualTo []) then{ {(group player) forgetTarget _x}forEach forgetAT_targets; }; }; while {sleep 1; true} do{ //should hold after respawn? waitUntil {count (units group _player) > 1}; // find launchers private _launchers = (units group _player) select {(secondaryWeapon _x) isNotEqualTo "" && {unitCombatMode _x in ["BLUE","GREEN"]} && {!(isPlayer _x)}}; if (_launchers isNotEqualTo []) then{ // find enemy vehicles forgetAT_targets = (_player targets [true, 0]) select {(vehicle _x) isKindOf "LandVehicle" || {(vehicle _x) isKindOf "Air"} || {(vehicle _x) isKindOf "Ship"}}; if (forgetAT_targets isNotEqualTo []) then{ if (isNil "forgetAT_EH") then{ forgetAT_EH = addMissionEventHandler ["EachFrame", {call forgetAT_fnc}]; }; }; }else{ if !(isNil "forgetAT_EH") then{ removeMissionEventHandler ["EachFrame", forgetAT_EH]; forgetAT_EH = nil; }; forgetAT_targets = []; }; };
  4. Here is my Simple Auto-Gate or SAG 😉 The script is meant as a self contained system for creating automatic gate opening of bar-gates. The script works with pre-placed bar-gates, like on some of the CUP based maps, but will work just as well with bar-gates placed in the Eden editor. It has been tested with both the ArmA 3 standard bar-gates and the CUP ones. Just place a trigger using the editor so that the centre of the trigger is close to the bar-gate you want to control. Set the 'Name' of the trigger and set its size and orientation as required, the rest of the trigger parameters will be set by the script. Create a folder called 'Scripts' in your mission directory and copy the 'sPK_autoGateInit.sqf' file to the directory. You will need an 'init.sqf' file in the root directory of your mission with the following in it: This example sets the system for GATE_NORTH and GATE_SOUTH triggers to control the vanilla bar-gate. if ( isServer ) then { [ [ GATE_NORTH, "Land_BarGate_F" ], [ GATE_SOUTH, "Land_RoadBarrier_01_F" ] // No comma on the last entry. ] call compileScript["Scripts\sPK_autoGateInit.sqf", true]; // true - compileFinal. }; The if ( isServer ) block is to stop warnigns about running it on a player client when connecting to a dedicated server. The compileScript is a replacement for compile preprocessorFile[LineNumbers] command. Job done. The system has an additional feature where you can call the script without the bar-gate class name. In this case it will display the class of the object nearest the trigger in a 'hint' and in the report file. Search for "GateClass:" in the report file: [ [ GATE_NORTH ], [ GATE_SOUTH ] ] call compileScript["Scripts\sPK_autoGateInit.sqf", true]; The output will look like: 10:35:14 "GateClass:GATE_NORTH:Land_BarGate_F" 10:35:14 "GateClass:GATE_SOUTH:Land_RoadBarrier_01_F" Enjoy, S For the record, gate classes: Land_BarGate_F – Vanilla bar-gate class. Land_RoadBarrier_01_F – Metal frame bar-gate from Contact DLC. Land_Zavora – CUP bar-gate class. Land_zavora_2 – CUP bar-gate class, fractionally bigger and taller. This is a link to a simple VR mission demonstration: https://1drv.ms/u/s!AnX2_vGoXf5F911_Kg9MmzpPJQb8?e=ChpdqP sPK_autoGateInit.sqf:
  5. Hi there. Im looking for help about unique gas script, that probably can't be found in any script library. In lore of my operation, there is a gas. UK founded it in Arctic and in previous mission, Sweden SOF got inside, and got all intel. After few days, there is a war between UK and Sweden. UK used that gas. Gas is called "Ares" and its doing something like turning off in human any recognize of friendly, and in afterward they see hostiles in anyone. After few minutes of aggresion, human is going to die, because his heart gonna explode from extraordinary pulse. Of course I want to get this gas into civilians, because in my next operation, IDAP with Sweden Homeguard is about to make them safe, but they will not sure, who is not affected by gas, and who is not. In addition, I want to use masks from Gren_evo, and by that I want to make those who is wearing them immune to gas, becuase its only working by doing damage to respiratory system, and next to neurobiological. IDAP gonna have some kind of antibodies in syringes, that gonna for some time stop gas from spreading in body, so they could for example get him in handcuffs. And my question is, how can I make it possible ? And for sure, If im not really understandable, then ask me please. Im not god of english tho, but im trying to :)
  6. Hello! I'm trying to make a script that will create a helicopter that will fly to the player, land and transport the player back to base when the player throws orange smoke. Most of the script is working fine, but if the player wants to extract a second time after getting back to base, two helicopters will spawn. If done one more time a third will spawn etc. Here is the code that I'm currently using: player addAction ["Request transport", {[] execVM "Scripts\extract.sqf"}, nil, 0.1, false]; // This is in another file to the rest of the script systemChat "Mark your position with orange smoke!"; player addItem "SmokeShellOrange"; player addEventHandler ["Fired", { if ((_this select 4) == "SmokeShellOrange") then { (_this select 6) spawn //spawn will create 1 extra helo every time smoke is thrown { waitUntil {sleep 1, (speed _this <= 0) || (!alive _this)}; _smoke = getPos _this; _pickup = createSimpleObject ["Headgear_H_WirelessEarpiece_F", _smoke]; hideObject _pickup; _marker = 1; waitUntil { sleep 1, _marker == 1}; _radius = getPos player; _helo = createVehicle ["B_Heli_Transport_01_F", _radius, [], 2500, "FLY"]; createVehicleCrew _helo; systemChat "A helicopter is en-route to extract you!"; _zone = getPos _pickup; _helo move _zone; waitUntil {sleep 1, ((_helo distance _zone) < 150)}; doStop _helo; _helo land "GET IN"; {_helo animateDoor [_x, 1]} forEach ["door_back_L","door_back_R","door_L","door_R"]; waitUntil {sleep 1, player in _helo}; {_helo animateDoor [_x, 0]} forEach ["door_back_L","door_back_R","door_L","door_R"]; _helo move (getMarkerPos "start"); sleep 11; [0, "BLACK", 3] spawn BIS_fnc_fadeEffect; sleep 3; player setPos (getMarkerPos "service"); player setDamage 0; deleteVehicle _helo; skipTime 2; [1, "BLACK", 2] spawn BIS_fnc_fadeEffect; sleep 2; curobj allowDamage true; curobj enableSimulation true; deleteVehicle curobj; deleteVehicle veh; [] execVM "startupgui_fnc.sqf"; // Allows the player to set new mission parameters and usually only runs on mission start }; }; }]; Not only does this spawn two helicopters, it also broadcasts the chat message one time for every helicopter that spawns. This leads me to believe that the script is somehow running twice (?). Can anyone tell me what I am doing wrong and how to fix it?
  7. Good day/night. At the moment i'm trying to make a co-op S.T.A.L.K.E.R survival mission with ACE3 for my group, and there are only RPservers mods that only allows you to play in their servers and don't let you play with ACE3. So I chose to use a mod from the workshop posted by sir.ghostington (He took the mutants from a dead RPserver mod that don't let the ace work), but I have a problem, the mutants don't understand the ACE3's damage. So, what should I do to make the mutants work with ACE3 ? How can I create a patch for this mod? (I don't know so much about scripting but I have some tools)
  8. I was wondering two things regarding this script/fnc I made: Question 1: any way to open the mini map display via script commands? Question 1: The minimap radius is based on the speed of the player, any way to manually control that?... since I check a range of 50 I would like the mini GPS to reflect that regarding of the player speed. Also, Any suggestions? The script in fnc form, spawned by a custom UI: (Special thanks to @Leopard20 who's insights made this posible) vMotionScanner = { params [ ["_unit", objNull, [objNull]], ["_motionScannerDistance", 60, [60]], ["_detectAllEnemies", false, [false]], ["_detectEnemyUnits", false, [false]], ["_detectEnemyVehicles", false, [false]], ["_detectEnemyAgents", true, [true]] ]; if (isDedicated OR !hasInterface) exitWith {}; if ( !("ItemGPS" in (assignedItems player)) || !(alive player) || (vehicle player isNotEqualTo player) ) exitWith {vMotionScannerRunning = false; systemChat "MOTION SCANNER not available";}; vMotionScannerRunning = true; systemChat format ["MOTION SCANNER enabled by: %1, use the keys Control + M to toggle the screen.", name player]; showGPS true; private _nearObjects = []; private _motionMarkersArray = []; private _maxMotionMarkers = 10; while { vMotionScannerRunning } do { if (visibleGPS) then { switch (true) do { case (_detectAllEnemies) : { _nearObjects = (player nearEntities [["Man", "Air", "LandVehicle", "Ship"], _motionScannerDistance]) select {side group _x isNotEqualTo side group player && abs speed _x >= 3}; }; case (_detectEnemyUnits) : { _nearObjects = (player nearEntities [["Man"], _motionScannerDistance]) select {side group _x isNotEqualTo side group player && abs speed _x >= 3}; }; case (_detectEnemyVehicles) : { _nearObjects = (player nearEntities [["Air", "LandVehicle", "Ship"], _motionScannerDistance]) select {side group _x isNotEqualTo side group player && abs speed _x >= 3}; }; case (_detectEnemyAgents) : { _nearObjects = agents select {agent _x distance player < _motionScannerDistance}; }; }; if (_nearObjects isNotEqualTo []) then { private _sortedContacts = []; if (_detectEnemyAgents) then { _sortedContacts = [_nearObjects, [], {(player distance2d agent _x)}, "ASCEND"] call BIS_fnc_sortBy; } else { _sortedContacts = [_nearObjects, [], {(player distance2d _x)}, "ASCEND"] call BIS_fnc_sortBy; }; private _closestContact = objNull; _closestContact = _sortedContacts select 0; private _closestContactDis = 999; if (_detectEnemyAgents) then {_closestContactDis = agent _closestContact distance2d player;} else {_closestContactDis = _closestContact distance2d player;}; systemChat format ["MOTION SCANNER contact: %1 meters", _closestContactDis]; // call { // if (_closestContactDis < 10) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion10b.ogg", player] }; // if (_closestContactDis < 20) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion10.ogg", player] }; // if (_closestContactDis < 30) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion10.ogg", player] }; // if (_closestContactDis < 40) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion20.ogg", player] }; // if (_closestContactDis < 50) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion20.ogg", player] }; // if (_closestContactDis < 60) exitWith { playSound3D [getMissionPath "vScripts\vSounds\motion30.ogg", player] }; // }; call { if (_closestContactDis < 10) exitWith { playSound "motion10b" }; if (_closestContactDis < 20) exitWith { playSound "motion10" }; if (_closestContactDis < 30) exitWith { playSound "motion10" }; if (_closestContactDis < 40) exitWith { playSound "motion20" }; if (_closestContactDis < 50) exitWith { playSound "motion20" }; if (_closestContactDis < 60) exitWith { playSound "motion30" }; }; private _displayedMotionMarkers = 0; { if (_displayedMotionMarkers < _maxMotionMarkers) then { private _contactName = random 9999; private _marker = ""; if (_detectEnemyAgents) then { _contactName = str agent _x; _marker = createMarkerLocal [_contactName, getPosWorld agent _x]; } else { playerSide reveal _x; _contactName = str _x; _marker = createMarkerLocal [_contactName, getPosWorld _x]; }; _marker setMarkerShapeLocal "ICON"; _marker setMarkerTypeLocal "hd_dot"; _marker setMarkerColorLocal "ColorGrey"; _marker setMarkerAlphaLocal 0.85; _marker setMarkerSizeLocal [0.5, 0.5]; [vAnimatedMarker_1_Fnc, _marker, 0.3] call CBA_fnc_waitAndExecute; [vAnimatedMarker_2_Fnc, _marker, 0.6] call CBA_fnc_waitAndExecute; [vdeleteMarkerLocalFnc, _marker, 0.9] call CBA_fnc_waitAndExecute; _displayedMotionMarkers = _displayedMotionMarkers + 1; }; } forEach _sortedContacts; }; }; sleep 1; if ( !("ItemGPS" in (assignedItems player)) || !(alive player) || (vehicle player isNotEqualTo player) ) exitWith { vMotionScannerRunning = false; systemChat "MOTION SCANNER disabled"; }; }; };
  9. I edited FAR revive script in GREUH Liberation so AI can revive players and be reivived by players. but a problem happed with players reviving another player this is what is executed on the unit revivng another: FAR_HandleStabilize = { params ["_target", "_healer"]; if (alive _target) then { _healer playMove "AinvPknlMstpSlayWrflDnon_medic"; //if (!("Medikit" in (items _healer)) ) then { //player removeItem "FirstAidKit"; //}; _target setVariable ["FAR_isStabilized", 1, true]; sleep 6; }; }; this is what is excuted on the unit injured: while { !isNull _unit && alive _unit && _unit getVariable "FAR_isUnconscious" == 1 && _unit getVariable "FAR_isStabilized" == 0 && (FAR_BleedOut <= 0 || time < _bleedOut) } do { hintSilent format[localize "STR_BLEEDOUT_MESSAGE" + "\n\n%2", round (_bleedOut - time), call FAR_CheckFriendlies]; public_bleedout_message = format [localize "STR_BLEEDOUT_MESSAGE", round (_bleedOut - time)]; public_bleedout_timer = round (_bleedOut - time); sleep 0.5; }; when a unit stabilize another unit, "FAR_isStabilized" variable of the injured unit is set to 1 so the while loop has to terminate these script run without any problem when AI revive players and AI are revived by players but don't work when a player is reviving another player. when a player tries to stabilize another player, it does the action "AinvPknlMstpSlayWrflDnon_medic" but that while loop doesn't finish so I think there is something wrong with _target setVariable ["FAR_isStabilized", 1, true];in the FAR_HandleStabilize function and _unit getVariable "FAR_isStabilized" == 0 in condition of the while loop full codes: https://github.com/lululala22/JLD_Liberation_Dev/tree/master/far_revive
  10. Hello for everyone! I have a trouble: my script takes screenshot of object and i need to create log file with full dimensions of this object (basically, i need a four points of object: upper left, upper right, lower left, lower right). How can i save it? I read about saveProfileNamespace, but i cant find where i can find file with logs in arma 3 directory. Or maybe there are any way of creating .txt file with each screensot? Thanks for help before!
  11. Recently the same scripts I use for all of my normal user-made missions cfg sound script have suddenly stopped working to a bug. Every time I use playSound or say3D I get this error: Type Object, expected nothing. Yet I can play the same sound with no problems when using the effects section in a trigger. This makes absolutely no sense as this exact script works on other missions I have made but for some reason not any of my recent ones. I seriously want to get a gun and shoot my computer 35 times this shit is so frustrating. Here is my desc.ext: class CfgMusic { sounds[] = {cutscenemusic}; class music { name = "cutscenemusic"; sound[] = {"sound\cutscenemusic.ogg", db+1, 1.0}; titles[] = {0, ""}; }; }; class CfgSounds { sounds[] = {}; class banter1 { name = "banter1"; sound[] = {"\sound\banter1.ogg", 100,1}; titles[] = {}; }; class scline1 { name = "scline1"; sound[] = {"\sound\scline1.ogg", 100,1}; titles[] = {}; }; class line3 { name = "line3"; sound[] = {"\sound\line3.ogg", 100,1}; titles[] = {}; }; class banter4 { name = "banter4"; sound[] = {"\sound\banter4.ogg", 700,1}; titles[] = {}; }; class banter5 { name = "banter5"; sound[] = {"\sound\banter5.ogg", 1,1}; titles[] = {}; }; }; author="Maxim"; OnLoadName = "The Last War"; OnLoadMission = "This will be the end..."; loadScreen = "images\splash1.jpg" And beleive me, all of my aspects are correct like my sound folder is not spelt wrong and so on.
  12. Hiya, I'm having some trouble with a script for a mission that is supposed to have a vehicle with something like a loudspeaker on it. The plan was to use TFAR for this for the cool effect of being able to actually speak through it and your voice then blaring from the car over radio and this making a bunch of civilians react in different ways. (I'm not having problems with the actual sounds and mod the problem is checking for certain conditions being met) I've found the event that I need to call to check for whenever someone transmits over a radio and set it up so that it only activates using the right frequency. However I also want it to only work when you SPEAK through the radio. There's a boolean that you can check for to see if someone is speaking but obviously if I use this in the event code it is only called once when the button is pressed. So I'm having some problems with how to implement this. Also excuse the shittily written and formatted code this has been cut and pasted through a few times so whenever I get something functional I'm gonna rewrite it a bit nicer. Here's what I got so far: radioBroadcastScript.sqf (executed in init with the argument of "230" just for testing purposes) //These first lines check for the arguments of the script. If none are added it will use the defaults. //First argument is the braodcast frequency. Note this has to be between 30 and 512. DEFAULT is 79.3 if (isNil {_this select 0}) then { _this set [0, "79.3"]; }; //Set the frequency at which the broadcast is detected on. broadcastFrequency = (_this select 0) ; //For each player in a group run the code below { //Register event to unit. This event is from TFAR and is for when someone presses or releases the radio transmit button. ["BroadcastingThroughSpeaker", "OnTangent", { //The event information. Unit object, radio object, radio type, whether it's an additional channel, whether it's a release or press. params ["_player", "_radio", "_radioType", "_additional", "_buttonDown"]; //Checks whether the button is pressed if (_buttonDown) then { //Assigns the currently used radio frequency by the unit to a variable _currentFrequency = _player call TFAR_fnc_currentSWFrequency; //Checks whether the frequency used matches the broadcast frequency if (_currentFrequency isEqualTo broadcastFrequency) then { systemChat format ["%1 is transmitting on frequency %2", name playerObject, _currentFrequency]; }; }; }, player] call TFAR_fnc_addEventHandler; } forEach units group player; And the check for whether someone is speaking is this little line here if (_player call TFAR_fnc_isSpeaking) then I've been kinda trying out a few different options but nothing really works. Also something worth noting is that this should ideally work in multiplayer. Any help would be greatly appreciated! 😄
  13. So I want to create a scifi mission where the players are on an alien planet. Is there a way, other than MCC Atmosphere and the vanilla Post Processing modules, to set a permanent color filter for all players in a mission? I'm thinking something weird like green or purple for an alien atmosphere.
  14. RTS Engine: Script & Game RTS Engine is a script you can use to create your own RTS for ARMA 3. A game mode is also included you can play alone or with friends. You can even play with AI. STEAM WORKSHOP Gameplay video
  15. I want to make a big Sector Control mission in the editor and then export to Singleplayer to play. I put a lot of Sector Control Modules on the map in the editor, I set Spawn AI Modules for BLU and OPF and exported to Singleplayer, in the beginning everything worked as it should, AI spawns, moves, fights with each other and conquers Sector Controls by map, then after I clicked Save & Exit to continue this mission later. But after reloading the save game I noticed that me and the AI (BLU and OPF) can´t capture Sector Controls. Sector Controls do not change color, they remain gray. The modules seem to have stopped working after the reload and need to be reactivated via script? How can I reactivate this? I wish I could save this mission so I could easily reload and continue later. Not that I have to play the whole mission in one piece. This is very important to me! If anyone can help, I will be very grateful.
  16. Hi all, I'm interested in a script that would detect AI units that get stuck for a while and are not in combat. If you have good ideas on the subject, don't hesitate to post them. I am creating a mission where, once a city is taken, reinforcements are spawned at random and secure positions and must reach the city. So I don't want to be bothered by vehicles stuck on the way slowing the reinforcements, I prefer to delete them if they are not in combat. for the moment, I've this: if (!isServer) exitWith {}; timeIdle = 60*10; // 10 minutes //timeIdle = 30; // TEST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mission_fnc_idle = { params ["_gr"]; //{_x disableAI "PATH"} forEach units _gr; // TEST !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! _distToDelete = 5; // Get all group's vehicle(s) _vehs = [_gr, true] call BIS_fnc_groupVehicles; // initialize vars {if (alive _x) then {_x setVariable ["idlePos", position _x]}} forEach units _gr; _timeOut = time + timeIdle; // MAIN LOOP while {{alive _x} count units _gr > 0} do { sleep 5; if (isNil "_gr" or {{alive _x} count units _gr < 1}) exitWith {}; // CHECK IDLE UNITS if ({alive _x} count units _gr > 0 and _timeOut < time) then { _units = []; _unitsToDelete = []; _vehsToDelete = []; // get all units near their idle position {if (alive _x and _x distance (_x getVariable "idlePos") < _distToDelete) then {_units pushBackUnique _x}} forEach units _gr; { // if unit in vehicle if (vehicle _x != _x) then { _veh = vehicle _x; if (!((crew _veh) call mission_fnc_isEngaging)) then { {_unitsToDelete pushBackUnique _x} forEach crew _veh; _vehsToDelete = _vehsToDelete + [_veh]; }; }; // if unit not in vehicle if (vehicle _x == _x and !(_x call mission_fnc_isEngaging)) then { _unitsToDelete pushBackUnique _x; }; } forEach _units; // delete idle units and vehicles {deleteVehicle _x} forEach _unitsToDelete + _vehsToDelete; // reset vars {if (alive _x) then {_x setVariable ["idlePos", position _x]}} forEach units _gr; _timeOut = time + timeIdle; }; }; }; // Thanks to rübe mission_fnc_isEngaging = { /* Author: rübe Description: returns true if anybody of the given unit(s)/group is engaging Parameter(s): _this: unit(s)/group (unit, array of units or group) Returns: boolean */ private ["_units", "_engaging"]; _units = []; _engaging = false; switch (true) do { case ((typeName _this) == "ARRAY"): { _units = _this; }; case ((typeName _this) == "GROUP"): { _units = units _this; }; default { _units = [_this]; }; }; { if ((currentCommand _x) in ["ATTACK", "ATTACKFIRE", "FIRE"]) exitWith { _engaging = true; }; } forEach _units; // return status _engaging };
  17. Here's a couple fire related functions, you_createFire, *Updated you_fnc_houseFire (demo), Burn buildings to the ground! Spawn one central fire with smoke and a number of FX fires (performance) in the building. The building takes damage over time. Once the building is destroyed the performance fires are deleted and later the main fire. Fire will spread based on the distance supplied to the function ("_dist"). Use the parameter "_damage" (default true) to make persistent fire that does not damage the building over time or spread to other buildings.* Use parameter "_time" to determine how long each building will burn (default: 10, demo: 1). 1 second is equal to 20 seconds total burn (each iteration is %10 damage) and the main fire burns for the same amount of time again (1x10x2). The default value is 10 or 200 seconds (100 to collapse and 100 more to extinguish). 1) create a helper object on/near the building(s) ** 2) paste the function in init.sqf (or wherever) 3) see call methods in demo init.sqf * keep track of effects in the supplied array ** editor placed buildings may be "_caller" Have fun!
  18. So I've tried using the setrandomlip command. It works perfectly well in Singleplayer, but not on a dedicated server. I've looked into the .lip stuff, but honestly it's way too much work for just adding a minor detail in a mission. Is there a way to get setrandomlip working in multiplayer? Currently what I've done is set up a trigger using the unit's variable name to start randomlip, then another one to end it set to activate several seconds later. UPDATE: unticked "server only" on trigger. It now works.
  19. I've been getting this error in multiplayer in the log: Performance warning: SimpleSerialization::Write 'bwpp_scrpromotion' is using type of ',SCRIPT' which is not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types I did not get this error when I tested my mission in singe player. I read some posts today from several years ago stating that this error is related to network traffic in which the type of data being sent across the network is not ideal. I was saving a script handle to a logic using SETVARIABLE (public true). After reading these posts I stopped saving the variable to the logic and instead began saving the script handle to a local variable in an FSM. I am still getting this error. Is it because a script handle cannot be saved to a variable, or that the saved script handle is being used in an FSM, or is it something else? Thanks, ben
  20. Hello, I have seen on Google and Steam Workshop and I found something almost the same as my idea. But still not the same sadly. General info: First of all. I am not a script person so for this mission it will be impossible for me to complete it without help. (allot of help) This mission will mostly be working with script's and coding. For thows who knows how please help me/us. I can help by typing class names for all that gona be in play for this mission. This is not like Warfare or Warlord. Here the commanders must die to be victorius. Main Objective: Kill the (playable) Commander's and conquer sectors for ressources (cash). Do not die. How to play this mission: You start of as an commander for one of the sides. You will start with xxx cash (Starting founds) and will recieve xxx time cash for just staying alive. On the map there is sectors your mission is to capture sectors to get more time cash to purchase units. You will be in Zeus mode mostly of the time (reason for calling it RTS) Purchasing units and buildings. You will see that you only have xxx meters arround you were you can put down ure units and buildings. First thing you would like to do is to build a building that you can hide inside, so you are not in the opening. You will than have to purchase units to do your dirty work. You should start off by building Light vehicle HQ so you can purchase (empty)vehicle for your units. Ofcurse build a Barracks HQ to get more advanced units as-well. You will be able to see on map the enemy base is, they can see yours as-well. Once you get enugh foundings you should go to war!. Order the men to infiltrate the enemy base and find the bastard commander to kill him. When all enemy commanders are dead, you win. If you get killed and friendly commander still alive he can buy you a new life for xxx cash. But this mostly wont happen due to every commander are in their same base. (one base for Blufor, Opfor and Independent) Base area most likley 2-500m big. Template picture: https://prnt.sc/vbjuv4 - Yellow circle = Sectors - Blue Rectangle = Blufor Base - Red Rectangle = Opfor Base - Green Rectangle = Independent Base This Mission: I will need .sqf files but I do not know what kind. So What I need help with? - Cash system script //Were I can just type in class name for unit, vehicle etc... And xxx how much it will cost. - Cash engine //how to use the cash. Need building to get new units. If a commander dies than friendly commander can buy him a new life. - Build system //Start by only be able to buy Barracks HQ and Light Vehicle HQ. Than maybe an Arsenal so Zeus can research Heavy Vehicle HQ and Airfield HQ. Must have Arsenal to edit units (use arsenal on units) - Zeus Restriction's //So the Zeus cant deploy units outside Base, can only give orders outside. Zeus remote control can be acessed when buildt an Radio Tower (use arsenal to research it) Enemy units close in makes Zues unable to place units. - Blacklist for units etc. //Parrameter will be used here. Blacklist units for Faction selected on Parrameter. - Whitelist for units etc.// Parrameter will be used here. Whitelist more than one Faction for a side. - Default Faction on Parrameters // Nato, IAF and AAF. Have RHS mod? Can chose different factions. - Sector system // Make Sector a cash income and sector have guards. - Man pop limit // Make Zeus not able to spawn more than xxx total units, Vehicles and Buildings. All seperate and can edit total in parameters. (buildings have one total limit, Vehicle have one and Units.) - Heal system // In Base run Full heal script every xxx sek to heal etc units. Can use parameters to decide how long time. (This will be best if 1 minute are the mimium limit.) - Repair system // Build a Repair vehicle to start Repair script. Repairs all Vehicle and Structures after xxx sek. (Same as above minium limit 1 minute. Parameter option.) - AI Commanders // This is a LONG shoot. But when and if this is possible than I say thank you! But focus first on MP. - Every Start has same Base spot but Side's can randomly rotate on every new game. - to be cuntiniued... Mod compatible? Yes this mission should have Parrameters that makes you able to decide wich Faction Blufor, Opfor and Independent should be. (RHS mod for an example.) Weapons and items well Yes. There will be possible for some weapons. Depend if make unit's gear free or make some popular weapon mod like NIarms avaible. Work with WW2 mod? Lets just be able to finish Standard first before this point. Like this idea of mission? Now I do not know if this mission can even be built or if Server can handle it without lagg. But lets say it is possible to make this mission, than please leave a like and if you want to help me with this I will really apreciate it!!! I beleave this mission can make arma a new level of experiance. PS! Sorry for bad english! And PM me or add me on steam if interested. Regards!
  21. Hi, I'm actually creating my first replayable mission and for that I need to place hostages in a predefined random position, I've place different trigger with hostages inside, I want to choose one of those and delete all other. Here is the script I made but all hostages are delete when I run it : private _HostPos = [trig01, trig02, trig03] _HostPos deleteAt (random (count _HostPos)); _y = count _HostPos; for "_i" from 0 to _y do { {deleteVehicle _x} forEach allUnits inArea (_HostPos select _i); }; Could you help me ? thanks
  22. Ive been at it for a god 12 hours but i cant get this script yo execute when i start a mission:inGameUISetEventHandler ["Action", " _tk = _this select 0; if (_tk in MGI_tanks) then { if ((_this select 3) == 'GetInDriver' and count crew (_this select 0) > 0) then { _units = crew (_this select 0); if (!isnil MGI_agent) then {_units = _units - [mgi_agent]}; {unassignVehicle _x} forEach _units; _units allowGetIn false; }; if ((_this select 3) in ['GetInGunner','GetInCommander','GetInTurret']) exitWith { hint parseText ('<t>Jump in driver'+""'""+'s seat<t/>'); true }; if ((_this select 3) in ['MoveToGunner','MoveToCommander','MoveToTurret'] && !(player getVariable ['gunning',false])) exitWith { hint parseText ('<t>Only driver'+""'""+'s seat available<t/>'); true }; }; "]; MGI_EHTank = ["MGI_TK","onEachFrame", { _veh = vehicle player; if (!isNil "MGI_agent" && {!(_veh in MGI_tanks) or !(MGI_agent in _veh)}) exitWith { deleteVehicle MGI_agent; MGI_agent = nil; (findDisplay 46) displayRemoveEventHandler ["keyDown",MGI_keysDriving]; MGI_keysDriving = nil; }; if (player == driver _veh and _veh in MGI_tanks) then { {_veh lockTurret [_x,true]} forEach allTurrets _veh; if (cameraView != "external") then {player switchcamera "external"} } else { if (player == gunner _veh && _veh in MGI_tanks && diag_tickTime > MGI_timerTurreting + 10 && (cameraView == "external" && isnil "MGI_signTkDest")) then { player action ["MoveToDriver", _veh]; player setVariable ["gunning",false]; if !(isnil "MGI_agent") then { deleteVehicle MGI_agent; MGI_agent = nil; deleteGroup MGI_agent_Grp; {_veh lockTurret [_x,true]} forEach allTurrets _veh}; }; }; if (isnil "MGI_keysDriving") then { MGI_keysDriving = (findDisplay 46) displayAddEventHandler ["KeyDown", " private _handled = false; if (!isnil 'MGI_agent'&& {if (inputAction _x >0) exitWith {1} } count ['turnLeft','turnRight','moveBack','moveForward','moveFastForward'] >0) then { enableSentences false; [] spawn {uisleep 1; enableSentences true}; }; _handled "]; }; }] call BIS_fnc_addStackedEventHandler; MGI_1ManTank = { if (!hasInterface) exitWith {}; MGI_timerTurreting = 0; MGI_tanks = []; waituntil {!isNull findDisplay 46}; _MGI_mousingGunner = (findDisplay 46) displayAddEventHandler ["mouseMoving",{ _veh = vehicle player; if (_veh in MGI_tanks) then { _veh allowCrewInImmobile true; _veh setUnloadInCombat [true,false]; player setVariable ["gunning",true]; if (gunner _veh != player) then {player action ["MoveToTurret",_veh,[0]]}; MGI_timerTurreting = diag_tickTime; if (isnil "MGI_agent") then { MGI_agent_Grp = createGroup playerSide; MGI_agent = MGI_agent_Grp createunit ["B_Soldier_VR_F", getpos _veh, [], 0, "CAN_COLLIDE"]; MGI_agent moveInDriver _veh; MGI_agent setBehaviour "COMBAT"; MGI_agent setSpeedMode "FULL"; }; }; }]; while {true} do { uisleep 2; { MGI_tanks pushBackUnique _x; _x setVariable ["onetk",true]; } forEach (vehicles select { (_x isKindOf "tank" or _x isKindOf "Wheeled_APC_F" ) && isnil {_x getVariable "onetk"}}); }; }; 0 = [] spawn MGI_1ManTank; One man tank crew script that works, But having a mod with this as a init does not wanna execute, Could someone help
  23. So i have a trigger and in the condition i wrote player in thisList; then i tested it and the trigger wont work even with this simple condition.What is the problem?even if i set to blufor or anybody.I tried with and without mods.Same result.
  24. Hi i have a doubt about a script to move the USS Liberty (static ship)... Are any script guide or something to make it work? Like to free move as a vehicle. I found this on reddit but the publisher said that is works "fine" in SP but in Mp didn't work (I test it and he is right), he said that may be it could be fix doing... that was 2 years ago, someone could tell me how to do that to fix this error? just imagine the possibilities in multiplayer with a movable USS Liberty 😎 . ·Link (reddit post): ·Link (files): https://github.com/Keithenneu/arma_moving_ships
  25. Hello all, and thank you for taking the time. I have been looking around plenty on the forums and on threads about scripts and mods, there are a lot of nice content out there - all similar to what I am looking for to some extent, but not fully. This is why I wanted to create a thread and throw my question out there, as I am looking for something like a script with specific functions; I am making something like a cops and robbers mission for my friends to enjoy on MP and dedicated server, one side will be police and one side will be bad guys. Wondering if there is a script out there that when a police is in close proximity to one of the bad guys, it plays a surrender animation on the bad guy, as if the person has been grabbed and caught after trying to run away or get away from the police! Cheers, saddle