Search the Community
Showing results for tags 'respawn'.
Found 144 results
-
Hey guys and girls. I want to set up a specific respawn-procedure for my missions and have a few problems I've to solve. What do I want to do? I have several Squads in my mission. Every Squad have a Squadleader and the Squadleader is equipped with a "Camp (Dome Tent, Combat Patrol)" (Item-ID: B_Patrol_Respawn_bag_F) on his back. There is only one fix respawn point for the player they can use for support at Zeus. I want them to spawn at the assembled tent of their Squadleads (if it's possible it can be forced that they only can respawn at the tent of their group but not necessary). The conditions for respawn are: Tent is assembled, else they've to wait they can only spawn in waves every 60 seconds every spawn costs a ticket and if tickets "0" the only way to respawn is at support-respawnpoint at Zeus Players spawn with exactly the inventory they died with After respawning the inventory of their body is cleared Ideally the player will see the normal respawnscreen and there they can chose their respawnpoint and don't respawn automatically. Perhaps I have to drop the information that we're using ACE³-Medical System and if I say "player is dead" then I mean "not revivable" anymore. How do I get all these conditions in a respawn template? I know how to get a few of them but I'm struggelig to combine it.
-
Considering only the World Editor tool, how can I prevent the respawn when one or more players are KIA in a custom mission? Desired: if the player spawns on the mission but during the match they are killed, they must be unable to respawn. Nowadays, my mission game mode and respawn settings are: Still in GameModeSF properties, I DO NEED to keep using the SCR_MenuSpawnLogic to have the briefing and menu deployment available. If I unselect the "Enable Respawn", the player CANNOT even spawn in the mission.
-
mgi scripts AI RESPAWN SCRIPT SP/MP (infantry)
pierremgi posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
AI INFANTRY RESPAWN SP/MP Hi all, Here is a script to allow AIs respawning according to parameters. This works in SP or MP. Only infantry (on foot AI) concerned as far as the killed AIs while in vehicles is the object of a second script. parameters: SIDE(S) / POSITIONS / DELAY / MIN UNITS IN GROUPS / REMAINING LOADOUT Examples: [] spawn MGI_fnc_unitRespawn // [] passed as parameter equals to [ [WEST,EAST,RESISTANCE,CIVILIAN], "start", 10, 144, false] All ai units can respawn on their position at start, after 10 sec delay, with their initial loadout. [ [WEST,EAST], ["mrk1","death","start",""], nil, 3 ] spawn MGI_fnc_unitRespawn // equals to [ [WEST,EAST], ["mrk1","death"], 15, 3, false] here, only WEST & EAST ai units can respawn: - on the marker "mk1" if any, on death position if not, for BLUFOR - on the position of death for OPFOR, (other strings in positions array are useless), 10 second delay (default), if their group headcount is below 3 (delay already started at death), with their initial loadout. Code to be run on server. (trigger, server only, non-repeatable, condition true) or initServer.sqf- 21 replies
-
- 10
-
- ai respawn
- respawn
-
(and 1 more)
Tagged with:
-
choice of equipment How to define classes for respawn.
Dr. Jeff posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
PLEASE I am searching how to respawn with a choice of classes, for example when the player die he can choose one of the multiple classes (Sniper, Rifleman ..) But the problem is that I can't make a choice I have just the sniper... Sorry for my English I am french :/ I hope that my screens are going to better explain my problem ^^ -
Respawn Expressions Issue(s)
EveryEmpireFalls posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello! First | The basic premise of what I am attempting to do is two-fold. A) respawn existing vehicles (of different types - i.e. some jets, some helicopters, some ground vehicles), with the same custom pylons - for the jets/helis - set by the pylon/dynamic loadout editor in 3den. This part works fine thus far (see below). And B) apply unlimited ammo on a delay (i.e. it takes 45 seconds for the ammo to restore) to both the original vehicle and its respawned clone. The main trouble I am having is getting unlimited ammo to work with the new, respawned vehicles. Second | A code dump and summary of what is where: The code below is my unlimited ammo expression in the existing F/A-181 (and other vehicles). Ideally, the missiles & bombs refresh on a delay, hence the {sleep 45} segment. This part works perfectly for my purposes. this addEventHandler ["Fired",{[_this select 0,getNumber (configFile/"CfgAmmo"/(_this select 4)/"explosive")] spawn {if (_this select 1==1) then {sleep 45};_this select 0 setVehicleAmmo 1}}]; This code is present in the expression of a Game Logic and synced to all relevant air vehicles. It works perfectly for my purposes; no errors and functions as intended. [this] call { if (!isServer) exitWith {}; params ["_thisObject"]; _vehs = synchronizedObjects _thisObject; _initScript = { params ["_vehicle", ["_pylons", "none"]]; if (typeName _pylons == typeName []) then { private _pylonPaths = (configProperties [configFile >> "CfgVehicles" >> typeOf _vehicle >> "Components" >> "TransportPylonsComponent" >> "Pylons", "isClass _x"]) apply { getArray (_x >> "turret") }; { _vehicle removeWeaponGlobal getText (configFile >> "CfgMagazines" >> _x >> "pylonWeapon") } forEach getPylonMagazines _vehicle; { _vehicle setPylonLoadout [_forEachIndex + 1, _x, true, _pylonPaths select _forEachIndex] } forEach _pylons; }; }; { [_x] call _initScript; } forEach _vehs; [_vehs, _initScript] spawn { params ["_vehs", "_initScript"]; sleep 1; _respawnlist = []; { _respawnlist = _respawnlist + [[_x, position _x, [vectorDir _x, vectorUp _x], getPylonMagazines _x]] } forEach _vehs; while { true } do { sleep 1; { _veh = _x # 0; _respawnpos = _x # 1; _playerdistance = 200; { if (_veh distance _x < _playerdistance) then { _playerdistance = _veh distance _x }; } forEach allPlayers; if (!alive _veh || (_veh distance _respawnpos > 20 && _playerdistance > 20)) then { _vehType = typeOf _veh; [_veh, _respawnlist] spawn { params ["_veh", "_respawnlist"]; deleteVehicleCrew _veh; _veh lock true; _inSpawn = false; waitUntil { sleep 0.5; _inSpawn = false; { _respawnpos = _x # 1; if ((_veh distance _respawnpos) < 30) exitWith { _inSpawn = true; }; } forEach _respawnlist; _inSpawn || ((speed _veh == 0) && (isTouchingGround _veh)); }; if (!_inSpawn) then { sleep 30 }; deleteVehicle _veh; }; sleep 10; _newveh = _vehType createVehicle _respawnpos; _newveh setPos _respawnpos; _newveh setVectorDirAndUp (_x # 2);[_newveh, _x # 3] call _initScript; _respawnlist set [_forEachIndex, [_newveh, _respawnpos, _x # 2, _x # 3]]; }; } forEach _respawnlist; }; }; }; This is the current code present in the "System Specific - Vehicle Respawn" Module expression (not its Init). It does not work at all. params ["_newVeh", "_oldVeh"]; [_newVeh addEventHandler ["Fired", { [_newVeh select 0, getNumber (configFile/"CfgAmmo"/(_newVeh select 4)/"explosive")] spawn { if (_newVeh select 1 >= 0) then { sleep 5 }; _newVeh select 0 setVehicleAmmo 1 } }]] call BIS_fnc_initVehicle; The Vehicle Respawn Module: It throws the no errors upon mission launch and no errors upon vehicle respawn. My friends and I suspect it is not even executing properly. Here are a few screencaps of the 3den editor of the scene in question if it helps you: // Overview of the whole airfield. The Vehicle Respawn Module on the Right by the center of the airfiled is exlusively linked to ground vehicles. It respawns the vehicles fine but without the unlimited ammo. // The test F/A-181. // The Game Logic. // My two primary test subjects (Left is experimental; Right is the control). As you can see, the left F/A-181 is the primary test subject for the Vehicle Respawn Module, as it is synced to both the Vehicle Respawn and the Game Logic. The right F/A-181 (and all other air vehicles) is synced only to the Game Logic. Both jets initially spawn with the proper pylons/dynamic loadouts and unlimited ammo, as expected vis-a-vis the 3den editor settings. Both jets respawn with the proper pylons/dynamic loadouts. Neither jet respawns with unlimited ammo, currently. I feel close to solving this, but I am blind to what I am missing/adding unnecessarily. I have tried numerous other variations with even less luck. I am sure there is some redundancy between the Vehicle Respawn Module and the game logic, and I would appreciate any simplifications there. However, that is a secondary concern. Thanks for reading this far! Hopefully, you can help me and anyone else who wants to do this. -
mgi scripts NO MORE SINGLE DEATH (SP/MP) - AUTO-REVIVE
pierremgi posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
NO MORE SINGLE DEATH (SP/MP) - PLAYER CAN AUTO-REVIVE Hi all, Did you play some "ESCAPE MALDEN" in MP while single player and get the frustration of "lost mission on death"? Sure, you're alone and nobody will revive you. Respawn kills you and the game is over! Same for some SP session of complex mission. If you don't have the switch units possibility, game is over at first death. The script overrides this fate. Just choose (or not) the two parameters set at the first line. parameters: REVIVE DELAY / CLEAR AREA Revive delay: Simply change the first value in first line. This value is also a delay for captive status. i hard-coded a minimum: (min set to 20 sec. for cinematic if MP revive allowed, 10 sec. min if not). Clear area: the enemy infantry will be killed within this radius. That's useful for reviving inside a hornet's nest. Can be set to 0. Recommended value: 20 m. Usage: Copy/ paste the code in one of these places: running script for player(s) / trigger set to true / init.sqf / initPlayerLocal.sqf / console Example, for ESCAPE MALDEN, enable debug console in parameters and copy /paste the code, exec local. NOTES: - in MP, this script will work as long as there is an unique player. If some JIP, the script will be stopped. - Not compatible with other damage event handlers. If you want, you can try to make it work along with some other damage EHs, just removing the 6th line: player removeAllEventHandlers "handleDamage"; [5,50] call { params [["_delay",20,[0]],["_clear",0,[0]]]; if (count (call bis_fnc_listPlayers) != 1) exitwith {}; MGI_ReviveDelay = [_delay max 10,_delay max 20] select (player call BIS_fnc_reviveEnabled); MGI_clearArea = _clear; player removeAllEventHandlers "handleDamage"; MGI_fn_revive = compileFinal " params ['_unit']; waituntil {lifeState _unit == 'incapacitated' or !alive _unit or (!(_unit call BIS_fnc_reviveEnabled) && damage _unit >=0.86)}; if (!(_unit call BIS_fnc_reviveEnabled)) then { _unit setUnconscious true }; if (lifeState _unit == 'incapacitated') then { _unit setCaptive true; _unit allowdamage false; _unit setVariable ['inc',false]; {_x setDamage 1} forEach (( _unit nearEntities ['CAManBase', MGI_clearArea]) select {side _x getFriend playerSide < 0.6 && side _x != civilian}) - [_unit]; uisleep 3; _unit allowDamage true; if (_unit call BIS_fnc_reviveEnabled) then { ['#rev',1,_unit] call BIS_fnc_reviveOnState; _unit setCaptive true; _unit allowdamage false; } else { _unit setDamage 0; _unit setUnconscious false; }; }; uiSleep MGI_reviveDelay; _unit allowdamage true; _unit setCaptive false; "; player addEventHandler ["handleDamage", { params ["_unit","","_dam"]; if (count allplayers !=1) exitWith { player removeEventHandler ["handleDamage",_thiseventHandler] }; _veh = objectParent _unit; if (!isnull _veh && isNil {_veh getVariable ["incVeh",nil]} && (damage _veh > 0.7 or (!canfire _veh && !canMove _veh) or _dam > 0.3)) then { _veh setVariable ["incVeh",true]; _unit allowdamage false; _unit setCaptive true; [_unit,_veh] spawn { params ["_unit","_veh"]; _unit action ["GetOut", _veh]; _tim = diag_tickTime; waitUntil {isnull objectParent _unit or diag_tickTime > _tim + 3}; uiSleep 2; _veh setVariable ["incVeh",nil]; _unit allowdamage true; _unit setCaptive false; }; }; if (!(_unit getVariable ["inc",false]) && isNull objectParent _unit) then { _unit setVariable ["inc",true]; _unit spawn MGI_fn_revive; }; _dam min 0.86 }]; }; Enjoy! -
We serious need a rework in the respawn system of the antennas. Its insane how 5 seconds after you kill a enemy while raiding a enemy base, he spawns again behind you, the same person you just killed and kill you. Theres no how you cap any major enemy base with less than 4 people playing together, i really apreciate teamwork but not every match we jump in aways has communicative teammates that are necessary to cap the bases.
- 1 reply
-
- conflict
- multiplayer
-
(and 2 more)
Tagged with:
-
I am trying to move respawn marker (called "respawn_east") on random position on the map. It does not move anywhere no matter what I try. private _rpos = [] call BIS_fnc_randomPos; _rpos = _rpos resize 1; "respawn_east" setMarkerPos _rpos; This does not work at all, no errors ...
-
Hey all. Perhaps you can help me with a problem. I've used the setObjectTexture command to great success on vehicles placed in EDEN, placing them and then putting something like setObjectTexture [0, "textures\police_heli.paa"]; in their init field. Bingo, the (in this case) helicopter is there, and it is wearing it's appropriate skin/texture. The problem is respawning. When the vehicle is destroyed, it respawns just fine (I am using the BIS respawn module in EDEN, linked to the vehicle in question). The problem is, that when the vehicle respawns, it respawns with a random skin/texture. Sometimes it's black, sometimes it's tiger-stripe, etc. I've searched the forums and google to no avail to try to fix this. All I want, is for when the vehicle is respawned, to have the same (custom) textures it started with.
-
Hey, so I've got a question regarding the setting up of multiplayer spawns *on* static ships in ARMA 3. No matter what I do, I am unable to successfully spawn onto a static ship, such as in the hangar bay of a destroyer, or on the flight deck of a carrier. Is there some secret Bohemian sorcery that I simply don't know that makes it work, because there's absolutely zero material out there on this matter and it's beginning to get frustrating.
-
Make AI respawn at a specific respawn point
Spartan1804 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm basically looking for a way to make members of a squad respawn at a specific respawn position when there is more than 1 respawn point for the team. Let's say I have 3 respawn points or respawn modules for the BLUFOR team and I want my 1st and 2nd AI squads to only respawn at "respawn_west" (so at the first respawn point). How do I make this possible? I tried to sinc the AI squads to a respawn module, but it didn't work as intended. So I thought that there might be a script that makes the AI squad do that, but I have no idea how I can implement that. I'm fearly new to scripting and I know very little on how to make scripts. Does anyone have an idea on what I can do? -
Issue regarding Spawn on Custom Position
saddle posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello there, as the title says, when I am adding a Spawn on Custom Position to my mission, an error shows up that I have never encountered before and I have done a lot of mission making in this game. I have done this so many times without any issue, so I am a bit confused why this happens all of a sudden and have not managed to find any solutions on the web yet. I get stuck on the spawn/map screen without any interface to choose spawns, and this error keeps spamming; [_list] call BIS_fnc_showRespawnMenuPosit> 10:24:45 Error position: <_list] call BIS_fnc_showRespawnMenuPosit> 10:24:45 Error Undefined variable in expression: _list 10:24:45 File /temp/bin/A3/Functions_F/Respawn/fn_showRespawnMenuPosition.sqf..., line 41 10:24:45 Error in expression <_textDisabled]} else {_textDefault}; _ctrlCounter ctrlShow false; _ctrlCou> 10:24:45 Error position: <_ctrlCounter ctrlShow false; _ctrlCou> 10:24:45 Error Undefined variable in expression: _ctrlcounter 10:24:45 File /temp/bin/A3/Functions_F/Respawn/fn_showRespawnMenuHeader.sqf..., line 145 10:24:45 Error in expression <_textDisabled]} else {_textDefault}; _ctrlCounter ctrlShow false; _ctrlCou> 10:24:45 Error position: <_ctrlCounter ctrlShow false; _ctrlCou> 10:24:45 Error Undefined variable in expression: _ctrlcounter 10:24:45 File /temp/bin/A3/Functions_F/Respawn/fn_showRespawnMenuHeader.sqf..., line 145 10:24:45 Error in expression < _maxRespawnTickets ]; } else { _ctrlTickets ctrlsetstructuredtext parse> 10:24:45 Error position: <_ctrlTickets ctrlsetstructuredtext parse> 10:24:45 Error Undefined variable in expression: _ctrltickets 10:24:45 File /temp/bin/A3/Functions_F/Respawn/fn_showRespawnMenuHeader.sqf..., line 75 10:24:45 Error in expression < ["%1/%2",_livingCount,_playersCount]; _ctrlTeam ctrlSetText _playersText; Any tip or feedback greatly appreciated -
Hey Ho, I am creating a pvp mission where you can capture different bases. In those Bases are some AAF Statics which will join either BLUFOR or OPFOR once you activated a trigger. Let´s say BLUEFOR captured the Base and all AAF-statics joined BLUEFOR, when CSAT now attackes the Base and destroies those statics they will respawn as INDEPENDENT again, but I want them to spawn as BLUEFOR since the Base is captured by BLUEFOR. Sorry for this complicated and very confusing explanation ^^ To break it down to one Question: Is there a command to enter in the respawn module to let the vehicle respawn with the same side (BLUEFOR, OPFOR, INDEPENDED) which it had at the moment of destruction? :)
-
https://github.com/HAPPY3N1GMA/Enigma_Exile_Revive
-
[MP] HazardZone (Compete with other players in an area with great biological threat)
sekurlsa posted a topic in ARMA 3 - USER MISSIONS
Intro: HazardZone is a 16vs16 game mode where opposing forces have to face each other during a biological threat from space. There are several crashed objects on Livonia from which samples need to be secured, and the side with most secured samples wins the day. The samples are located in the so-called Hazard Zones, and anyone without CBRN gear will not survive there. Each side has a team of 4 CBRN specialists (only 1 team per side) which will need to secure the samples, to support the limited number of CBRN units, 3 other teams of standard combat units are deployed. These support units need to fend off enemy forces and provide secure passage to the crash site for the CBRN units, but CBRN units need to deal with any enemy forces inside the Hazard Zones on their own. To further aid the mission, artillery & transport troops are deployed, but a radio tower needs to be secured to amplify the signal for communication of ground troops with HQ, since the strong EMF of the crashed objects is interfering with the communication and makes it impossible. Features: CBRN Gas Mask overlay & sounds Custom Game Mode Custom scoring logic Virtual Arsenal crate Player & Vehicle Respawns Hazard Zones in which only players with proper gear are safe. 5 km. of playable area Changes in V2 of HazardZone: Objectives are no longer completed by simply interacting with the objective: Players will receive a container (attached to the torso of the player) when a sample is collected. As a final step to complete the objective, players have to extract the sample/s by securing them inside a special storage box located inside base's decontamination tent. Upon completion of these steps the side of the player will be awarded with points Players will be able to pick up the sample containers from their buddies or dead soldiers A player may carry multiple sample containers To make the gamemode more interesting, tasks will now be updated with the location of the player which is holding the sample until it is extracted. This will allow opposite force to recapture the objective from the enemy. Task descriptions are updated according to the player and side who have captured a sample. i.e. "Attack" or "Defend" depending on which side you are and which side captured the sample. Task icons are updated when sample is collected according to the player and side who captured a sample, i.e. "Attack" or "Defend" depending on which side you are and which side captured the sample. Message are now displayed to screen updating players who captured the sample. Tons of small changes to accommodate the new gamemode logic Notes: Raw mission included so you can edit/modify according to your needs (If you give me credit it will be appreciated) No additional content is required (mods or otherwise) except ARMA 3 - Contact Platform Credits: Credits to bohemia forums and ARMA community for all the awesome script examples and tutorials. Credits to Chuc for the script used for the radiation/hazard areas: Credits to RCA3, the gamemode at its current form wouldn't be possible without their help! Download: steam: https://steamcommunity.com/sharedfiles/filedetails/?id=2781568799 gdrive: https://drive.google.com/file/d/10YpgBVIl64OJL2mIy7T1kAsPnn_d_yi2/view?usp=sharing ^ Password for the archive is "original" -
Good day, I am having trouble with getUnitLoadout and setUnitLoadout functions. I want to make it so that when players respawn, they have the same loadout like they did before they died/respawned. But in some cases it removes the primary and secondary weapons. I am using the code below: //In onPlayerKilled.sqf I have: player setVariable ["Saved_Loadout",getUnitLoadout player]; //In onPlayerRespawn.sqf I have: player setUnitLoadout (player getVariable ["Saved_Loadout",[]]); It works when players respawn through the menu. But the problem is when they are shot and go into the incapacitated animation (I have revive enabled). I assume that when you go into the incapacitated state you lose your weapons, and then it saves your loadout when you "Hold space" to respawn. So technically you did not have a weapon when the script saved your loadout. I was thinking that the "getUnitLoadout" function should be triggered just before you go into the incapacitated state, but I am not sure how to do that. Maybe check if the player's health is below 10%? Any help would be appreciated. -MrSydney
- 4 replies
-
- setunitloadout
- getunitloadout
-
(and 3 more)
Tagged with:
-
[MP Compatbile] Gas Mask/Helmet Overlay.
sekurlsa posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Greetings Community, I needed a gas mask overlay script for a MP mission I'm making. Unfortunately, I couldn't find anything that works across respawns... so I modified the overlay part of the script made by ALIAS - "Radiation - DEMO", after heavy modification the overlay is now MP compatible. There are currently some issues, which I hope I can resolve in near future: * Gas mask overlay will remain after respawn until the player equips and then unequips the "Gas mask" * For some reason the script doesn't work with the "Contact DLC" gas masks. It actually works. It appears the unit (cbrn_specialist) spawns with "G_AirPurifyingRespirator_01_nofilter_F" and later respawns with "G_AirPurifyingRespirator_01_F", keep that in mind. Feel free to contribute, I'm stuck as it is. I'll provide further updates in the github repository Enjoy! Modified multiplayer compatible overlay script. https://github.com/SubXi/arma3-2d-mask-overlay Original script: https://steamcommunity.com/sharedfiles/filedetails/?id=909790601 -
collision [SOLVED] Vehicle spawn (collision issues)
thy_ posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello there, I am facing some challenges to implement the findEmptyPosition and avoid collision among vehicles those spawn in the same spot. Some help to fix it will be very much appreciated. Here below is my code working pretty fine, except for the collisions in some rounds. If you prefer, here is for download: https://drive.google.com/file/d/1NIdU2pLEjl41M3Vlc0dVANRvuK3PFCqd/view?usp=sharing // SIDE SPAWNS // Spawnpoints for each faction. Only the specific faction can spawn. _bluAllSpawns = ["bluSpawn01","bluSpawn02","bluSpawn03","bluSpawn04","bluSpawn05","bluSpawn06"]; _opAllSpawns = ["opSpawn01","opSpawn02","opSpawn03","opSpawn04","opSpawn05","opSpawn06"]; _indAllSpawns = ["indSpawn01","indSpawn02","indSpawn03","indSpawn04","indSpawn05","indSpawn06"]; // ................................................................................................................................................ // SHARED DESTINY // Waypoints where any faction can go. _goToSharedDestiny = ["destinoComum01","destinoComum02","destinoComum03","destinoComum04"]; // SIDE DESTINY // Waypoints where only the specific faction can go. _goToDestinyBlu = ["destinoBlu01","destinoBlu02"]; _goToDestinyOp = ["destinoOp01","destinoOp02"]; _goToDestinyInd = ["destinoInd01","destinoInd02"]; // ANY DESTINY // Use _goToAnywhere for the group to consider going to both shared destinations and those of all factions. _goToAnywhere = _goToSharedDestiny + _goToDestinyBlu + _goToDestinyOp + _goToDestinyInd; // ................................................................................................................................................ // BLUFOR GROUPS // Number of soldiers and type of faction squads. _bluSquadLight = ["B_Soldier_TL_F", "B_soldier_AR_F"]; _bluSquadRegular = ["B_Soldier_TL_F", "B_soldier_AR_F", "B_soldier_AR_F", "B_soldier_AR_F"]; _bluSquadHeavy = ["B_Soldier_TL_F", "B_soldier_AR_F", "B_soldier_AR_F", "B_soldier_AR_F", "B_soldier_AR_F", "B_soldier_AR_F"]; _bluVehLight = ["B_Quadbike_01_F"]; _bluVehRegular = ["B_MRAP_01_hmg_F"]; _bluVehHeavy = ["B_MBT_01_cannon_F"]; // OPFOR GROUPS // Number of soldiers and type of faction squads. _opSquadLight = ["O_Soldier_TL_F", "O_soldier_AR_F"]; _opSquadRegular = ["O_Soldier_TL_F", "O_soldier_AR_F", "O_soldier_AR_F", "O_soldier_AR_F"]; _opSquadHeavy = ["O_Soldier_TL_F", "O_soldier_AR_F", "O_soldier_AR_F", "O_soldier_AR_F", "O_soldier_AR_F", "O_soldier_AR_F"]; _opVehLight = ["O_Quadbike_01_F"]; _opVehRegular = ["O_MRAP_02_hmg_F"]; _opVehHeavy = ["O_MBT_02_cannon_F"]; // INDEPENDENT GROUPS // Number of soldiers and type of faction squads. _indSquadLight = ["I_Soldier_TL_F", "I_Soldier_AR_F"]; _indSquadRegular = ["I_Soldier_TL_F", "I_Soldier_AR_F", "I_Soldier_AR_F", "I_Soldier_AR_F"]; _indSquadHeavy = ["I_Soldier_TL_F", "I_Soldier_AR_F", "I_Soldier_AR_F", "I_Soldier_AR_F", "I_Soldier_AR_F", "I_Soldier_AR_F"]; _indVehLight = ["I_Quadbike_01_F"]; _indVehRegular = ["I_MRAP_03_hmg_F"]; _indVehHeavy = ["I_MBT_03_cannon_F"]; // ................................................................................................................................................ // BLUFOR STRATEGY // All faction groups and destinations. _bluGroup01 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluSquadLight,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _bluGroup01 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _bluGroup02 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluSquadLight,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _bluGroup02 addWaypoint [getmarkerpos (selectRandom _goToDestinyBlu), 0]; _bluGroup03 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluSquadRegular,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _bluGroup03 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _bluGroup03 addWaypoint [getmarkerpos (selectRandom _goToDestinyBlu), 1]; _bluGroup04 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluSquadHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _bluGroup04 addWaypoint [getmarkerpos (selectRandom _goToAnywhere), 0]; _bluGroup04 addWaypoint [getmarkerpos (selectRandom _goToAnywhere), 1]; _bluGroup05 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluVehHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; //This one will hold position (no waypoint). _bluGroup06 = [getmarkerpos (selectRandom _bluAllSpawns), BLUFOR, _bluVehHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _bluGroup06 addWaypoint [getmarkerpos (selectRandom _goToDestinyBlu), 0]; // ................................................................................................................................................ // OPFOR STRATEGY // All faction groups and destinations. _opGroup01 = [getmarkerpos (selectRandom _opAllSpawns), OPFOR, _opSquadLight,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _opGroup01 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _opGroup02 = [getmarkerpos (selectRandom _opAllSpawns), OPFOR, _opSquadRegular,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _opGroup02 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _opGroup02 addWaypoint [getmarkerpos (selectRandom _goToDestinyOp), 1]; _opGroup03 = [getmarkerpos (selectRandom _opAllSpawns), OPFOR, _opSquadHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _opGroup03 addWaypoint [getmarkerpos (selectRandom _goToDestinyOp), 0]; // ................................................................................................................................................ // INDEPENDENT STRATEGY // All faction groups and destinations. _indGroup01 = [getmarkerpos (selectRandom _indAllSpawns), INDEPENDENT, _indSquadLight,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _indGroup01 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _indGroup02 = [getmarkerpos (selectRandom _indAllSpawns), INDEPENDENT, _indSquadRegular,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _indGroup02 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 0]; _indGroup02 addWaypoint [getmarkerpos (selectRandom _goToDestinyInd), 1]; _indGroup02 addWaypoint [getmarkerpos (selectRandom _goToDestinyInd), 2]; _indGroup02 addWaypoint [getmarkerpos (selectRandom _goToSharedDestiny), 3]; _indGroup03 = [getmarkerpos (selectRandom _indAllSpawns), INDEPENDENT, _indSquadHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _indGroup03 addWaypoint [getmarkerpos (selectRandom _goToDestinyInd), 0]; _indGroup04 = [getmarkerpos (selectRandom _indAllSpawns), INDEPENDENT, _indVehHeavy,[],[],[],[],[],180] call BIS_fnc_spawnGroup; _indGroup04 addWaypoint [getmarkerpos (selectRandom _goToDestinyInd), 0]; -
When I put the arsenal call function in the init field of a vehicle (a truck for example), the arsenal functions normally... ...up until the point where the vehicle is destroyed. Is there a way I can be able to have the arsenal script automatically placed onto the example truck after it is destroyed and respawns?
-
Does anybody know the IDD to close the respawnmenu? Or the Dialog if it is one? (Its the "MenuPosition" Template for Base Respawn). So i can close it and open it later? https://1drv.ms/u/s!Al2S9lOz4k52hllbsOCzE8e_Q5hj
-
Respawn template MenuPosition delay?
Flightcaptain93 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Is it possible that a dead player can spectate his body in 3rdperson and after one minute or the respawn delay time the respawn template "Menu Position" is activated? At the moment the menu position template is activated at the moment the player dies. -
I got "Base" Respawn enabled with map selection. It works. I have two markers one named "respawn_west" and one is named "respawn_UNITNAME" The unit I want to have both respawns accessible is named UNITNAME. When I respawn i only can choose the point at respawn west. If i change the name from respawn_UNITNAME to respawn_west2 it works fine. but i want that one position only for that unit available. Can someone help me pls. http://killzonekid.com/arma-scripting-tutorials-respawn-on-marker/
-
Persistent save/load and respawn (PAID)
Thomas Banks posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, this is going to be fairly long-winded with no tldr and is an extremely large project, at least for me. There's a lot of "I would like" in this post, I'm not a supercilious person I'm just unsure how else to word things. I'm making a scenario to run with my mates whenever we feel like it, usually 8 hours or so every second night, I have a dedicated machine I run the server from but I don't like leaving it on 24/7. I have maybe 200 hours basic scenario creation experience and the scenario itself is a big passion project for me, the basic issues I run into are a nice thing to sort out, the scripting issues or more so lack of scripts are stopping my ideas. I have a few problems which naturally snowballed into more what-ifs and issues. I haven't delved into scripts at all, just basic commands in triggers and game logic, improving along the way. I have very minor coding experience, 2 University courses worth and a lot of this is way above my head so I'm reaching out for help, I'm hoping people will help out of the kindness of their heart but I know time is money and there are a lot of issues, so if it is allowed I'm willing to pay privately with details also discussed privately. I'd hire a private programmer but much of the arma3 context would be lost which is important. Persistent saving/loading: The scenario is essentially a campaign completing tasks as we see fit to retake land and reach an ultimate goal, which I'm undecided on. I'd like essentially all vehicles, player loadouts, player positions, gear in 'crates' and a virtual arsenal we can load with gear from missions, to save upon server shutdown and load upon server start-up. I've looked at a few mods that promise some of these things but they all require player intervention or won't work with custom scenarios, I want an automated system from the moment we first join the server to the moment the campaign finishes. The virtual arsenal is a problem on it's own as I have no clue how to create something that saves gear, much like the antistasi community have made. The other things I know exist because there are multiplayer servers with these features but I'd have no clue how to go about setting it up properly. Problems with the start of the mission: The mission starts with no respawn and 6 playable characters in a boat, spectator enabled, with respawnOnStart -1 and respawn as BASE. Once the first objective is complete the respawn enables (lore critical). Disabling spectator mode isn't an option as people just respawn on their dead bodies, plus I'd rather people have something to do after they die in the first section of the scenario. The mission plays out how I want it to with AI disabled and all players connected when I launch the mission (not using autoinit) however there are other issues. With AI Disabled, players that hotjoin once the mission has started spawn where the playable characters are placed, rather than as a spectator until the respawn is enabled, which I want to fix. Furthermore if players die and rejoin they spawn in the initial playable character spot, out in the ocean, 2km from land, even if they have already died as that character. In my experience not using respawnOnStart -1 results in everyone being a spectator when the mission starts, so I assume 'running the respawn script' once the mission has started would fix this since players that join would be spectators due to being forced to respawn on joining, but I'm not sure how to do that. I also suspect this would cause more issues with further questions about persistent saving and loading. With AI Enabled, players that hotjoin once the mission has started replace the AI, which is fine for something temporary, but the issue is I don't want to run the mission with AI Enabled on the playable characters. Again much like with AI Disabled with an added bonus, upon leaving the server an AI spawns on the playable characters initial position and then once the player joins they take control of it, even if they have already died. I haven't tested with autoinit but I presume they would spawn in the boat if taking control of an AI with AI enabled, otherwise in the water underneath the boat with AI disabled. The same issues with leaving and rejoining would likely occur in either case. I realise this is a complex issue once taking into account persistent saving and loading and will involve a custom respawn script, but I'm not even sure where i'd begin myself. What I would like to work up to: I would like to have the initial 5 minutes of server start to be the editor placed player positions from the roles selected, even if the boat has moved (which i'm not sure is possible and open to alternatives) as people may take longer to load. Further respawns and hotjoins should be spectator up until the point the respawn is enabled, spectator should then disable, then a custom loadout be the default respawn loadout and the respawn point be a selectable spawn after death, it must be selectable since we'll have more respawns enabled as the campaign continues. After the initial respawn is enabled any players positions and gear are saved and loaded on player disconnect and reconnect respectively, along with their gear. When the server is shutdown I would like the mission file to save and overwrite (completing missions triggers deletion of clutter not needed anymore), vehicles to save where they are, in their current health/fuel state with current 'gear', containers with 'gear' to do the same. I would also like to have a virtual arsenal as mentioned before that takes in gear and saves it much like antistasi does only with no 'unlock' feature, just what is put in. On server startup I would like all of this to load in and continue from where it was saved. If you're interested in helping me out please send me a message, any comments that can help are welcome. -
[Question] Custom Respawn Loadout Roles
hoizen posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey all, In the last update (1.60) that introduced some new respawn menu features, I have my own respawn loadout role defined. However, there seems to be a default "rifleman" role that's always there which I can't figure out how to get rid of. The wiki states: "Mission designer can use roles already created in the game config, or custom roles can be defined in description.ext file." https://community.bistudio.com/wiki/Arma_3_Respawn:_New_Respawn_Screen But it does not describe how to use only custom and not pre-existing roles. Image below: My custom role that I want is "Insurgents". The role that won't go away is "rifleman" Thanks for any help. -
Hello everybody, I wanted to share a small mission i did for the fun of it. Nothing spectacular, a coop mission for up to 4 players. story: A coalition including Russia just invaded Agia Marina surprising the blufor military presence. A Russian satellite made pictures of a blufor convoy moving to reinforce a position west of the stratis Air station. A team of four russian soldiers from the special forces are ordered to stop this convoy thanks to a blufor captured hummingbird: 1 Fly to the Air station and kill all blufor soldiers there 2 Plant bombs on the road nearby and destroy part of the convoy (the two tanks and the fuel truck) 3 Escape and extract by a waiting chopper north-east of the Air station. credits: BangaBob, JohnnyBoy, Genesis92x, Moerderhoschi, Feuerex, RueLight, White Raven, Pumpkin (jackfrench) and all persons who i forget sharing their time and passion Thanks to Flav for the music he made. (Thanks also to the armaholic site.) (Any review and advice would be helpful 😃, it's only my third mission) Revive & respawn (in the ai mates) no mod needed co04ElementOfSurprise V1 https://mega.nz/file/NRhkVKTQ#9C-T_b_IOM1pbJI7PLCUej0qcR4FcALN-Xej_DoqdIk https://steamcommunity.com/sharedfiles/filedetails/?id=2564145256