BIS fnc bleedTickets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= |p4=" to "|PARAMETER3= |p4=") |
Lou Montana (talk | contribs) m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 01:34, 22 December 2019
Description
- Description:
- Function that handles bleeding ticket system. Tickets are set beforehand using BIS_fnc_respawnTickets.
- Execution:
- call
- Multiplayer:
- Server-side execution only.
- Groups:
- Uncategorised
Syntax
- Syntax:
- [[WEST,EAST,RESISTANCE,CIVILIAN], 0.5, 3, 5] call BIS_fnc_bleedTickets;
- Parameters:
- Array - Array of sides that should be affected by bleed tickets. Optional parameter, default is all sides.
- Number - Dominance ratio, values from 0 to 1. Determines how much of a sector a side must hold for bleeding tickets to start. Optional parameter, default is 0.5 (ie half a sector).
- Number - Amount of tickets bled every step. Optional parameter, default value 3.
- Number - Delay in seconds between every bleeding step. Optional parameter, default value 5.
- Return Value:
- Boolean
Examples
- Example 1:
[] call BIS_fnc_bleedTickets; // Uses all default values to start the system.
- Example 2:
[[WEST,EAST], 1, 1, 10] call BIS_fnc_bleedTickets; // Starts the system with WEST and EAST involved, bleeding one ticket every ten seconds if one side holds the whole sector.
Additional Information
- See also:
- BIS_fnc_addScriptedEventHandler
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
Notes
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).