Difference between revisions of "BIS fnc respawnTickets"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Text replacement - "|SYNTAX= 2 " to "|SYNTAX2= ") |
||
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | arma3 | | + | | arma3 |Game name= |
|0.74|Game version= | |0.74|Game version= | ||
− | |eff= global |= | + | |eff= global |MPeff= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 23: | Line 23: | ||
: [[Side]] | : [[Side]] | ||
: [[Group]] | : [[Group]] | ||
− | : [[Object]]|= | + | : [[Object]]|Parameter1= |
|p2= '''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. | |p2= '''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. | ||
|p3= '''dynamicTarget''': [[Boolean]] - when [[true]], set/get tickets based on the target. '''target''' must be an [[Object]]. | |p3= '''dynamicTarget''': [[Boolean]] - when [[true]], set/get tickets based on the target. '''target''' must be an [[Object]]. | ||
Line 30: | Line 30: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | |s2= [] [[call]] [[BIS_fnc_respawnTickets]]; | | + | |s2= [] [[call]] [[BIS_fnc_respawnTickets]]; |SYNTAX2= |
− | |r2= [[Number]] - remaining tickets in all name spaces | | + | |r2= [[Number]] - remaining tickets in all name spaces |RETURNVALUE2= |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= Add 5 tickets for BLUFOR | |x1= Add 5 tickets for BLUFOR | ||
− | <code><nowiki>[</nowiki>[[west]], 5] [[call]] [[BIS_fnc_respawnTickets]];</code> |= | + | <code><nowiki>[</nowiki>[[west]], 5] [[call]] [[BIS_fnc_respawnTickets]];</code> |Example1= |
|x2= Return number of global tickets | |x2= Return number of global tickets | ||
− | <code>globalTickets = <nowiki>[</nowiki>[[missionNamespace]]] [[call]] [[BIS_fnc_respawnTickets]];</code> |= | + | <code>globalTickets = <nowiki>[</nowiki>[[missionNamespace]]] [[call]] [[BIS_fnc_respawnTickets]];</code> |Example2= |
|x3= Return number of player's tickets | |x3= Return number of player's tickets |
Latest revision as of 15:44, 4 September 2019

Click on the images for descriptions
Introduced in
- Game:
- Arma 3
- Version:
- 0.74
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.
Syntax
- Syntax:
- [<target>,(<tickets>,<dynamicTarget>)] call BIS_fnc_respawnTickets;
- Parameters:
- target: Receiver of the respawn loadout
- Namespace - use missionNamespace to set/get global tickets available for everyone
- Side
- Group
- Object
- 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
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
- Execution:
- call
- Multiplayer:
- -
- See also:
- Arma 3 RespawnBIS_fnc_addRespawnPositionBIS_fnc_removeRespawnPosition
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To
Add New Note | How To