createCenter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |r1=[[" to " |r1= [[")
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(6 intermediate revisions by the same user not shown)
Line 27: Line 27:
Created sides must have their "side-friendship" defined with [[setFriend]].
Created sides must have their "side-friendship" defined with [[setFriend]].


{{Feature | 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|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.}}
{{Feature | arma3 | In Arma 3, centers for all sides are all created by the engine.}}
Line 37: Line 37:
|r1= [[Side]]
|r1= [[Side]]


|x1= <code>[[createCenter]] [[east]];</code>
|x1= <sqf>createCenter east;</sqf>


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

Latest revision as of 18:11, 15 March 2024

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:
deleteCenter createUnit createGroup createVehicle side Side

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