createCenter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 9: Line 8:


|gr1= Sides |GROUP1=
|gr1= Sides |GROUP1=
____________________________________________________________________________________________


| Instanciate a [[Side]] center. A [[Side]] center is required to be able to [[createGroup|create groups]] of this side.<br>
| Instanciate a [[Side]] center. A [[Side]] center is required to be able to [[createGroup|create groups]] of this side.<br>
Line 18: Line 16:


{{Feature|arma3 | In Arma 3, centers for all sides are all created by the engine.}} |DESCRIPTION=
{{Feature|arma3 | In Arma 3, centers for all sides are all created by the engine.}} |DESCRIPTION=
____________________________________________________________________________________________


|  [[createCenter]] side |SYNTAX=
|  [[createCenter]] side |SYNTAX=
Line 25: Line 22:


| [[Side]] |RETURNVALUE=
| [[Side]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>[[createCenter]] [[east]];</code> |EXAMPLE1=
|x1= <code>[[createCenter]] [[east]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[deleteCenter]], [[createUnit]], [[createGroup]], [[createVehicle]], [[side]], [[Side]] |SEEALSO=
| [[deleteCenter]], [[createUnit]], [[createGroup]], [[createVehicle]], [[side]], [[Side]] |SEEALSO=

Revision as of 00:19, 17 January 2021

Hover & click on the images for description

Description

Description:
Instanciate a Side center. A Side center is required to be able to create groups of this side.
Centers can only be created for east, west, resistance, civilian and sideLogic sides.
Created sides must have their "side-friendship" defined with setFriend.
In Armed Assault and Arma 2, only Mission.sqm's units side centers are created; e.g if no resistance unit has been placed in the editor you must use createCenter before being able to create a resistance group.
Arma 3
In Arma 3, centers for all sides are all created by the engine.
Groups:
Sides

Syntax

Syntax:
createCenter side
Parameters:
side: Side
Return Value:
Side

Examples

Example 1:
createCenter east;

Additional Information

See also:
deleteCentercreateUnitcreateGroupcreateVehiclesideSide

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