getAssignedCuratorUnit: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on August ([0-9]{2}), ([0-9]{4})" to ">Posted on $2-08-$1") |
||
(13 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|r1= [[Object]] | |r1= [[Object]] | ||
|x1= < | |x1= <sqf>_curatorUnit = getAssignedCuratorUnit (allCurators select 0); | ||
_curatorUnit | _curatorUnit joinAs [createGroup civilian, 0];</sqf> | ||
|seealso= [[getAssignedCuratorLogic]] | |seealso= [[getAssignedCuratorLogic]] | ||
Line 23: | Line 23: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2014-08-17 - 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: < | 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> |
Revision as of 23:59, 13 May 2023
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: