createCenter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(moar description, effects in mp)
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(53 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.00|= Game version
|game2= arma1
|eff= global |= Effects in MP
|version2= 1.00
____________________________________________________________________________________________


| In a nutshell, this command creates game [[Side]]. Without side it is not possible to create [[Group]]s. So if center for particular side is undefined, no groups can be created for this side. A [[createUnit|Unit]] needs a group to be able to spawn in. So if no center for particular side exists, no groups for this side can be created and therefore no units for this side can be spawned. In Arma 3, the centers for all sides are created for you. Trying to create center for existing side is ignored.<br><br>
|game3= arma2
|version3= 1.00


'''Old description''': Creates a new AI HQ for the given side. An 'HQ ' is something each side needs to have to be able to communicate. By default, all centers for units which are present in the mission are created before the mission is started. This command can be used to initialize a side which has no units present in the [[Mission.sqm]], so that you can spawn groups and units for it.
|game4= arma2oa
|version4= 1.50


For the available sides see [[Side]]. |= Description
|game5= tkoh
____________________________________________________________________________________________
|version5= 1.00


| '''createCenter''' side|= Syntax
|game6= arma3
|version6= 0.50


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


| [[Side]] |= Return value
|gr1= Sides
____________________________________________________________________________________________
 
|x1= <code>_SideHQ <nowiki>=</nowiki> '''createCenter''' [[east]]</code> |= Example 1
____________________________________________________________________________________________


| [[createUnit]], [[createUnit array]], [[createGroup]], [[createVehicle]], [[createVehicle array]], [[Side]] |= See also
|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]].


}}
{{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.}}
 
|s1= [[createCenter]] side
 
|p1= side: [[Side]]


<h3 style="display:none">Notes</h3>
|r1= [[Side]]
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 17:15, 22 June 2007 (CEST)
<dt class="note">'''[[User:UNN|UNN]]'''<dd class="note">
You need to set the new sides friendly status using the [[setFriend]] command, once you have created your Center. Otherwise the newly created AI will not engage you, if you're on the opposing side.
<!-- Note Section END -->
</dl>


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


[[Category:Scripting Commands|CREATECENTER]]
|seealso= [[deleteCenter]] [[createUnit]] [[createGroup]] [[createVehicle]] [[side]] [[Side]]
[[Category:Scripting Commands OFP Elite |CREATECENTER]]
}}
[[Category:Scripting Commands ArmA|CREATECENTER]]
[[Category:Command_Group:_Object_Manipulation|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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