getAssignedCuratorUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Removed: Misleading comment. Synchronization does NOT define player assigned to to Zeus module, it's set by "Owner" attribute. It's because synchronization is not JIP friendly.)
m (template:command argument fix)
Line 12: Line 12:
| '''getAssignedCuratorUnit''' curatorObj |= Syntax
| '''getAssignedCuratorUnit''' curatorObj |= Syntax


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


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


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


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getAssignedCuratorLogic]] |= SEEALSO
| [[getAssignedCuratorLogic]] |SEEALSO=  


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 10:31, 7 April 2019

Hover & click on the images for description

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