BIS fnc limitSupport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "<code> *(\^+\]) +\[\[call\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 call $2;</sqf>")
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Supports


|1.00|= Game version
|descr= Limits support runs during a mission.
____________________________________________________________________________________________


| <pre>/*
|s1= [module, supportType, quantity] call [[BIS_fnc_limitSupport]]


Description:
|p1= module: [[Object]] - the requester module
Limits support runs during a mission.


Parameter(s):
|p2= supportType: [[String]] - can be one of:
_this select 0: OBJECT - Requester module
* "Artillery"
_this select 1: STRING - Support type:
* "Transport"
"Artillery"
* "CAS_Heli"
"Transport"
* "CAS_Bombing"
"CAS_Heli"
* "Drop"
"CAS_Bombing"
"Drop"
_this select 2: NUMBER - Support run limit
-1: Unlimited


Returns:
|p3= quantity: [[Number]] - support run limit. -1 for unlimited support
nothing
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Boolean]] - [[true]] when done
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_limitSupport]]; --> |= Syntax
|x1= <sqf>[reqModule, "Transport", -1] call BIS_fnc_limitSupport;</sqf>
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_addSupportLink]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Supports|{{uc:limitSupport}}]]
[[Category:Functions|{{uc:limitSupport}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:limitSupport}}]]

Latest revision as of 20:03, 5 May 2022

Hover & click on the images for description

Description

Description:
Limits support runs during a mission.
Execution:
call
Groups:
Supports

Syntax

Syntax:
[module, supportType, quantity] call BIS_fnc_limitSupport
Parameters:
module: Object - the requester module
supportType: String - can be one of:
  • "Artillery"
  • "Transport"
  • "CAS_Heli"
  • "CAS_Bombing"
  • "Drop"
quantity: Number - support run limit. -1 for unlimited support
Return Value:
Boolean - true when done

Examples

Example 1:
[reqModule, "Transport", -1] call BIS_fnc_limitSupport;

Additional Information

See also:
BIS_fnc_addSupportLink

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