{"name":"BIS_fnc_bleedTickets","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","games":{"arma3":"1.10"},"since":"arma3 1.10","arma3_since":"1.10","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","params":[{"name":"sides","type":"Array","optional":true,"default":"All sides","description":"array of effected sides","type_expr":"Array","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","type_expr":"Number","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","type_expr":"Number","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","type_expr":"Object","text":"bleedingDelay: Object - (Optional, default 5) delay in seconds between every bleeding step"}],"returns":{"type":"Boolean","type_expr":"Boolean"}}],"examples":[{"code":["call BIS_fnc_bleedTickets;"]},{"code":["[[west, east], 1, 1, 10] call BIS_fnc_bleedTickets;"]}],"multiplayer":"Server-side execution only.","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)."}]}