BIS fnc selectRespawnTemplate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "{{HashLink" to "{{Link")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Respawn


|1.00|= Game version
|descr= Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use.
____________________________________________________________________________________________


| <pre>/*
|s1= [mode, arguments] call [[BIS_fnc_selectRespawnTemplate]]


Description:
|p1= mode: [[String]] - '''case-sensitive''', can be one of:
Select respawn template from CfgRespawnTemplates and execute its script / function
{{Columns|2|
* "playerKilledScript"
* "playerRespawnScript"
* "playerRespawnSeagullScript"
* "playerResurrectScript"
* "playerRespawnOtherUnitScript"
* "initRespawn"
* "initRespawnStart"
* "initRespawnEnd"
}}


Parameter(s):
|p2= arguments: [[Array]]
0: STRING - engine script which called the function
1: ARRAY - script arguments


Returns:
|r1= [[Array]] of [[Script Handle]]s
ARRAY of SCRIPTs
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>["playerKilledScript", []] call BIS_fnc_selectRespawnTemplate;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_selectRespawnTemplate]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= {{Link|Description.ext#respawn}}
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Respawn|{{uc:selectRespawnTemplate}}]]
[[Category:Functions|{{uc:selectRespawnTemplate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:selectRespawnTemplate}}]]

Latest revision as of 18:44, 4 January 2023

Hover & click on the images for description

Description

Description:
Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use.
Execution:
call
Groups:
Respawn

Syntax

Syntax:
[mode, arguments] call BIS_fnc_selectRespawnTemplate
Parameters:
mode: String - case-sensitive, can be one of:
  • "playerKilledScript"
  • "playerRespawnScript"
  • "playerRespawnSeagullScript"
  • "playerResurrectScript"
  • "playerRespawnOtherUnitScript"
  • "initRespawn"
  • "initRespawnStart"
  • "initRespawnEnd"
arguments: Array
Return Value:
Array of Script Handles

Examples

Example 1:
["playerKilledScript", []] call BIS_fnc_selectRespawnTemplate;

Additional Information

See also:
Description.ext - respawn

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