Difference between revisions of "BIS fnc respawnTickets"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|SYNTAX= 2 " to "|SYNTAX2= ")
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Function|= Comments
+
{{Function|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3 |= Game name
+
| arma3 |Game name=
  
|0.74|= Game version
+
|0.74|Game version=
  
|eff= global |=
+
|eff= global |MPeff=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 14: Line 14:
  
 
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.
 
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.
  |= Description
+
  |DESCRIPTION=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [<target>,(<tickets>,<dynamicTarget>)] call [[BIS_fnc_respawnTickets]]; |= Syntax
+
| [<target>,(<tickets>,<dynamicTarget>)] call [[BIS_fnc_respawnTickets]]; |SYNTAX=
  
 
|p1= '''target''': Receiver of the respawn loadout
 
|p1= '''target''': Receiver of the respawn loadout
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]].
  
| [[Number]] - remaining tickets after adjustment |= Return value
+
| [[Number]] - remaining tickets after adjustment |RETURNVALUE=
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
|s2= [] [[call]] [[BIS_fnc_respawnTickets]]; |= Syntax 2
+
|s2= [] [[call]] [[BIS_fnc_respawnTickets]]; |SYNTAX2=
  
|r2= [[Number]] - remaining tickets in all name spaces |= Return value 2
+
|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
Line 45: Line 45:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[Arma 3 Respawn]] |= See also
+
| [[Arma 3 Respawn]], [[BIS_fnc_addRespawnPosition]], [[BIS_fnc_removeRespawnPosition]] |SEEALSO=
  
 
}}
 
}}
Line 57: Line 57:
  
 
<h3 style="display:none">Bottom Section</h3>
 
<h3 style="display:none">Bottom Section</h3>
 
+
[[Category:Function Group: Respawn|{{uc:respawnTickets}}]]
[[Category:Arma 3:_Functions|respawnTickets]]
+
[[Category:Functions|{{uc:respawnTickets}}]]
 +
[[Category:{{Name|arma3}}: Functions|{{uc:respawnTickets}}]]

Revision as of 16:44, 4 September 2019

Template:Function

Notes

Bottom Section