BIS fnc addRespawnPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.50|= Game version |eff= local |= ___...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|0.50|= Game version
 
|eff= local |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Add a respawn position for [[Arma 3 Respawn#MenuPosition|respawn menu]]. |= Description
 
Description:
Add a respawn point.
It's recommended to call the function on server only.
When called on client during briefing, the position will broadcasted correctly.
 
Parameter(s):
0:
NAMESPACE
SIDE
GROUP
OBJECT
1:
STRING - marker
GROUP - group leader
OBJECT - object in which or around which players will be respawned
ARRAY - precise position
 
Returns:
ARRAY in format [target,id] (used in BIS_fnc_removeRespawnPosition)
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addRespawnPosition]]; --> |= Syntax
| [<target>,<position>] spawn BIS_fnc_addRespawnPosition; |= Syntax


|p1= |= Parameter 1
|p1= '''target''': Receiver of the respawn position
: [[Namespace]] - use [[missionNamespace]] to add the position to everyone
: [[Side]]
: [[Group]]
: [[Object]]|=
|p2= '''position''':
: [[Array]] in [[Position]] format
: [[Object]] - specific object. When some crew positions are available and unlocked, players will be respawned on them, otherwise they will appear around the object.
: [[String]] - marker name|=


| |= Return value
| [[Array]] in format [target,id] (used in [[BIS_fnc_removeRespawnPosition]]) |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
|x1= <code><nowiki>[</nowiki>[[west]], myRespawnAPC] call BIS_fnc_addRespawnPosition;</code> |=


|x1= <code></code> |=  
|x2= <code><nowiki>[</nowiki>[[missionNamespace]],"arena"] call BIS_fnc_addRespawnPosition;</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Arma 3 Respawn]] |= See also


}}
}}
Line 56: Line 44:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Respawn|{{uc:addRespawnPosition}}]]
 
[[Category:Functions|{{uc:addRespawnPosition}}]]
[[Category:Arma 3:_Functions|addRespawnPosition]]
[[Category:{{Name|arma3}}: Functions|{{uc:addRespawnPosition}}]]

Revision as of 10:10, 23 June 2013

Hover & click on the images for description

Description

Description:
Add a respawn position for respawn menu.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[<target>,<position>] spawn BIS_fnc_addRespawnPosition;
Parameters:
target: Receiver of the respawn position
Namespace - use missionNamespace to add the position to everyone
Side
Group
Object
position:
Array in Position format
Object - specific object. When some crew positions are available and unlocked, players will be respawned on them, otherwise they will appear around the object.
String - marker name
Return Value:
Array in format [target,id] (used in BIS_fnc_removeRespawnPosition)

Examples

Example 1:
[west, myRespawnAPC] call BIS_fnc_addRespawnPosition;
Example 2:
[missionNamespace,"arena"] call BIS_fnc_addRespawnPosition;

Additional Information

See also:
Arma 3 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

Notes

Bottom Section