Scripts

How to Setup Sector in Arma 3

put a code in the multiplayer module SECTOR in the expression box
if ((_this select 1) == west) then {(_this select 0) enableSimulation false}

How to Modify END option in Arma 3

class CfgDebriefing
 class End1
 {
  title = "";
  subtitle = "";
  description = "";
  pictureBackground = "";
  picture = "b_inf";
  pictureColor[] = {0.0,0.3,0.6,1};
 };
};

How to use Strategic Map in Arma 3

player setPos (_this select 0);

Helicopter Extraction no buggy stuff

ON ACT code in waypoint - with waypoint LOAD option:
dostop evac; evac land "land"

ON CONDITION of waypoint with option MOVE:
((!alive unit1) or (unit1 in evac)) and ((!alive unit2) or (unit2 in evac))...and so on...for other units.

How to Create Radio Chat in Arma 3

Radiotutorial.sqf - code:
VUman sideRadio "mes1";
Sleep 4;

VUman sideRadio "mes2";
Sleep 4;

tower sideRadio "mes3";
Sleep 4;
ETC...
Description.ext - code:
class CfgRadio
{
  sounds[] = {mes1,mes2,mes3,mes4,mes5,mes6,mes7,mes8,mes9,mes10,mes11,mes12,mes13,mes14};

  class mes1
  {
    name = "mes1";
    sound[] = {"rs\mes1.ogg", db+0, 1.0};
    title = "Stratis Air Base, approach, Buzzer - Alpha 143.";
  };

  class mes2
  {
    name = "mes2";
    sound[] = {"rs\mes2.ogg", db+0, 1.0};
    title = "Stratis Air Base approach, Buzzer - Alpha 143, approximately two six miles southwest, flying at eight thousand feet, inbound for stop and go with information Echo, Over?";

  };

  class mes3
  {
    name = "mes3";
    sound[] = {"rs\mes3.ogg", db+0, 1.0};
    title = "Alpha 143, squawk 3213.";
  };

  class mes4
  {
    name = "mes4";
    sound[] = {"rs\mes4.ogg", db+0, 1.0};
    title = "Alpha 143,copy that. Squawking 3213. Over.";
  };

  class mes5
  {
    name = "mes5";
    sound[] = {"rs\mes5.ogg", db+0, 1.0};
    title = "Alpha 143, radar contact 15 miles east of Stratis Air Base, fly heading 240, expect runway 24.";
  };

  class mes6
  {
    name = "mes6";
    sound[] = {"rs\mes6.ogg", db+0, 1.0};
    title = "Alpha 143, roger that. Heading 240, expect 24.";
  };

  class mes7
  {
    name = "mes7";
    sound[] = {"rs\mes7.ogg", db+0, 1.0};
    title = "Alpha 143, descend at pilot's discretion, enter right base for runway 24.";
  };

  class mes8
  {
    name = "mes8";
    sound[] = {"rs\mes8.ogg", db+0, 1.0};
    title = "Alpha 143, descend pilot's discretion, right base, 24.";
  };

  class mes9
  {
    name = "mes9";
    sound[] = {"rs\mes9.ogg", db+0, 1.0};
    title = "Alpha 143, contact tower on 127.45";
  };

  class mes10
  {
    name = "mes10";
    sound[] = {"rs\mes10.ogg", db+0, 1.0};
    title = "Alpha 143, Copy. Switching to 127.45. Over!";
  };

  class mes11
  {
    name = "mes11";
    sound[] = {"rs\mes11.ogg", db+0, 1.0};
    title = "Stratis tower, this is Buzzer, Alpha 143. Do you copy?";
  };

  class mes12
  {
    name = "mes12";
    sound[] = {"rs\mes12.ogg", db+0, 1.0};
    title = "Alpha 143, we copy you loud and clear. Proceed to land runway 24.";
  };

  class mes13
  {
    name = "mes13";
    sound[] = {"rs\mes13.ogg", db+0, 1.0};
    title = "Roger that Stratis Tower, landind 24. VU man tutorial is over.";
  };

  class mes14
  {
    name = "mes14";
    sound[] = {"rs\mes14.ogg", db+0, 1.0};
    title = "Copy that, Alpha 143, mission accomplished. Over and out!";
  };
};

Arma 3 how to make unit talk with sound

Description.ext - code:
class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {mes1,mes2,mes3,mes4};

// Definition for each sound
class mes1
{
name = "mes1"; // Name for mission editor
sound[] = {\ss\mes1.ogg, 1, 1.0};
titles[] = {};
};

class mes2
{
name = "mes2"; // Name for mission editor
sound[] = {\ss\mes2.ogg, 1, 1.0};
titles[] = {};
};

class mes3
{
name = "mes3"; // Name for mission editor
sound[] = {\ss\mes3.ogg, 1, 1.0};
titles[] = {};
};
};

Random patrol with trigger

Assign a name for that group ( for team leader ) - lets call them "GrpName"
ON ACT field of trigger put this " nul=[group GrpName, position GrpName, 100] call BIS_fnc_taskPatrol; "

Random patrol with waypoint

ON ACT field of waypoint put this code " nul=[group this, position this, 100] call BIS_fnc_taskPatrol; "

Delete Marker

ON ACT field of trigger or waypoint put this code " deleteMarker "marker1" "

Symbol Marker

ON ACT field put this script " bob = createMarker ["marker1", [5025,5903]]; bob setMarkerShape "ICON"; "marker1" setMarkerType "mil_arrow"; "marker1" setMarkerColor "ColorRed"; "marker1" setMarkerDir 90; "marker1" setMarkerText "GO HERE."; "
MARKER TYPES:
 Objective / "mil_objective",  Marker / "mil_marker",  Flag / "mil_flag",  Arrow / "mil_arrow",  Arrow (filled) / "mil_arrow2",  Ambush / "mil_ambush",  Destroy / "mil_destroy",  Start / "mil_start",  End / "mil_end",  Pick Up / "mil_pickup",  Join / "mil_join",  Warning / "mil_warning",  Unknown / "mil_unknown",  Circle / "mil_circle",  Dot / "mil_dot",  Square / "mil_box",  Triangle / "mil_triangle",  Objective / "hd_objective",  Flag / "hd_flag",  Arrow / "hd_arrow",  Ambush / "hd_ambush",  Destroy / "hd_destroy",  Start / "hd_start",  End / "hd_end",  Pick Up / "hd_pickup",  Join / "hd_join",  Warning / "hd_warning",  Unknown / "hd_unknown"

Area Marker

ON ACT field put this script " bob = createMarker ["marker1", [5025,5903]]; bob setMarkerShape "ELLIPSE"; "marker1" setMarkerColor "ColorGreen"; "marker1" setMarkerSize [100, 100]; "marker1" setMarkerBrush "SOLID"; "
MARKER TYPES:
"Solid", "Horizontal", "Vertical", "Grid", "FDiagonal", "BDiagonal", "DiagGrid" and "Cross" 

ON ACT. field of the waypoint put this code " bob sideChat " Hello Arma fans!" "

ON ACT. field put this code " bob sideChat "I need Help!"; message1 = "done" "
Create a seccond unit - in the condition put this code " message1 == "done" "


How to trigger a waypoint by killing a unit?

Create a unit and name him ( bob )
in the condition of trigger put this command " !alive bob "