createGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (=)
m (changed global to local variable to make clear the variable)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Creates a new AI group for the given center (side). The center must already be in the Mission.sqm or have been initialized with [[createCenter]]. |= Description
| Creates a new AI group for the given [[Side]]. An HQ (center) for that side must already be in the Mission.sqm or have been initialized with [[createCenter]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Group]] <nowiki>=</nowiki> '''createGroup''' side |= Syntax
| [[Group]] <nowiki>=</nowiki> '''createGroup''' [[Side]] |= Syntax


|p1= side: [[Side]] |= Parameter 1
|p1= [[Side]] |= Parameter 1


| [[Group]] |= Return value
| [[Group]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>group <nowiki>=</nowiki> '''createGroup''' [[east]]</code> |= Example 1
|x1= <code>_group <nowiki>=</nowiki> '''createGroup''' [[east]]</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 07:54, 27 August 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Creates a new AI group for the given Side. An HQ (center) for that side must already be in the Mission.sqm or have been initialized with createCenter.
Groups:
Uncategorised

Syntax

Syntax:
Group = createGroup Side
Parameters:
Side
Return Value:
Group

Examples

Example 1:
_group = createGroup east

Additional Information

See also:
createCenter

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

Posted on December 15, 2006 - 21:30
ColonelSandersLite

The group limit is 144 groups groups per side. If you attempt to create a group, and there is no room for another, it simply doesn't create, and it doesn't error.
--5133p39 07:30, 10 July 2007 (CEST)
In Armed Assault, empty groups are not automaticaly deleted - if you created 144 groups, you will not be able to create new group even if all units in all those groups died, because all the 144 groups still exists - you will have to delete some groups manualy.

Bottom Section