isUAVConnectable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| object '''isUAVConnectable''' [uav, checkAllItems] |SYNTAX=
| object [[isUAVConnectable]] [uav, checkAllItems] |SYNTAX=


|p1= object: [[Object]] |PARAMETER1=
|p1= object: [[Object]] |PARAMETER1=


|p2= [uav, checkAllItems]: [[Array]] |PARAMETER2=
|p2= uav: [[Object]] or [[Array]] |PARAMETER2=


|p3= uav: [[Object]] or [[Array]] |PARAMETER3=
|p3= checkAllItems: [[Boolean]] - [[true]] to check all terminals in unit's inventory, [[false]] to only check assigned terminal. |PARAMETER3=
 
|p4= checkAllItems: [[Boolean]] - True for check of all items in unit's inventory, false for check of items assigned to proper slot only. |PARAMETER4=


| [[Boolean]] |RETURNVALUE=
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>connectable = unit [[isUAVConnectable]] [uav,true];</code> |EXAMPLE1=
|x1= <code>[[private]] _canConnect = myUnit [[isUAVConnectable]] [myUav, [[true]]];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[enableUAVConnectability]], [[disableUAVConnectability]] |SEEALSO=
| [[enableUAVConnectability]], [[disableUAVConnectability]] |SEEALSO=
}}
}}


Line 41: Line 38:




[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Remote Control]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 11:35, 6 August 2020

Hover & click on the images for description

Description

Description:
Returns true if UAV is connectable by AV terminal(s).
Groups:
Uncategorised

Syntax

Syntax:
object isUAVConnectable [uav, checkAllItems]
Parameters:
object: Object
uav: Object or Array
checkAllItems: Boolean - true to check all terminals in unit's inventory, false to only check assigned terminal.
Return Value:
Boolean

Examples

Example 1:
private _canConnect = myUnit isUAVConnectable [myUav, true];

Additional Information

See also:
enableUAVConnectabilitydisableUAVConnectability

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section