-
Content Count
6 -
Joined
-
Last visited
-
Medals
Community Reputation
2 NeutralAbout Dyeg0
-
Rank
Rookie
Profile Information
-
Gender
Male
-
Location
NYC
-
Interests
ArmA3, Hiking
Contact Methods
-
Biography
Teacher, ArmA3 player, Mission editor
-
Youtube
https://www.youtube.com/channel/UCFvG3z6EgjRQ9nKTgDpzdRA?view_as=subscriber
-
Twitch.Tv
https://www.twitch.tv/sfod_a125
Recent Profile Visitors
636 profile views
-
AI Unit join Player, within Distance
Dyeg0 replied to Dyeg0's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Exactly what I meant. TY.- 8 replies
-
- 1
-
- ai players
- bot
-
(and 5 more)
Tagged with:
-
Because I already tried other formats. It works well in SP, but not in MP. Originally, it was: player == JTAC (name of specific player). Also, before, it was in an initPlayerLocal (as MIL_SPEC had suggested up here), so I thought that this would work fine executed on initPlayerServer. I'm just trying to get it to work in MP, that's all.
-
Dyeg0 started following [Release] MIL_CAS, AI begin mission with weapons holstered and AI Unit join Player, within Distance
-
AI begin mission with weapons holstered
Dyeg0 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Has each single ai unit (individual) begin the mission with their weapons holstered. This will cause the ai to unholster their guns when they detect hostiles within their vicinity. Object: Init Init: this removeWeapon (primaryWeapon this); null = [this] spawn {_unit = (_this select 0); sleep 1; _unit action ['SwitchWeapon', _unit, _unit, 100];}; Picture -
cool little script to make ai units join you in-game: Place your player on the map Place as many AI units you desire Name each the AI unit a specific Variable Name. Example: AIsoldier_1, AIsoldier_2, AIsoldier_3, etc. The Variable Name should be unique and placed in each ai attribute (under Variable Name) Place a no space trigger under "Trigger: Expression" Condition: player distance AIsoldier_1 <2 On Activation: [AIsoldier_1] join player; You will have to walk up to the ai unit (within 2 meters according to this script) to have it join your squad. Picture
- 8 replies
-
- 1
-
- ai players
- bot
-
(and 5 more)
Tagged with:
-
Dyeg0 changed their profile photo
-
How did you do that? I'm trying to get this to work in Multiplayer, but getting nowhere so far. This is what I have at the moment: (calls gun run followed by a playsound3D and a 180 second cooldown with the hint to player to wait for the cooldown. works very well in singlepayer though) initPlayerServer.sqf if (playerunit == JTAC) then { _id = playerunit addAction [ "<t color='#FF0000'>Call for Gun Run</t>", { params ["_target","","_id"]; if (diag_tickTime < (uiNamespace getVariable ['tag_cooldown',-1])) exitWith { hint (format ['CAS Pilots are busy doing runs. Please wait %1 more seconds.',(round ((uiNamespace getVariable ['tag_cooldown',-1]) -diag_tickTime))]);}; _cooldown = 180; uiNamespace setVariable ['tag_cooldown',(diag_tickTime + _cooldown)]; nul = [screenToWorld [0.5,0.5],200,"B_Plane_CAS_01_F",0] execVM "MIL_CAS.sqf"; _soundPath = [(str missionConfigFile), 0, -15] call BIS_fnc_trimString; _soundToPlay = _soundPath + "sounds\radio4guns.ogg"; playSound3D [_soundToPlay,soundSource]; }, nil, 0, true, true, "", "alive _target", -1, false ]; };