BIS fnc curatorRespawn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>")
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.16


|1.16
|gr1= Curator


|gr1 = Curator
|descr= Restore unit for curators after respawn.
When curator owner, it will transfer ownership to the new unit.
When editable by curator, it will remove the dead unit and register the new one.


|Restore unit for curators after respawn.
|s1= [newUnit,oldUnit] call [[BIS_fnc_curatorRespawn]]
When curator owner, it will transfer ownership to the new unit.
When editable by curator, it will remove the dead unit and register the new one.


|p1= newUnit: [[Object]] - new unit


| [newUnit,oldUnit] call [[BIS_fnc_curatorRespawn]]
|p2= oldUnit [[Object]] - old, dead unit


|p1=newUnit: [[Object]] - New unit
|r1= [[Boolean]]


|p2=oldUnit [[Object]] - Old, dead unit
|x1= <sqf>[BIS_newUnit,BIS_oldUnit] call BIS_fnc_curatorRespawn;</sqf>


| [[Boolean]]
|seealso= [[Arma 3: Curator]]
 
|x1= <code>[BIS_newUnit,BIS_oldUnit] [[call]] [[BIS_fnc_curatorRespawn]];</code>
 
 
| [[Curator]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:curatorRespawn}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:curatorRespawn}}]]

Latest revision as of 13:04, 5 May 2022

Hover & click on the images for description

Description

Description:
Restore unit for curators after respawn. When curator owner, it will transfer ownership to the new unit. When editable by curator, it will remove the dead unit and register the new one.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[newUnit,oldUnit] call BIS_fnc_curatorRespawn
Parameters:
newUnit: Object - new unit
oldUnit Object - old, dead unit
Return Value:
Boolean

Examples

Example 1:
[BIS_newUnit,BIS_oldUnit] call BIS_fnc_curatorRespawn;

Additional Information

See also:
Arma 3: Curator

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