{"name":"BIS_fnc_bleedTickets","operator":null,"title":"BIS fnc bleedTickets","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_bleedTickets","revid":348045,"updated":"2023-11-08T11:28:46Z","groups":["Missions"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.10"}],"since":{"game":"arma3","name":"Arma 3","version":"1.10"},"arma3_since":"1.10","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Function that handles bleeding ticket system. Tickets are set beforehand using BIS_fnc_respawnTickets.","syntaxes":[{"syntax":"[sides, dominanceRatio, bleedingAmount, bleedingDelay] call BIS_fnc_bleedTickets","since":null,"effect":null,"exec":null,"params":[{"name":"sides","type":"Array","optional":true,"default":"All sides","description":"array of effected sides","types":["Array"],"since":null,"text":"sides: Array - (Optional, default All sides) array of effected sides"},{"name":"dominanceRatio","type":"Number","optional":true,"default":"0.5","description":"dominance ratio, values from 0 to 1. Determines how much of a sector a side must hold for bleeding tickets to start","types":["Number"],"since":null,"text":"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"},{"name":"bleedingAmount","type":"Number","optional":true,"default":"3","description":"amount of tickets bled every step. Optional parameter","types":["Number"],"since":null,"text":"bleedingAmount: Number - (Optional, default 3) amount of tickets bled every step. Optional parameter"},{"name":"bleedingDelay","type":"Object","optional":true,"default":"5","description":"delay in seconds between every bleeding step","types":["Object"],"since":null,"text":"bleedingDelay: Object - (Optional, default 5) delay in seconds between every bleeding step"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\ncall BIS_fnc_bleedTickets;\n```","code":["call BIS_fnc_bleedTickets;"]},{"text":"```sqf\n[[west, east], 1, 1, 10] call BIS_fnc_bleedTickets;\n```","code":["[[west, east], 1, 1, 10] call BIS_fnc_bleedTickets;"]}],"multiplayer":"Server-side execution only.","problems":null,"aliases":[],"see_also":["BIS_fnc_addScriptedEventHandler","BIS_fnc_respawnTickets"],"notes":[{"user":"Tryteyker-","date":"2014-09-29T19:58:00Z","text":"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)."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Missions","Functions","Introduced with Arma 3 version 1.10"],"docblock":null,"filled_from_docblock":[]}