BIS fnc selectRespawnTemplate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add Columns template usage)
m (Text replacement - "[[Script_(Handle)|" to "[[Script Handle|")
Line 24: Line 24:
|p2= arguments: [[Array]]
|p2= arguments: [[Array]]


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


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

Revision as of 18:10, 28 August 2021

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