unassignCurator: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
SilentSpike (talk | contribs) No edit summary |
||
Line 38: | Line 38: | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]] | [[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on June 9, 2014 - 18:36 (UTC)</dd> | |||
<dt class="note">'''[[User:SilentSpike|SilentSpike]]'''</dt> | |||
<dd class="note"> | |||
Note that curator objects assigned in the editor don't actually get assigned to units until (as far as I can tell) after the mission briefing. So if you want to unassign one at the start of a mission for some reason (parameter in my case) then use the command only after the assigned unit is no longer a null object. An example: | |||
<code>waitUntil {!([[isNull]] ([[getAssignedCuratorUnit]] curatorObj))}; | |||
unassignCurator curatorObj;</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 19:36, 9 June 2014
Description
- Description:
- Unassign curator (will destroy both sides of connection).
- Multiplayer:
- Can be executed only on server
- Groups:
- Uncategorised
Syntax
- Syntax:
- unassignCurator curatorObj
- Parameters:
- curatorObj: Object - Curator module.
- Return Value:
- Nothing
Examples
- Example 1:
unassignCurator myCurator;
Additional Information
- See also:
- CuratorassignCurator
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 June 9, 2014 - 18:36 (UTC)
- SilentSpike
-
Note that curator objects assigned in the editor don't actually get assigned to units until (as far as I can tell) after the mission briefing. So if you want to unassign one at the start of a mission for some reason (parameter in my case) then use the command only after the assigned unit is no longer a null object. An example:
waitUntil {!(isNull (getAssignedCuratorUnit curatorObj))}; unassignCurator curatorObj;