BIS fnc selectRespawnTemplate: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= Respawn | |gr1= Respawn | ||
| Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use. | |descr= Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use. | ||
| [mode, arguments] call [[BIS_fnc_selectRespawnTemplate]] | |s1= [mode, arguments] call [[BIS_fnc_selectRespawnTemplate]] | ||
|p1= mode: [[String]] - '''case-sensitive''', can be one of: | |p1= mode: [[String]] - '''case-sensitive''', can be one of: | ||
<div style="columns: 2"> | |||
* "playerKilledScript" | * "playerKilledScript" | ||
* "playerRespawnScript" | * "playerRespawnScript" | ||
Line 20: | Line 20: | ||
* "initRespawnStart" | * "initRespawnStart" | ||
* "initRespawnEnd" | * "initRespawnEnd" | ||
</div> | |||
|p2= arguments: [[Array]] | |p2= arguments: [[Array]] | ||
| [[Array]] of [[Script_(Handle)|Script handle]] | |r1= [[Array]] of [[Script_(Handle)|Script handle]]s | ||
|x1= <code>["playerKilledScript", []] [[call]] [[BIS_fnc_selectRespawnTemplate]];</code> | |x1= <code>["playerKilledScript", []] [[call]] [[BIS_fnc_selectRespawnTemplate]];</code> | ||
| | |seealso= {{HashLink|Description.ext#respawn}} | ||
}} | }} | ||
Revision as of 21:42, 9 June 2021
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