BIS fnc bleedTickets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) 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 5: | Line 5: | ||
|version1= 1.10 | |version1= 1.10 | ||
|gr1 = Missions | |gr1 = Missions | ||
<!--|exec= server|=--> | <!--|exec= server|=--> |
Revision as of 22:38, 17 January 2021
Description
- Description:
- Function that handles bleeding ticket system. Tickets are set beforehand using BIS_fnc_respawnTickets.
- Execution:
- call
- Multiplayer:
- Server-side execution only.
- Groups:
- Missions
Syntax
- Syntax:
- [sides, dominanceRatio, bleedingAmount, bleedingDelay] call BIS_fnc_bleedTickets
- Parameters:
- sides: Array - (Optional, default All sides) Array of effected sides
- dominanceRatio: Number - (Optional, default 0.5) Dominance ratio, values from 0 to 1. Determines how much of a sector a side must hold for bleeding tickets to start
- bleedingAmount: Number - (Optional, default 3) Amount of tickets bled every step. Optional parameter
- bleedingDelay: Object - (Optional, default 5) Delay in seconds between every bleeding step
- Return Value:
- Boolean
Examples
- Example 1:
call BIS_fnc_bleedTickets;
- Example 2:
[[WEST,EAST], 1, 1, 10] call BIS_fnc_bleedTickets;
Additional Information
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
- Posted on September 29, 2014 - 19:58 (UTC)
- Tryteyker-
- The function calls on the scripted eventhandler (see BIS_fnc_addScriptedEventHandler) "dominantSideChanged" everytime a sector changes dominant side (this again depending on the value given to the function).