BIS fnc selectRespawnTemplate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "{{HashLink" to "{{Link")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Respawn


|gr1= Respawn |GROUP1=
|descr= Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use.


| Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use. |Description=
|s1= [mode, arguments] call [[BIS_fnc_selectRespawnTemplate]]
 
| [mode, arguments] call [[BIS_fnc_selectRespawnTemplate]] |Syntax=


|p1= mode: [[String]] - '''case-sensitive''', can be one of:
|p1= mode: [[String]] - '''case-sensitive''', can be one of:
{{Columns|2|
* "playerKilledScript"
* "playerKilledScript"
* "playerRespawnScript"
* "playerRespawnScript"
Line 19: Line 19:
* "initRespawn"
* "initRespawn"
* "initRespawnStart"
* "initRespawnStart"
* "initRespawnEnd" |Parameter 1=
* "initRespawnEnd"
}}


|p2= arguments: [[Array]] |Parameter 2=
|p2= arguments: [[Array]]


| [[Array]] of [[Script_(Handle)|Script handle]] |Return value=
|r1= [[Array]] of [[Script Handle]]s


|x1= <code>["playerKilledScript", []] [[call]] [[BIS_fnc_selectRespawnTemplate]];</code> |Example 1=
|x1= <sqf>["playerKilledScript", []] call BIS_fnc_selectRespawnTemplate;</sqf>


| [[Description.ext#respawn|Description.ext/respawn]] |See also=
|seealso= {{Link|Description.ext#respawn}}
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:selectRespawnTemplate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:selectRespawnTemplate}}]]

Latest revision as of 17: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