BIS fnc bleedTickets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">") |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )D([a-z])" to "$1d$3") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.10 | |version1= 1.10 | ||
|gr1 = Missions | |gr1= Missions | ||
|descr= Function that handles bleeding ticket system. Tickets are set beforehand using [[BIS_fnc_respawnTickets]]. | |descr= Function that handles bleeding ticket system. Tickets are set beforehand using [[BIS_fnc_respawnTickets]]. | ||
Line 13: | Line 12: | ||
|s1= [sides, dominanceRatio, bleedingAmount, bleedingDelay] call [[BIS_fnc_bleedTickets]] | |s1= [sides, dominanceRatio, bleedingAmount, bleedingDelay] call [[BIS_fnc_bleedTickets]] | ||
|p1= sides: [[Array]] - (Optional, default All sides) | |p1= sides: [[Array]] - (Optional, default All sides) array of effected sides | ||
|p2= dominanceRatio: [[Number]] - (Optional, default 0.5) | |p2= 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 | ||
|p3= bleedingAmount: [[Number]] - (Optional, default 3) | |p3= bleedingAmount: [[Number]] - (Optional, default 3) amount of tickets bled every step. Optional parameter | ||
|p4= bleedingDelay: [[Object]] - (Optional, default 5) | |p4= bleedingDelay: [[Object]] - (Optional, default 5) delay in seconds between every bleeding step | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>call BIS_fnc_bleedTickets;</sqf> | ||
|x2= < | |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]] | ||
}} | }} | ||
{{Note | |||
|user= Tryteyker- | |||
|timestamp= 20140929195800 | |||
|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). | |||
}} | |||
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). | |||
Latest revision as of 12:28, 8 November 2023
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:
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
- 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).