getAssignedCuratorUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\| * )+\}\}" to "}}")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.16
|1.16


|gr1= Curator
|gr1= Curator


| Returns unit assigned to curator logic.
|descr= Returns unit assigned to curator logic.
 
| '''getAssignedCuratorUnit''' curatorObj
 
|p1= curatorObj: [[Object]] - Curator module.


| [[Object]]
|s1= [[getAssignedCuratorUnit]] curatorObj


|x1= <code>_curatorUnit = [[getAssignedCuratorUnit]] ([[allCurators]] [[select]] 0);
|p1= curatorObj: [[Object]] - curator module.
_curatorUnit [[joinAs]] [<nowiki/>[[createGroup]] [[civilian]], 0];</code>


|r1= [[Object]]


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


|seealso= [[getAssignedCuratorLogic]]
}}
}}


<dl class="command_description">


{{GameCategory|arma3|New Scripting Commands}}
<dt></dt>
{{GameCategory|arma3|Scripting Commands}}
<dd class="notedate">Posted on 2014-08-17 - 17:06 (UTC)</dd>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 17, 2014 - 17:06 (UTC)</dd>
<dt class="note">[[User:SilentSpike|SilentSpike]]</dt>
<dt class="note">[[User:SilentSpike|SilentSpike]]</dt>
<dd class="note">
<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: <code>[[waitUntil]] {![[isNull]] ([[getAssignedCuratorUnit]] logic)};</code>
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>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 14:59, 8 November 2023

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)};