getAssignedCuratorUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(54 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.16


|1.16|= Game version
|gr1= Curator
____________________________________________________________________________________________


| Returns unit assigned to curator logic. |= Description
|descr= Returns unit assigned to curator logic.
____________________________________________________________________________________________


| '''getAssignedCuratorUnit''' curatorObj |= Syntax
|s1= [[getAssignedCuratorUnit]] curatorObj


|p1= curatorObj: [[Object]] - Curator module. |= PARAMETER1 
|p1= curatorObj: [[Object]] - curator module.


| [[Object]] |= RETURNVALUE
|r1= [[Object]]


|x1= <code></code>|= EXAMPLE1
|x1= <sqf>
_curatorUnit = getAssignedCuratorUnit (allCurators select 0);
_curatorUnit joinAs [createGroup civilian, 0];
</sqf>


____________________________________________________________________________________________
|seealso= [[getAssignedCuratorLogic]]
 
}}
|= SEEALSO


|  |= MPBEHAVIOUR
<dl class="command_description">
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
<dt></dt>
<dl class='command_description'>
<dd class="notedate">Posted on 2014-08-17 - 17:06 (UTC)</dd>
<!-- Note Section BEGIN -->
<dt class="note">[[User:SilentSpike|SilentSpike]]</dt>
<dd class="note">
This command will return [[objNull]] if used immediately after the curator unit is assigned to the logic in question (this includes at mission time 0). To avoid problems use the following beforehand:
<sqf>waitUntil {!isNull (getAssignedCuratorUnit logic)};</sqf>
</dd>


<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns unit assigned to curator logic.
Groups:
Curator

Syntax

Syntax:
getAssignedCuratorUnit curatorObj
Parameters:
curatorObj: Object - curator module.
Return Value:
Object

Examples

Example 1:
_curatorUnit = getAssignedCuratorUnit (allCurators select 0); _curatorUnit joinAs [createGroup civilian, 0];

Additional Information

See also:
getAssignedCuratorLogic

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
Posted on 2014-08-17 - 17:06 (UTC)
SilentSpike
This command will return objNull if used immediately after the curator unit is assigned to the logic in question (this includes at mission time 0). To avoid problems use the following beforehand:
waitUntil {!isNull (getAssignedCuratorUnit logic)};