createCenter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Sides |GROUP1=
|gr1= Sides


| 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 15: Line 15:
{{Informative | In {{arma1}} and {{arma2}}, 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.}}
{{Informative | In {{arma1}} and {{arma2}}, 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.}}


{{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.}}


|  [[createCenter]] side |SYNTAX=
|  [[createCenter]] side


|p1= side: [[Side]] |PARAMETER1=
|p1= side: [[Side]]


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


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



Revision as of 01:10, 18 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

Bottom Section