getAssignedCuratorUnit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.16 | |1.16 | ||
|gr1= Curator | |gr1= Curator | ||
| Returns unit assigned to curator logic. | | Returns unit assigned to curator logic. | ||
| '''getAssignedCuratorUnit''' curatorObj | | '''getAssignedCuratorUnit''' curatorObj | ||
|p1= curatorObj: [[Object]] - Curator module. | |p1= curatorObj: [[Object]] - Curator module. | ||
| [[Object]] | | [[Object]] | ||
|x1= <code>_curatorUnit = [[getAssignedCuratorUnit]] ([[allCurators]] [[select]] 0); | |x1= <code>_curatorUnit = [[getAssignedCuratorUnit]] ([[allCurators]] [[select]] 0); | ||
_curatorUnit [[joinAs]] [<nowiki/>[[createGroup]] [[civilian]], 0];</code> | _curatorUnit [[joinAs]] [<nowiki/>[[createGroup]] [[civilian]], 0];</code> | ||
| [[getAssignedCuratorLogic]] | | [[getAssignedCuratorLogic]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:37, 18 January 2021
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
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)};