Author: ricnunes
Author Website:

Requirements: No addons required

Version: 1.0

Short description: simulates GPS Targeting Systems without needing addons.

Date: 2020-06-05 14:53


Comments: (0)
Rating:



 







Pseudo-GPS Targeting System

by
Ricnunes


Description:
The purpose of this Script is to create a "GPS Like" targeting system and all of this without the need of any addons. There are indeed other GPS targeting scripts (and more realistic) available but these usually require addons.
So this Script allows the mission designer to basically give any unit such for example a fighter aircraft or the laser designator carried by a soldier (JTAC for instance) or even give the Mk41 VLS an "autonomous targeting" capability.

How does this Script works?
By looking at the target using for example an aircraft's Targeting Camera or a soldier's laser designator or even using the currently locked target (via radar or IR sensor) a Laser Marker is created on the desired location. Alternatively it's also possible to use the Map by clicking on a position of it after which a Laser Marker will be created on this same position. These actions are initiated using the Action Menu.
The script allows the player to select/mark up to four (4) targets and includes the option to delete the last marked target or all the marked targets.


Installation / Usage:
For usage instructions and information of how to use the Pseudo-GPS Targeting System please refer to the included documentation and/or example mission.

How to implement the Script on a mission?
- To use the script on an aircraft place the following code in the aircraft's init field:
this addAction ["<t color='#00ff00'>GPS - Mark Target - TGP</t>", "p_gps\gps.sqf",[1],0,false,false,""," driver _target == _this"]; this addAction ["<t color='#00ff00'>GPS - Mark Target - MAP</t>", "p_gps\gps_map.sqf",[1],0,false,false,""," driver _target == _this"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf",[1],0,false,false,""," driver _target == _this"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf",[1],0,false,true,""," driver _target == _this"]; seltarget = 0;

- To use the script when the player is using a laser designator place the following code either the unit/player's init field or a Trigger or in an init script:
this addAction ["<t color='#00ff00'>GPS - Mark Target</t>", "p_gps\gps.sqf", [], 1, false, false, "", " ""Laserdesignator"" in (weapons _this) && ""Laserdesignator"" == currentWeapon player"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf", [], 1, false, false, "", " ""Laserdesignator"" in (weapons _this) && ""Laserdesignator"" == currentWeapon player"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf", [], 1, false, false, "", " ""Laserdesignator"" in (weapons _this) && ""Laserdesignator"" == currentWeapon player"];
this addAction ["<t color='#00ff00'>GPS - Mark Target</t>", "p_gps\gps.sqf", [], 1, false, false, "", " ""Laserdesignator_03"" in (weapons _this) && ""Laserdesignator_03"" == currentWeapon player"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_03"" in (weapons _this) && ""Laserdesignator_03"" == currentWeapon player"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_03"" in (weapons _this) && ""Laserdesignator_03"" == currentWeapon player"];
this addAction ["<t color='#00ff00'>GPS - Mark Target</t>", "p_gps\gps.sqf", [], 1, false, false, "", " ""Laserdesignator_01_khk_F"" in (weapons _this) && ""Laserdesignator_01_khk_F"" == currentWeapon player"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_01_khk_F"" in (weapons _this) && ""Laserdesignator_01_khk_F"" == currentWeapon player"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_01_khk_F"" in (weapons _this) && ""Laserdesignator_01_khk_F"" == currentWeapon player"];
this addAction ["<t color='#00ff00'>GPS - Mark Target</t>", "p_gps\gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02_ghex_F"" in (weapons _this) && ""Laserdesignator_02_ghex_F"" == currentWeapon player"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02_ghex_F"" in (weapons _this) && ""Laserdesignator_02_ghex_F"" == currentWeapon player"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02_ghex_F"" in (weapons _this) && ""Laserdesignator_02_ghex_F"" == currentWeapon player"];
this addAction ["<t color='#00ff00'>GPS - Mark Target</t>", "p_gps\gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02"" in (weapons _this) && ""Laserdesignator_02"" == currentWeapon player"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02"" in (weapons _this) && ""Laserdesignator_02"" == currentWeapon player"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf", [], 1, false, false, "", " ""Laserdesignator_02"" in (weapons _this) && ""Laserdesignator_02"" == currentWeapon player"];
seltarget = 0;
The above gives the GPS targeting capability to all stock laser designators in ArmA3, however the mission designer can of course use only the lines for the intended laser designators.

- To use the script in order to give the Mk41 VLS an "autonomous targeting capability" place the following code in the Mk41 VLS init field:
this addAction ["<t color='#00ff00'>GPS - Mark Target - MAP</t>", "p_gps\gps_map.sqf",[1],0,false,false,""," gunner _target == _this"]; this addAction ["<t color='#ffee00'>GPS - Clear Last Target</t>", "p_gps\cl_gps.sqf",[1],0,false,false,""," gunner _target == _this"]; this addAction ["<t color='#FF0000'>GPS - Clear All Targets</t>", "p_gps\ca_gps.sqf",[1],0,false,false,""," gunner _target == _this"]; seltarget = 0;


Notes:
- Like happens the real GPS targeting, the "GPS" target won't follow moving targets so it's not advisable to use it against moving targets.
- However like the real GPS targeting it allows to "fire-and-forget" (without the need to constantly keep a laser designator aimed at the target) against static targets/positions.
- The Script works with Laser Weapons since in fact the "GPS Targets" are in fact "Laser Markers/Targets". This allows for example to "transform" a GBU-12 Laser Guided Bomb into a GBU-49 which in real life is a dual mode bomb (Laser and GPS guided) based on the GBU-12.
- I didn't have the opportunity to fully test the Script in Multiplayer. While it might/should work in Multiplayer, it was only fully tested in Single Player.


Changelog:
1.00




Enable javascript to be able to download from Armaholic please!