BIS fnc limitSupport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Supports |GROUP1=
|gr1 = Supports


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


Parameter(s):
Parameter(s):
Line 20: Line 20:
-1: Unlimited
-1: Unlimited


| [caller, supportType, quantity] call [[BIS_fnc_limitSupport]] |SYNTAX=
| [caller, supportType, quantity] call [[BIS_fnc_limitSupport]]


|p1= caller: [[Object]] - the unit able to request support |PARAMETER1=
|p1= caller: [[Object]] - the unit able to request support


|p2= supportType: [[String]] - can be one of:
|p2= supportType: [[String]] - can be one of:
Line 29: Line 29:
* "CAS_Heli"
* "CAS_Heli"
* "CAS_Bombing"
* "CAS_Bombing"
* "Drop" |PARAMETER2=
* "Drop"


|p3= quantity: [[Number]] - support run limit. -1 for unlimited support |PARAMETER3=
|p3= quantity: [[Number]] - support run limit. -1 for unlimited support


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


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


| |SEEALSO=
|


}}
}}

Revision as of 00:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Limits support runs during a mission. Parameter(s): _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
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:
Nothing

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

Bottom Section