BIS fnc limitSupport: Difference between revisions

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


| arma3
|game1= arma3
|version1= 1.00


|1.00
|gr1= Supports


|gr1 = Supports
|descr= Limits support runs during a mission.


| Limits support runs during a mission.
|s1= [module, supportType, quantity] call [[BIS_fnc_limitSupport]]


Parameter(s):
|p1= module: [[Object]] - the requester module
_this select 0: OBJECT - Requester module
_this select 1: STRING - Support type:
"Artillery"
"Transport"
"CAS_Heli"
"CAS_Bombing"
"Drop"
_this select 2: NUMBER - Support run limit
-1: Unlimited
 
| [caller, supportType, quantity] call [[BIS_fnc_limitSupport]]
 
|p1= caller: [[Object]] - the unit able to request support


|p2= supportType: [[String]] - can be one of:
|p2= supportType: [[String]] - can be one of:
Line 33: Line 21:
|p3= quantity: [[Number]] - support run limit. -1 for unlimited support
|p3= quantity: [[Number]] - support run limit. -1 for unlimited support


| [[Nothing]]
|r1= [[Boolean]] - [[true]] when done


|x1= <code><nowiki>[</nowiki>[[player]], "Transport", -1] [[call]] [[BIS_fnc_limitSupport]];</code>
|x1= <sqf>[reqModule, "Transport", -1] call BIS_fnc_limitSupport;</sqf>
 
|


|seealso= [[BIS_fnc_addSupportLink]]
}}
}}
[[Category:Functions|{{uc:limitSupport}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:limitSupport}}]]

Latest revision as of 19: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