assignCurator: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(example)
Line 19: Line 19:




|x1= <code>player assignCurator myCurator;</code>|= EXAMPLE1  
|x1= <code>[[player]] [[assignCurator]] myCurator;</code>|= EXAMPLE1  
|x2= <code>_curatorObj = [[createGroup]] [[sideLogic]] [[createUnit]] [
"ModuleCurator_F",
[0,0,0],
[],
0,
"NONE"
];
_playerServerUnit [[assignCurator]] _curatorObj;</code>|= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 18:28, 18 February 2014

Hover & click on the images for description

Description

Description:
Assign player as curator. Two players cannot act as one curator.
Multiplayer:
Can be executed only on server
Groups:
Uncategorised

Syntax

Syntax:
player assignCurator curatorObj
Parameters:
player: Object
curatorObj: Object - Curator module.
Return Value:
Nothing

Examples

Example 1:
player assignCurator myCurator;
Example 2:
_curatorObj = createGroup sideLogic createUnit [ "ModuleCurator_F", [0,0,0], [], 0, "NONE" ]; _playerServerUnit assignCurator _curatorObj;

Additional Information

See also:
CuratorunassignCurator

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