Alien Entity Behavior – Arma 3
The small Alien Entity (AE - referred to as Drone in technical systems) is used by ET for surveillance, reconnaissance, research, and defense as needed. It is made from unknown and supremely tough materials. The entity has local control of gravity, and it moves in pulses. It can collect and utilize almost any type of matter from the local environment. The AE appears to communicate on the broad electromagnetic spectrum.
Around its central solid hull, the entity can hold one or more modules in its orbit. These do not themselves have propulsion, so they cannot move out of the entity's sphere of influence. Various types of module exist:
- Scan Module: used to inspect nearby objects and materials
- Gravity Tool Module: used to process and launch collected matter in two lethal modes:
- Matter Shot: a precise single shot of matter
- Matter Burst: a multi-round burst of matter
- Matter: used to store collected matter as a resource
- If it runs out, the entity will collect more from any surface
- If it gets dislodged from its orbit, it will fall to the ground and decay (there is some danger to those who get close)
The entity also features several countermeasures:
- Anti-Projectile System: this can 'catch' and re-direct various slower speed projectiles (it can be overwhelmed)
- Audiovisual Deception: this uses light and sound to disorient threats
- Gravity Matter Swarm: this launches a cluster of semi-guided area denial projectiles
- Gravity Matter Push: this launches matter in all directions as a less-than-lethal defense against nearby threats
At this time there are no known vulnerabilities to Earth weapons, and the entity typically withdraws before any major damage can be inflicted.
Drone
Drone Init
After an Alien Entity (Small) is placed on the map, you need to execute the following functions before you get your drone fully operational.
Setting Movement Grid
Drone is only able to move in a generated grid. It can be generated on-the-fly via BIN_fnc_setObjectGrid or by using a movement grid module.
Syntax:
Parameters:
- drone: Object - object to which the grid is attached.
- positionATL: Array - PositionATL where the drone grid should be created.
- cellSizeX: Number - (Optional, default 4) size of movement cells in the X axis (meters).
- cellSizeY: Number - (Optional, default 4) size of movement cells in the Y axis (meters).
- cellSizeZ: Number - (Optional, default 16) size of movement cells in the Z axis (meters).
- resolutionX: Number - (Optional, default 20) number of cells in the X axis.
- resolutionY: Number - (Optional, default 20) number of cells in the Y axis.
- resolutionZ: Number - (Optional, default 3) number of cells in the Z axis.
Setting Movement Properties
The way the drone moves can be changed via the following function. A list of all available movement types is listed in the section below.
Syntax:
Parameters:
- drone: Object - Object to which the movement properties are attached.
- movementProperties: String - Name of the movement class.
Initialising Drone Scripted Sound System
Syntax:
Parameters:
Initialising Drone Behavior System
Syntax:
Parameters:
- drone: Object - Object to which the movement properties are attached.
- behaviorType: String - (Optional, default "Drone") name of the behavior type, can be either "Drone" or "DroneCombat".
Example Code
Switching Behaviors
Behaviors listed below can be used with BIN_fnc_setBehavior & BIN_fnc_setBehaviorCoef.
BIN_fnc_setBehavior is using the following syntax:
Parameters:
- drone: Object - object to which the movement properties are attached.
- behaviorName: String - (Optional, default "Drone") name of the behavior type. Can be either "Drone" or "DroneCombat".
- parameters: Array - (Optional, default []) parameters which can be passed to the behavior.
- terminateBehaviour: Boolean - (Optional, default false) if true, the currently executed behaviour will be terminated and a new one will be executed right after termination of the existing one is completed. The default is false.
- interrupt: Boolean - (Optional, default false) determines if behavior should be terminated immediately. In case of e.g. research behavior it means that instead of gently putting back a scanned object, it will be dropped to the ground right away. The default is false.
Example:
List of Available Behaviors
Name | Description | Available parameters |
---|---|---|
Patrol | Drone will move around looking for enemy contacts | |
Investigate | Drone will look at the nearest unit | 0: target (Optional): Object - object which Drone will look at |
GravityCannon | If combat modules are are present, Drone will use them to engage either a random nearby target |
0: target: Object - (Optional) target for gravity cannon 1: weapon: String - (Optional) can be GravityShotgun_01, GravityCannon_01 or GravityCannon_01_Precise |
MissileSwarm | Drone will use an area of effect weapon releasing 5 missile like projectiles at nearby targets | |
Jump | Drone will perform a jump to a specified location |
0: position - Array or String - PositionATL - position to move. If a string is provided, Drone will jump to a precalculated grid located in the provided file. 1: charge (Optional) - Boolean - optional parameters controlling if Drone should be charging power before making a jump. The default is false. 2: fast (Optional) - Drone will jump up straight away if it is set to true; the default is false. If a number is provided, Drone will pick fast jump if the distance is above that value. |
Avoid | Drone will try to avoid contact with nearby units by moving away from them | |
Research | Drone will perform research behavior on nearby objects |
0: target (Optional) - Object - target to scan. If not specified Drone will try to pick some random object in the available grid. 1: endless (Optional) - Boolean - research will be performed until it is interrupted by script. |
Light | Drone will use its light burst countermeasure and try to move away from incoming fire | |
GravityBurst | Drone will use gravity burst when units are nearby | |
CollectMatter | Drone will collect 4 matter balls which serve as gravity cannon magazines | |
Reposition | Drone will move 100 meters away from incoming fire |
Scripted Event Handlers
Name | Output | Description |
---|---|---|
behaviorStarted |
0: Object 1: Behavior name |
Triggers when a new behavior FSM is triggered |
behaviorCompleted |
0: Object 1: Behavior name |
Triggers when a new behavior FSM is completed. It will be also fired when behavior was interrupted! |
Example code:
Editing Move Properties
Movement properties can be modified within the game editor. In order to access them, type the following code in console and execute it:
You can add points to that graph by double clicking on the middle area. It is possible to move those points once they are created. When you are are ready, press the "Copy" button and paste the result to your config. It is not possible to obtain these values from mission files at the moment.
class Movement
{
class Templates
{
#define CURVE { { 0, 0, 0 }, { 0.3, 0.9, 0 }, { 0.5, 0.9, 0 }, { 0.5, 1.070, 0 }, { 0.5, 1, 0 } }
#define CURVE_LONG { { 0, 0, 0 }, { 0.3, 0.9, 0 }, { 0.5, 0.9, 0 }, { 0.5, 1.024, 0 }, { 0.5, 1, 0 } }
#define CURVE_END { { 0, 0, 0 }, { 0.5, 1, 0 }, { 0.7, 1, 0 }, { 1, 1, 0 } }
#define CURVE_ROT { { 0, 0, 0 }, { 0, 2, 0 }, { 0.9, 1, 0 }, { 1, 1, 0 } }
class Default
{
speed = 8; // average travel speed in m/s
pulseDistance = 100; // distance between pulses
maxPulseDistanceFar = 100; // maximum distance between pulses in long-distance travel
maxPulseDistanceClose = 3; // maximum distance between pulses in short-distance travel
altitude = 100; // altitude above terrain level for long jumps
curve[] = { { 0, 0 }, { 1, 1 } }; // movement curve
curveEnd[] = { { 0, 0 }, { 1, 1 } }; // movement curve on the last waypoint (smoother settle-in)
curveRotation[] = { { 0, 0, 0 }, { 1, 0, 0 }, { 0, 1, 0 }, { 1, 1, 0 } };
};
class Drone : Default
{
speed = 7;
curve[] = CURVE;
curveEnd[] = CURVE_END;
curveRotation[] = CURVE_ROT;
};
class Drone_Intro3 : Drone
{
speed = 12;
pulseDistance = 550;
maxPulseDistanceFar = 550;
};
class Drone_Long : Drone
{
speed = 14;
pulseDistance = 250;
maxPulseDistanceFar = 550;
curve[] = CURVE_LONG;
};
class CombatDrone : Default
{
speed = 14;
maxPulseDistanceFar = 40;
curve[] = CURVE;
curveEnd[] = CURVE_END;
curveRotation[] = CURVE_ROT;
};
class CombatDrone_Fast : Default
{
speed = 28;
maxPulseDistanceFar = 40;
curve[] = CURVE;
curveEnd[] = CURVE_END;
curveRotation[] = CURVE_ROT;
};
class CombatDrone_Long : Default
{
speed = 28;
pulseDistance = 500;
maxPulseDistanceFar = 1000;
curve[] = CURVE_LONG;
curveEnd[] = CURVE_END;
curveRotation[] = CURVE_ROT;
};
class ModularShip : Default
{
speed = 2;
curve[] = CURVE;
curveEnd[] = CURVE_END;
curveRotation[] = CURVE_ROT;
};
};
};
located in configFile >> "CfgContact" >> "Movement" >> "Templates".
↑ Back to spoiler's topHandy Functions List
Function | Description | Notes |
---|---|---|
Set danger level on Drone. Danger goes from 0 (no danger) to 1 (maximum danger). | ||
Sets Drone behavior to the selected state. The currently supported modes are "Safe" & "Combat". | ||
Sets a target for Drone's gravity cannon | ||
[west, 0] call BIN_fnc_setTargetWeight; // all units from side "west" will be ignored by the targeting system
[player, 10] call BIN_fnc_setTargetWeight; // increase player's chance of being targeted by Drone weapons
[bis_car, 0] call BIN_fnc_setTargetWeight // vehicle and its crew will be ignored by the targeting system |
Coef to target priority - set to 0 to basically exclude Drone from target selection. Function accepts a group, side, vehicle or unit. | Applied to the individual unit, side or vehicle - not Drone! |
Forces Drone to target a specific object | ||
Change probability of picking a specific behavior | ||
Targets and fires module at the player | Parameters:
0: Module: Object - module which should fire
1: Target: Object or Position - where the module should aim at | |
Manually trigger a missile swarm |
Modules
Setup
Creating module
In order to create a module use the following function. You don't need to place a drone module in the world itself!
Syntax: _module = [drone, moduleClassName, moduleType] call BIN_fnc_initDroneModule;
Parameters:
- drone: Object - parent object to which modules are attached
- movementProperties: String - class name of the vehicle to create. The list of available modules is available below.
- moduleType: String - type of module to register - currently "combat", "matter" & "science" are available.
Available Modules
I, B, O are abbreviation for factions - I = Independent, B = Blufor, O = Opfor
Module variables
Name | Variable | Notes |
---|---|---|
Interval | bin_droneModule_interval | Sets how strictly a module is following Drone. 0 means it is basically out of control |
Radius | bin_droneModule_radius | Radius of the module orbit (calculated from Drone's center) |
Height | bin_droneModule_height | Height offset of the module orbit (calculated from Drone's center) |
Rotational speed | bin_droneModule_rotationTime | How much time it takes to perform one full rotation |
Damage | bin_droneModule_damage | By default, modules damage is synced to damage status of the parent vehicle. With this variable it is possible to override this behavior and either enable or disable damage completely. |
Example
Example Missions
- Alien Entity: Combat Behavior example mission - Steam File 1819779586
- Alien Entity: Safe Behavior example mission - Steam File 1819778427