createCenter: Difference between revisions
Jump to navigation
Jump to search
m (code tags used for example) |
m (template:command argument fix) |
||
(25 intermediate revisions by 11 users not shown) | |||
Line 5: | Line 5: | ||
|1.00|= Game version | |1.00|= Game version | ||
|eff= global |= Effects in MP | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Creates a new AI | | 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. An attempt to create center for existing side is ignored. Center can only be created for: [[east]], [[west]], [[resistance]], [[civilian]] and [[sideLogic]]. These are the only sides groups can be created for. <br><br> | ||
'''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. | |||
For the available sides see [[Side]]. |DESCRIPTION= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''createCenter''' side |= | | '''createCenter''' side|SYNTAX= | ||
|p1= side: [[Side]] |= | |p1= side: [[Side]] |PARAMETER1= | ||
| [[Side]] |= | | [[Side]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>_SideHQ <nowiki>=</nowiki> '''createCenter''' [[east]]</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[deleteCenter]], [[createUnit]], [[createGroup]], [[createVehicle]], [[Side]] |SEEALSO= | ||
}} | }} | ||
Line 27: | Line 32: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- 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 --> | <!-- Note Section END --> | ||
</dl> | </dl> | ||
Line 36: | Line 43: | ||
[[Category:Scripting Commands OFP Elite |CREATECENTER]] | [[Category:Scripting Commands OFP Elite |CREATECENTER]] | ||
[[Category:Scripting Commands ArmA|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}}}}]] |
Revision as of 15:36, 7 April 2019
Description
- Description:
- In a nutshell, this command creates game Side. Without side it is not possible to create Groups. So if center for particular side is undefined, no groups can be created for this side. A 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. An attempt to create center for existing side is ignored. Center can only be created for: east, west, resistance, civilian and sideLogic. These are the only sides groups can be created for.
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. For the available sides see Side. - Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_SideHQ = createCenter east
Additional Information
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
- Posted on 17:15, 22 June 2007 (CEST)
- UNN
- 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.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Object Manipulation
- Command Group: Sides
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters