BIS fnc respawnTickets: Difference between revisions
Jump to navigation
Jump to search
tickets: Number - added respawn tickets. When missing or set to 0, number of tickets won't be affected, which means you can use the function to simply get amount of tickets.
dynamicTarget: Boolean - when true, set/get tickets based on the target. target must be an Object. Return Value:
Number - remaining tickets after adjustment
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 7: | Line 7: | ||
|gr1= Respawn | |gr1= Respawn | ||
|eff= global | |eff= global | ||
| Manage respawn tickets used by ''[[Arma_3_Respawn#Respawn_Templates|Tickets]]'' respawn template. | | Manage respawn tickets used by ''[[Arma_3_Respawn#Respawn_Templates|Tickets]]'' respawn template. |
Revision as of 22:07, 18 January 2021
Description
- Description:
- Manage respawn tickets used by Tickets respawn template. When player dies, number of tickets is decreased by 1. The most local tickets are always used. Example: When you first add tickets to player's side, they will be affected. If you later define tickets also to player's group, they will completely replace the side tickets. When player runs out of the tickets, his respawn is disabled. If you use also EndMission respawn template, the mission will automatically end once tickets in all name spaces are exhausted.
- Execution:
- call
- Groups:
- Respawn
Syntax
- Syntax:
- [<target>,(<tickets>,<dynamicTarget>)] call BIS_fnc_respawnTickets;
- Parameters:
- target: Receiver of the respawn tickets
- Namespace - use missionNamespace to set/get global tickets available for everyone
- Side
- Group
- Object
Alternative Syntax
- Syntax:
- [] call BIS_fnc_respawnTickets;
- Return Value:
- Number - remaining tickets in all name spaces
Examples
- Example 1:
- Add 5 tickets for BLUFOR
[west, 5] call BIS_fnc_respawnTickets;
- Example 2:
- Return number of global tickets
globalTickets = [missionNamespace] call BIS_fnc_respawnTickets;
- Example 3:
- Return number of player's tickets
playerTickets = [player,nil,true] call BIS_fnc_respawnTickets;
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