getAssignedCuratorUnit: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 46: | Line 46: | ||
<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: <code>[[waitUntil]] {![[isNull]] ([[getAssignedCuratorUnit]] logic)};</code> | ||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> | |||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on November 8, 2015 - 12:46 (UTC)</dd> | |||
<dt class="note">[[User:Terox|Terox]]</dt> | |||
<dd class="note"> | |||
It is possible to return the player units assigned to the logic at preinit by returning the synchronizedObjects on that curator logic then filtering out the man class units | |||
<code>{systemchat format ["%1 assigned to %2", _x, synchronizedObjects _x];}foreach allcurators; </code> | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 13:46, 8 November 2015
Description
- Description:
- Returns unit assigned to curator logic.
- Groups:
- Uncategorised
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
Notes
Bottom Section
- Posted on August 17, 2014 - 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)};
- Posted on November 8, 2015 - 12:46 (UTC)
- Terox
-
It is possible to return the player units assigned to the logic at preinit by returning the synchronizedObjects on that curator logic then filtering out the man class units
{systemchat format ["%1 assigned to %2", _x, synchronizedObjects _x];}foreach allcurators;