BIS fnc limitSupport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3


|1.00
|version1= 1.00


|gr1 = Supports
|gr1= Supports


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


Parameter(s):
|s1= [caller, supportType, quantity] call [[BIS_fnc_limitSupport]]
_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
|p1= caller: [[Object]] - the unit able to request support
Line 33: Line 22:
|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= <code>[<nowiki/>[[player]], "Transport", -1] [[call]] [[BIS_fnc_limitSupport]];</code>
}}
}}

Revision as of 22:27, 14 March 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
[caller, supportType, quantity] call BIS_fnc_limitSupport
Parameters:
caller: Object - the unit able to request support
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:
[player, "Transport", -1] call BIS_fnc_limitSupport;

Additional Information

See also:
See also needed

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