Modules: UAV – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "[[Image:" to "[[File:")
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:ArmA 2: Editor Modules]]
{{GameCategory|arma2|Editor Modules}}


'''Unmanned Aerial Vehicle (UAV)''' module manages movement and access to aerial camera of UAV.
'''Unmanned Aerial Vehicle (UAV)''' module manages movement and access to aerial camera of UAV.
Line 6: Line 6:
=== Paths ===
=== Paths ===
Editor:
Editor:
  Units (F1) > Game Logic > Modules > UAV
  Modules (F7) > UAV
Data:
Data:
  ca\modules\uav
  ca\modules\uav


=== Editor setup ===
=== Editor setup ===
[[Image:Uav.jpg]]
[[File:Uav.jpg]]
# '''UAV manager''' - module manager, can be found in ''Game Logic > Modules > UAV Manager''.
Synchronize (F5) following objects to initialize the module:
# '''UAV''' - unit with parent class ''UAV''. Only one UAV can be assigned to one UAV Manager (otherwise system won't continue)
# '''UAV manager''' - module manager.
# '''Unit with access''' - all linked AI units will have access to UAV via action.
# '''UAV''' - unit with parent class ''UAV''. If more UAV's are assigned, first one is selected (and replaced by another one when first is destroyed).
# '''UAV terminal''' - all linked empty (nonAI) objects serves as terminals. Units with access gets action once they are near terminals.
#* USMC -> Air -> MQ-9
# '''Unit with access''' - all linked units will have access to UAV via action.
# '''UAV terminal''' - all linked empty (nonAI) objects serves as terminals. Units with access gets action once they are near terminals. (you can use special object 'EMPTY>>Class>>Warfare Buildings').


=== Optional parameters ===
=== Optional parameters ===
Line 31: Line 33:
::Example: ''BIS_uav_0 setvariable ["areasize",5];''
::Example: ''BIS_uav_0 setvariable ["areasize",5];''
::Default value:  10
::Default value:  10
To set the flying height of the UAV to, say 500, put
this flyinheight 500
in the UAV's init box
To synchronize the UAV with the backpack of the player, like a UAV terminal backpack (US_UAV_Pack_EP1), add
this setVariable ["name","UAVnameonActionMenu"]; this synchronizeObjectsAdd [(unitBackpack player)]
in the UAV module's init box. Then sync the UAV module with the player and the UAV.

Latest revision as of 23:11, 20 November 2023


Unmanned Aerial Vehicle (UAV) module manages movement and access to aerial camera of UAV.

Initialization

Paths

Editor:

Modules (F7) > UAV

Data:

ca\modules\uav

Editor setup

Uav.jpg Synchronize (F5) following objects to initialize the module:

  1. UAV manager - module manager.
  2. UAV - unit with parent class UAV. If more UAV's are assigned, first one is selected (and replaced by another one when first is destroyed).
    • USMC -> Air -> MQ-9
  3. Unit with access - all linked units will have access to UAV via action.
  4. UAV terminal - all linked empty (nonAI) objects serves as terminals. Units with access gets action once they are near terminals. (you can use special object 'EMPTY>>Class>>Warfare Buildings').

Optional parameters

Set variables to UAV manager with desired values:

  • name = <string>; - name of UAV (displayed in action menu)
Example: BIS_uav_0 setvariable ["name","RQ-1 Predator"];
Default value: empty string
  • rules = <array>; - Rule which defines which units with have access to UAV. Can be either list of specific units or whole side.
Example: BIS_uav_0 setvariable ["rules",[west,allied_gue_1]];
Default value: units synchronized in editor
  • areasize = <number>; - Size of terminal area (area in which custom action will be displayed)
Example: BIS_uav_0 setvariable ["areasize",5];
Default value: 10

To set the flying height of the UAV to, say 500, put

this flyinheight 500

in the UAV's init box

To synchronize the UAV with the backpack of the player, like a UAV terminal backpack (US_UAV_Pack_EP1), add

this setVariable ["name","UAVnameonActionMenu"]; this synchronizeObjectsAdd [(unitBackpack player)]

in the UAV module's init box. Then sync the UAV module with the player and the UAV.