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 - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


|eff= global |Multiplayer Effects=
|game3= arma2
|version3= 1.00


|gr1= Sides |GROUP1=
|game4= arma2oa
____________________________________________________________________________________________
|version4= 1.50


| Instanciate a [[Side]] center. A [[Side]] center is required to be able to [[createGroup|create groups]] of this side.<br>
|game5= tkoh
Centers can only be created for [[east]], [[west]], [[resistance]], [[civilian]] and [[sideLogic]] [[Side|sides]].<br>
|version5= 1.00
Created sides must have their "side-friendship" defined with [[setFriend]].


{{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.}}
|game6= arma3
|version6= 0.50


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


| [[createCenter]] side |SYNTAX=
|gr1= Sides


|p1= side: [[Side]] |PARAMETER1=
|descr= Instanciate a [[Side]] center. A [[Side]] center is required to be able to [[createGroup|create groups]] of this side.<br>
Centers can only be created for [[east]], [[west]], [[resistance]], [[civilian]] and [[sideLogic]] [[Side|sides]].<br>
Created sides must have their "side-friendship" defined with [[setFriend]].


| [[Side]] |RETURNVALUE=
{{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.}}
____________________________________________________________________________________________
 
|x1= <code>[[createCenter]] [[east]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[deleteCenter]], [[createUnit]], [[createGroup]], [[createVehicle]], [[side]], [[Side]] |SEEALSO=
{{Feature | arma3 | In Arma 3, centers for all sides are all created by the engine.}}
}}
 
|s1= [[createCenter]] side


<h3 style="display:none">Notes</h3>
|p1= side: [[Side]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Side]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>createCenter east;</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[deleteCenter]] [[createUnit]] [[createGroup]] [[createVehicle]] [[side]] [[Side]]
{{GameCategory|ofpe|Scripting Commands}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]]

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