createCenter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Basic information given.)
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CREATECENTER]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |CREATECENTER]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CREATECENTER]]


| ofpr |= Game name


<h2 style="color:#000066">''' createCenter ''side'''''</h2>
|1.86|= Game version
____________________________________________________________________________________________


| Creates a new AI center for the given side. A 'center' 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''createCenter''' side |= Syntax


'''side:''' [[Side]]
|p1= side: [[Side]] |= Parameter 1


'''Type of returned value:'''
| [[Side]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>center = createCenter [[east]]</pre> |= Example 1
____________________________________________________________________________________________


[[Side]]
|  |= See also


'''Compatibility:'''
}}


Version 1.86 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Creates a new AI center for the given side. A 'center' 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.
<h3 style="display:none">Bottom Section</h3>


'''Example:'''
[[Category:Scripting Commands|CREATECENTER]]
 
[[Category:Scripting Commands OFP Elite |CREATECENTER]]
center = '''createCenter''' [[east]]
[[Category:Scripting Commands ArmA|CREATECENTER]]

Revision as of 23:06, 1 August 2006

Hover & click on the images for description

Description

Description:
Creates a new AI center for the given side. A 'center' 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.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
center = createCenter [[east]]

Additional Information

See also:
See also needed

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