BIS fnc bleedTickets: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>")
m (Some wiki formatting)
Line 24: Line 24:
|x1= <sqf>call BIS_fnc_bleedTickets;</sqf>
|x1= <sqf>call BIS_fnc_bleedTickets;</sqf>


|x2= <code><noWiki>[[</noWiki>[[WEST]],[[EAST]]<noWiki>]</noWiki>, 1, 1, 10] [[call]] [[BIS_fnc_bleedTickets]];</code>
|x2= <sqf>[[west, east], 1, 1, 10] call BIS_fnc_bleedTickets;</sqf>


|seealso= [[BIS_fnc_addScriptedEventHandler]] [[BIS_fnc_respawnTickets]]
|seealso= [[BIS_fnc_addScriptedEventHandler]] [[BIS_fnc_respawnTickets]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Tryteyker-
<dt></dt>
|timestamp= 20140929195800
<dd class="notedate">Posted on September 29, 2014 - 19:58 (UTC)</dd>
|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).
<dt class="note">[[User:Tryteyker-|Tryteyker-]]</dt>
}}
<dd class="note">
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).
</dd>
 
</dl>

Revision as of 17:46, 13 July 2022

Hover & click on the images for description

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

See also:
BIS_fnc_addScriptedEventHandler BIS_fnc_respawnTickets

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
Tryteyker- - c
Posted on Sep 29, 2014 - 19:58 (UTC)
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).