diff --git a/.gitignore b/.gitignore index 613c0c0..aeb1c52 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.vscode *.sqf devHelper/output/ -node_modules/ \ No newline at end of file +node_modules/ +sqf-*.vsix diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cbe5ad1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,437 @@ +Attribution-NonCommercial-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International +Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-NonCommercial-ShareAlike 4.0 International Public License +("Public License"). To the extent this Public License may be +interpreted as a contract, You are granted the Licensed Rights in +consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the +Licensor receives from making the Licensed Material available under +these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-NC-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution, NonCommercial, and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. NonCommercial means not primarily intended for or directed towards + commercial advantage or monetary compensation. For purposes of + this Public License, the exchange of the Licensed Material for + other material subject to Copyright and Similar Rights by digital + file-sharing or similar means is NonCommercial provided there is + no payment of monetary compensation in connection with the + exchange. + + l. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + m. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + n. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part, for NonCommercial purposes only; and + + b. produce, reproduce, and Share Adapted Material for + NonCommercial purposes only. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties, including when + the Licensed Material is used other than for NonCommercial + purposes. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-NC-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database for NonCommercial purposes + only; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + including for purposes of Section 3(b); and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSE.htm b/LICENSE.htm deleted file mode 100644 index 5ceb7d1..0000000 --- a/LICENSE.htm +++ /dev/null @@ -1,48 +0,0 @@ - - -
- Creative Commons License -
VS Code - SQF Language by Armitxes ( Jan Brodersen ) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. -
- This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. - To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/. -
- -
-
- This is a human-readable summary of (and not a substitute for) the license. -
-
- Under the following terms: - -
-
- You are free to: - -
- The licensor cannot revoke these freedoms as long as you follow the license terms. -
- No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material. -
- The author reserves the right to grant additional permissions for his work, if limited or not covered by this license. -
Additional permissions are limited to an issued legal entity and only valid in written form. - -
\ No newline at end of file diff --git a/devHelper/commands/arma.json b/devHelper/commands/arma.json index 7b042ea..3cfabdd 100644 --- a/devHelper/commands/arma.json +++ b/devHelper/commands/arma.json @@ -1,563 +1,3530 @@ { - "docs": "https://community.bistudio.com/wiki/Category:Introduced_with_Armed_Assault", - "1.00": [ - "actionKeys", - "actionKeysImages", - "actionKeysNames", - "activateAddons", - "activateKey", - "addSwitchableUnit", - "addWaypoint", - "animationState", - "assert", - "assignedTarget", - "assignTeam", - "attackEnabled", - "boundingBox", - "breakOut", - "breakTo", - "camCommitPrepared", - "cameraInterest", - "cameraOn", - "campaignConfigFile", - "camPreload", - "camPreloaded", - "camPrepareBank", - "camPrepareDir", - "camPrepareDive", - "camPrepareFocus", - "camPrepareFov", - "camPrepareFovRange", - "camPreparePos", - "camPrepareRelPos", - "camPrepareTarget", - "camSetFocus", - "camUseNVG", - "case", - { - "key": "catch", - "overwrite": { - "type": "exceptionHandling" - } - }, - "ceil", - "clearRadio", - "closeDisplay", - "commandFSM", - "commandGetOut", - { - "key": "compile", - "overwrite": { - "type": "compilationStatement" - } - }, - "composeText", - "configFile", - "configName", - { - "key": "controlNull", - "overwrite": { - "returns": "bool" - } - }, - "createCenter", - "createDisplay", - { - "key": "createGroup", - "overwrite": { - "returns": "objGroup" - } - }, - "createGuardedPoint", - { - "key": "createMarker", - "overwrite": { - "returns": "objMarker" - } - }, - "createMine", - "createSoundSource", - "createTarget", - "createTrigger", - { - "key": "createVehicleLocal", - "overwrite": { - "returns": "objVehicle" - } - }, - "ctrlActivate", - "ctrlCommit", - { - "key": "ctrlCommitted", - "overwrite": { - "returns": "bool" - } - }, - "ctrlFade", - "ctrlMapAnimAdd", - "ctrlMapAnimClear", - "ctrlMapAnimCommit", - "ctrlMapAnimDone", - "ctrlMapScale", - "ctrlParent", - "ctrlPosition", - "ctrlScale", - "ctrlSetActiveColor", - "ctrlSetBackgroundColor", - "ctrlSetEventHandler", - "ctrlSetFade", - "ctrlSetFocus", - "ctrlSetFont", - "ctrlSetFontH1", - "ctrlSetFontH1B", - "ctrlSetFontH2", - "ctrlSetFontH2B", - "ctrlSetFontH3", - "ctrlSetFontH3B", - "ctrlSetFontH4", - "ctrlSetFontH4B", - "ctrlSetFontH5", - "ctrlSetFontH5B", - "ctrlSetFontH6", - "ctrlSetFontH6B", - "ctrlSetFontHeight", - "ctrlSetFontHeightH1", - "ctrlSetFontHeightH2", - "ctrlSetFontHeightH3", - "ctrlSetFontHeightH4", - "ctrlSetFontHeightH5", - "ctrlSetFontHeightH6", - "ctrlSetFontP", - "ctrlSetFontPB", - "ctrlSetForegroundColor", - "ctrlSetPosition", - "ctrlSetScale", - "ctrlSetStructuredText", - "ctrlSetTextColor", - "ctrlSetTooltip", - "ctrlSetTooltipColorBox", - "ctrlSetTooltipColorShade", - "ctrlSetTooltipColorText", - "ctrlShown", - "ctrlType", - "currentCommand", - "date", - "default", - "deleteCenter", - "deleteCollection", - "deleteGroup", - "deleteMarker", - "deleteTarget", - "deleteWaypoint", - { - "key": "displayCtrl", - "overwrite": { - "returns": "uiControl" - } - }, - { - "key": "displayNull", - "overwrite": { - "returns": "bool" - } - }, - { - "key": "displaySetEventHandler", - "overwrite": { - "type": "eventStatement" - } - }, - "dissolveTeam", - { - "key": "doFSM", - "overwrite": { - "type": "executionStatement" - } - }, - "doGetOut", - "drawArrow", - "drawEllipse", - "drawIcon", - "drawLine", - "drawRectangle", - { - "key": "echo", - "overwrite": { - "type": "diagnoseStatement" - } - }, - "effectiveCommander", - { - "key": "emptyPositions", - "overwrite": { - "returns": "scalar", - "syntax": " emptyPositions ", - "example": "_freeCargoPositions = vehicle player emptyPositions \"cargo\";", - "docSyntax": "vehicle emptyPositions position", - "description": "Returns the number of given positions in the vehicle. Positions can be \"Commander\", \"Driver\", \"Gunner\" or \"Cargo\"" - } - }, - "enableAI", - "enableAttack", - "enableEnvironment", - "enableReload", - "enableTeamSwitch", - { - "key": "execVM", - "overwrite": { - "type": "executionStatement" - } - }, - { - "key": "exitWith", - "overwrite": { - "type": "controlStatement" - } - }, - "expectedDestination", - "exportLandscapeXYZ", - "fadeRadio", - "find", - "findCover", - "findDisplay", - "findNearestEnemy", - "finishMissionInit", - "finite", - "floor", - "fog", - "fogForecast", - { - "key": "for", - "overwrite": { - "type": "controlStatement" - } - }, - "forceSpeed", - "formationDirection", - "formationLeader", - "formationMembers", - "formationPosition", - "formationTask", - "formatText", - "from", - "getArray", - "getHideFrom", - "getNumber", - "getPosASL", - "getSpeed", - "getText", - { - "key": "getVariable", - "overwrite": { - "returns": "any", - "syntax": " getVariable ", - "example": "_thePublicVariable = _myTruck getVariable \"myPublicVariable\";", - "docSyntax": "varspace getVariable name", - "description": "Return the value of variable in the variable space assigned to various data types.", - "tags": "[AG] " - } - }, - "glanceAt", - "halt", - "hideBehindScripted", - "hideBody", - "hierarchyObjectsCount", - "htmlLoad", - "image", - "inGameUISetEventHandler", - "inheritsFrom", - "initAmbientLife", - "intersect", - "isArray", - "isClass", - "isFormationLeader", - "isHidden", - "isHideBehindScripted", - "isKeyActive", - "isKindOf", - "isMarkedForCollection", - "isNil", - "isNumber", - "isPlayer", - "isText", - "keyImage", - "keyName", - "lbIsSelected", - "lbSelection", - "lbSetSelected", - "lightAttachObject", - "lightDetachObject", - "limitSpeed", - "lineBreak", - "lookAt", - "max", - "min", - "missionConfigFile", - { - "key": "modelToWorld", - "overwrite": { - "returns": "array", - "syntax": " modelToWorld ", - "example": "_aboveAndBehindPlayer = player modelToWorld [0,-1,3];", - "docSyntax": "model modelToWorld position", - "description": "Translates relative position from object model space into world position." - } - }, - "moveInTurret", - "moveTarget", - "moveTo", - "moveToCompleted", - "moveToFailed", - "nearestObjects", - "nearObjects", - "needReload", - "nextWeatherChange", - "onBriefingTeamSwitch", - "onPlayerConnected", - "onPlayerDisconnected", - "overcast", - "overcastForecast", - "parseNumber", - "parseText", - "playerRespawnTime", - "playerSide", - "playMission", - "positionCameraToWorld", - "posScreenToWorld", - "posWorldToScreen", - "precision", - "preloadCamera", - "preloadObject", - "preloadSound", - "preloadTitleObj", - "preloadTitleRsc", - "preprocessFileLineNumbers", - "processInitCommands", - "radioVolume", - "rain", - "rank", - "reload", - "reloadEnabled", - "removeSwitchableUnit", - "respawnVehicle", - "round", - "runInitScript", - "scopeName", - "scriptDone", - "selectionPosition", - "selectLeader", - "selectPlayer", - "sendSimpleCommand", - "setAperture", - "setAttributes", - "setCameraEffect", - "setCameraInterest", - "setDate", - "setDestination", - "setDropInterval", - "setEffectCondition", - "setFormationTask", - "setFriend", - "setHideBehind", - "setLightAmbient", - "setLightBrightness", - "setLightColor", - "setMarkerBrush", - "setMarkerDir", - "setMarkerShape", - "setMarkerText", - "setMousePosition", - "setMusicEffect", - "setParticleCircle", - "setParticleParams", - "setParticleRandom", - "setPlayable", - "setPosASL", - "setRank", - "setSoundEffect", - "setTargetAge", - "setTitleEffect", - "setTriggerActivation", - "setTriggerArea", - "setTriggerStatements", - "setTriggerText", - "setTriggerTimeout", - "setTriggerType", - "setUnitAbility", - "setUnitRank", - { - "key": "setVariable", - "overwrite": { - "returns": "void", - "syntax": " setVariable [,]", - "example": "_myTruck setVariable [\"myPublicVariable\", 123, true];", - "docSyntax": "varspace setVariable [name, value]", - "description": "Set variable to given value in the variable space of given element.", - "tags": "[AG] [EL] " - } - }, - "setVectorDir", - "setVectorUp", - "setVehicleAmmo", - "setVehicleArmor", - "setVehicleId", - "setVehicleInit", - "setVehicleLock", - "setVehiclePosition", - "setVehicleVarName", - "setWaypointBehaviour", - "setWaypointCombatMode", - "setWaypointDescription", - "setWaypointFormation", - "setWaypointHousePosition", - "setWaypointPosition", - "setWaypointScript", - "setWaypointSpeed", - "setWaypointStatements", - "setWaypointTimeout", - "setWaypointType", - "showWaypoint", - "sleep", - { - "key": "spawn", - "overwrite": { - "type": "executionStatement" - } - }, - "step", - "str", - "supportInfo", - { - "key": "surfaceIsWater", - "overwrite": { - "returns": "bool", - "syntax": "surfaceIsWater ", - "example": "_isWater = surfaceIsWater [1000, 3000];", - "docSyntax": "surfaceIsWater position", - "description": "Returns whether water is at given position." - } - }, - "surfaceType", - { - "key": "switch", - "overwrite": { - "type": "controlStatement" - } - }, - "switchableUnits", - "synchronizeWaypoint", - "synchronizeWaypoint trigger", - "teamSwitch", - "teamSwitchEnabled", - "terminate", - "text", - { - "key": "throw", - "overwrite": { - "type": "exceptionHandling" - } - }, - "to", - "triggerAttachObject", - "triggerAttachVehicle", - { - "key": "try", - "overwrite": { - "type": "exceptionHandling" - } - }, - "typeName", - "unassignTeam", - "unitPos", - "vectorDir", - "vectorUp", - "vehicles", - "vehicleVarName", - "verifySignature", - "waitUntil", - "waypointAttachObject", - "waypointAttachVehicle", - "weaponDirection", - "wind", - "worldName", - "worldToModel" - ], - "1.04": [ - "createMarkerLocal", - "deleteMarkerLocal", - "markerDir", - "markerText", - "setMarkerBrushLocal", - "setMarkerColorLocal", - "setMarkerDirLocal", - "setMarkerPosLocal", - "setMarkerShapeLocal", - "setMarkerSizeLocal", - "setMarkerTextLocal", - "setMarkerTypeLocal", - "setUnitPosWeak" - ], - "1.05": [ - "addVehicle", - "assignedVehicle", - "assignedVehicleRole", - "ctrlMapScreenToWorld", - "ctrlMapWorldToScreen", - "cutFadeOut", - "difficultyEnabled", - "distributionRegion", - "setCurrentWaypoint", - "titleFadeOut", - "waypoints" - ], - "1.06": [ - "isServer", - "joinSilent" - ], - "1.07": [ - "nearTargets" - ], - "1.08": [ - "airportSide", - "assignToAirport", - "attachedObject", - "attachObject", - "clearVehicleInit", - "createLocation", - "createMissionDisplay", - "deleteLocation", - "drawLocation", - "importance", - "landAt", - "lbSort", - "lbSortByValue", - "locationPosition", - "nearestLocation", - "nearestLocations", - "rectangular", - "setAirportSide", - "setDirection", - "setImportance", - "setName", - "setPosition", - "setRectangular", - "setSide", - "setSize", - "setText", - "setType", - "size", - "sizeOf", - "type" - ], - "1.09": [ - "addPublicVariableEventHandler", - "setVectorDirAndUp", - "toArray", - "toLower", - "toString", - "toUpper" - ], - "1.11": [ - "removeClothing" - ] + "addSwitchableUnit": { + "command": "addSwitchableUnit", + "timestamp": "2021-01-22T21:30:56Z", + "version": "1.00", + "syntax": "addSwitchableUnit ", + "docSyntax": "addSwitchableUnit unit", + "tags": "", + "description": "Adds an unit to the list of units available for Team Switch. Units marked as playable in editor are automatically switchable. This command allows to add non-playable unit into array of switchableUnits and make them available for teamSwitch. 'Singleplayer only!'", + "example": "addSwitchableUnit bob;", + "params": "", + "returns": "nothing" + }, + "animationState": { + "command": "animationState", + "timestamp": "2021-01-22T21:37:58Z", + "version": "1.00", + "syntax": "animationState ", + "docSyntax": "animationState unitName", + "tags": "[AG]", + "description": "Returns the name of a unit's current primary animation. Seems to be forced to lower case in arma3. FeatureInformativeThis command is only for a man unit, other units such as animals cannot use this command.", + "example": "_state = animationState player;", + "params": "", + "returns": "string" + }, + "assert": { + "command": "assert", + "timestamp": "2021-06-13T21:56:47Z", + "version": "1.00", + "syntax": "assert ", + "docSyntax": "assert condition", + "tags": "", + "description": "Tests a condition and if the condition is false, displays error on screen (if -showscripterrors enabled) and logs error into .rpt file. It does not interrupt the script execution. If script was pre-processed with preprocessFileLineNumbers, it will also show/log the error line number and the file name.", + "example": "assert (1 > 2);", + "params": "", + "returns": "boolean" + }, + "boundingBox": { + "command": "boundingBox", + "timestamp": "2021-01-22T21:33:22Z", + "version": "1.00", + "syntax": "boundingBox <>", + "docSyntax": "boundingBox object", + "tags": "", + "description": "right|200px Returns a bounding box of given object in model coordinate space, adjusted according to destruction/animation of an object. This command is rather generous on the size estimation, for more precise coordinates use boundingBoxReal. Feature Informative In GVIarma31.92 The output of both syntaxes got extended to include bounding sphere diameter. See also sizeOf.", + "example": "private _box = boundingBox _abrams;", + "params": " ", + "returns": "br" + }, + "breakOut": { + "command": "breakOut", + "timestamp": "2021-01-22T21:34:11Z", + "version": "1.00", + "syntax": "breakOut ", + "docSyntax": "breakOut name", + "tags": "", + "description": "Breaks out of the scope with given 'name'. * An unknown scopeName name will cause the script error icGeneric error in expression * If multiple scopes with the same 'name' exist, the command will break out the nearest scope. See 'Example 3'.", + "example": "scopeName \"main\"; while {true} do { scopeName \"loop1\"; while {true} do { scopeName \"loop2\"; if (condition1) then {breakTo \"main\"}; // Breaks all scopes and return to \"main\" if (condition2) then {breakOut \"loop2\"}; // Breaks scope named \"loop2\" sleep 1; }; sleep 1; }; ", + "params": " ", + "returns": "nothing" + }, + "breakTo": { + "command": "breakTo", + "timestamp": "2021-06-13T22:21:03Z", + "version": "1.00", + "syntax": "breakTo ", + "docSyntax": "breakTo name", + "tags": "", + "description": "Breaks block to scope named ''name''. Nil is returned. Scope name can be assigned using scopeName command.", + "example": "scopeName \"main\"; while { true } do { scopeName \"loop1\"; while { true } do { scopeName \"loop2\"; if (condition1) then { breakTo \"main\" }; // breaks all scopes and return to \"main\" if (condition2) then { breakOut \"loop2\" }; // breaks scope named \"loop2\" sleep 1; }; sleep 1; }; ", + "params": "", + "returns": "nothing" + }, + "camCommitPrepared": { + "command": "camCommitPrepared", + "timestamp": "2021-01-22T21:45:03Z", + "version": "1.00", + "syntax": " camCommitPrepared ", + "docSyntax": "camera camCommitPrepared time", + "tags": "[AL] [EL]", + "description": "Smoothly conducts the changes that were assigned to a camera within the given time. If the time is set to zero, the changes are done immediately. This command is for use with camPrepareXXX commands. For the normal cam command use camCommit.", + "example": "// Create a camera object _cam nowiki= \"camera\" camCreate [5600,4800,10]; _cam camPrepareTarget player; _cam cameraEffect [\"internal\", \"BACK\"]; _cam camCommitPrepared 0; // Smoothly move the camera to its new position in 6 seconds _cam camPreparePos [5680,4720,20]; _cam camCommitPrepared 6; waitUntil {camCommitted _cam}; // Proceed", + "params": " ", + "returns": "nothing" + }, + "cameraInterest": { + "command": "cameraInterest", + "timestamp": "2021-01-22T21:54:00Z", + "version": "1.00", + "syntax": "cameraInterest ", + "docSyntax": "cameraInterest entity", + "tags": "", + "description": "Return camera interest for given entity, as set by setCameraInterest, or as autodetected.", + "example": "camInterest = cameraInterest myUnit; ", + "params": "", + "returns": "number" + }, + "cameraOn": { + "command": "cameraOn", + "timestamp": "2021-01-22T21:55:43Z", + "version": "1.00", + "syntax": "cameraOn", + "docSyntax": "cameraOn", + "tags": "", + "description": "Returns the vehicle to which the camera is attached.", + "example": "_object = cameraOn;", + "params": "", + "returns": "object" + }, + "campaignConfigFile": { + "command": "campaignConfigFile", + "timestamp": "2021-01-22T22:05:48Z", + "version": "1.00", + "syntax": "campaignConfigFile", + "docSyntax": "campaignConfigFile", + "tags": "", + "description": "Returns root of campaign description.ext entries hierarchy.", + "example": "_config = campaignConfigFile;", + "params": "", + "returns": "config" + }, + "camPreload": { + "command": "camPreload", + "timestamp": "2021-01-22T21:45:26Z", + "version": "1.00", + "syntax": " camPreload ", + "docSyntax": "camera camPreload timeout", + "tags": "", + "description": "Preloads the scene for the prepared camera with given timeout after which preloading is aborted. Max timeout is 30 seconds. Timeout of 0 means max timeout of 30 seconds as well. Feature Informative This command will read prepared params set with camPrepareFOV, camPreparePos and camPrepareTarget, so no camCommitPrepared is necessary. If camPrepareFOV is not set, the default value is 1. If camPrepareTarget (for direction) and camPreparePos (for position) are not set, current direction and position of the camera are used. The prepared camera preload will preload main camera as well. cameraEffect is not necessary", + "example": "_camera 'camPreload' 5", + "params": " ", + "returns": "nothing" + }, + "camPreloaded": { + "command": "camPreloaded", + "timestamp": "2021-01-22T21:42:01Z", + "version": "1.00", + "syntax": "camPreloaded ", + "docSyntax": "camPreloaded camera", + "tags": "", + "description": "Checks whether the camera has finished preloading.", + "example": "'?(camPreloaded' _camera) : exit", + "params": "", + "returns": "boolean" + }, + "camPrepareBank": { + "command": "camPrepareBank", + "timestamp": "2021-01-22T21:39:10Z", + "version": "1.00", + "syntax": " camPrepareBank ", + "docSyntax": "camera camPrepareBank bank", + "tags": "", + "description": "Prepares the camera bank angle. FeatureWarningThis command is 'non-functional'!", + "example": "_camera 'camPrepareBank' -0.1", + "params": " ", + "returns": "nothing" + }, + "camPrepareDir": { + "command": "camPrepareDir", + "timestamp": "2021-01-22T21:35:50Z", + "version": "1.00", + "syntax": " camPrepareDir ", + "docSyntax": "camera camPrepareDir direction", + "tags": "", + "description": "Prepares the camera heading. FeatureWarningThis command is 'non-functional'!", + "example": "_camera 'camPrepareDir' 150", + "params": " ", + "returns": "nothing" + }, + "camPrepareDive": { + "command": "camPrepareDive", + "timestamp": "2021-01-22T21:39:00Z", + "version": "1.00", + "syntax": " camPrepareDive ", + "docSyntax": "camera camPrepareDive dive", + "tags": "", + "description": "Prepares the camera dive angle. FeatureWarningThis command is 'non-functional'!", + "example": "_camera 'camPrepareDive' -0.1", + "params": " ", + "returns": "nothing" + }, + "camPrepareFocus": { + "command": "camPrepareFocus", + "timestamp": "2021-01-22T21:37:23Z", + "version": "1.00", + "syntax": " camPrepareFocus ", + "docSyntax": "camera camPrepareFocus focusRange", + "tags": "", + "description": "focusRange is in format [distance,blur]. Prepares the camera focus blur. '[-1,1]' will reset default values (auto focusing), '[-1,-1]' will disable postprocessing (all is focused). Needs the call of camCommitPrepared to be conducted.", + "example": "_camera 'camPrepareFocus' [50, 1]", + "params": " ", + "returns": "nothing" + }, + "camPrepareFov": { + "command": "camPrepareFov", + "timestamp": "2021-01-22T21:43:28Z", + "version": "1.00", + "syntax": " camPrepareFov ", + "docSyntax": "camera camPrepareFov fieldOfView", + "tags": "", + "description": "Prepares the camera field of view (zoom). The default zoom level is 0.75, 0.01 is the nearest and 2 the furthest zoom value. The angle of the field of view is ''atan(FOV)*2'' radians when in \n\t4:3 aspect ratio. Needs the call of camCommitPrepared to be conducted.", + "example": "_camera 'camPrepareFov' 0.1", + "params": " ", + "returns": "nothing" + }, + "camPrepareFovRange": { + "command": "camPrepareFovRange", + "timestamp": "2021-01-22T21:41:28Z", + "version": "1.00", + "syntax": " camPrepareFovRange ", + "docSyntax": "camera camPrepareFovRange fovRange", + "tags": "", + "description": "Prepares the camera field of view range for auto zooming. FeatureWarningThis command is 'non-functional'!", + "example": "_camera camPrepareFovRange [0.1, 0.5]", + "params": " ", + "returns": "nothing" + }, + "camPreparePos": { + "command": "camPreparePos", + "timestamp": "2021-01-22T21:40:25Z", + "version": "1.00", + "syntax": " camPreparePos ", + "docSyntax": "camera camPreparePos position", + "tags": "", + "description": "Prepares the camera position. Needs the call of camCommitPrepared to be conducted.", + "example": "_camera 'camPreparePos' getPos player", + "params": " ", + "returns": "nothing" + }, + "camPrepareRelPos": { + "command": "camPrepareRelPos", + "timestamp": "2021-01-22T21:45:38Z", + "version": "1.00", + "syntax": " camPrepareRelPos positionrelative", + "docSyntax": "camera camPrepareRelPos position", + "tags": "", + "description": "Prepares the camera position relative to the current position of the currect target (see camPrepareTarget). Needs the call of camCommitPrepared to be conducted.", + "example": "_camera 'camPrepareRelPos' [10,5,-2]", + "params": " positionrelative", + "returns": "nothing" + }, + "camPrepareTarget": { + "command": "camPrepareTarget", + "timestamp": "2021-01-22T21:43:45Z", + "version": "1.00", + "syntax": " camPrepareTarget ", + "docSyntax": "camera camPrepareTarget position", + "tags": "", + "description": "Prepares the camera target to a position or to a target. Needs the call of camCommitPrepared to be conducted.", + "example": "_camera camPrepareTarget getPos player;", + "params": " ", + "returns": "nothing" + }, + "case": { + "command": "case", + "timestamp": "2021-06-13T22:16:54Z", + "version": "1.00", + "syntax": "case ", + "docSyntax": "case b", + "tags": "", + "description": "This command is used inside a switch construct. brAlthough the syntax below states that this operator takes only one argument, that is most likely not true. It seems like it needs two arguments of which the left one is some sort of hidden variable that gets defined inside a switch construct. That is the reason why bthis operator can not be used outside a switch construct. (see https://foxhound.international/arma-3-sqf-grammar.html for further explaination)br Also note that it is not possible to store the returned in a variable and use that variable in another switch construct. It will never lead to an execution of the corresponding code block.", + "example": "switch (_condition) do { case 1: { hint \"1\" }; case 2: { hint \"2\" }; default { hint \"default\" }; };", + "params": "", + "returns": "" + }, + "catch": { + "command": "catch", + "timestamp": "2021-06-13T22:15:46Z", + "version": "1.00", + "syntax": "exception catch ", + "docSyntax": "tryBlock catch code", + "tags": "", + "description": "Processes code when an exception is thrown in a try block. The exception caught can be found in the ''_exception'' variable.", + "example": "try {throw \"invalid argument\"} catch {hint str _exception};", + "params": "exception ", + "returns": "anything" + }, + "ceil": { + "command": "ceil", + "timestamp": "2021-01-22T22:00:20Z", + "version": "1.00", + "syntax": "ceil ", + "docSyntax": "ceil x", + "tags": "", + "description": "The ceil value of x.", + "example": "ceil 5.25; // Result is 6", + "params": "", + "returns": "number" + }, + "closeDisplay": { + "command": "closeDisplay", + "timestamp": "2021-01-22T22:01:26Z", + "version": "1.00", + "syntax": " closeDisplay ", + "docSyntax": "display closeDisplay exitCode", + "tags": "", + "description": "Closes given display with exit code. It does not instantly close the display but does it on next simulation cycle. Most common exit codes \nare: #define IDC_OK 1 // emulate \"OK\" button #define IDC_CANCEL 2 // emulate \"Cancel\" buttonFeature important Sometimes when one display is opened on top of another display, previous display may not close properly, i.e. some display EHs such as \"onUnload\" may never fire. Use this command to manually handle such displays.", + "example": "sqf_display closeDisplay 1;", + "params": " ", + "returns": "nothing" + }, + "commandFSM": { + "command": "commandFSM", + "timestamp": "2021-01-22T22:00:36Z", + "version": "1.00", + "syntax": " commandFSM ", + "docSyntax": "unitName commandFSM [fsm name, position, target]", + "tags": "", + "description": "Orders a unit to process command defined by FSM file (via the radio).", + "example": "_soldierOne commandFSM [\"move.fsm\", position player, player]", + "params": " ", + "returns": "nothing" + }, + "compile": { + "command": "compile", + "timestamp": "2021-01-22T22:04:54Z", + "version": "1.00", + "syntax": "compile ", + "docSyntax": "compile expression", + "tags": "", + "description": "Compiles String expression into Code.", + "example": "_string nowiki= \"a nowiki= a + 1\"; _code nowiki= compile _string; call _code;", + "params": "", + "returns": "code" + }, + "config_/_name": { + "command": "config_/_name", + "timestamp": "2021-06-13T22:06:48Z", + "version": "1.00", + "syntax": " / ", + "docSyntax": "config / name", + "tags": "", + "description": "Returns config entry with given name (alias for config >> name, slightly slower but with higher precedence). Feature informative Not to be confused with division operator /.", + "example": "/ \"CfgVehicles\";", + "params": " ", + "returns": "config" + }, + "config_greater_greater_name": { + "command": "config_greater_greater_name", + "timestamp": "2021-06-13T22:03:00Z", + "version": "1.00", + "syntax": " >> ", + "docSyntax": "config >> name", + "tags": "", + "description": "Returns config entry with given name (alias of lower precedence)", + "example": ">> \"CfgVehicles\";", + "params": " ", + "returns": "config" + }, + "configFile": { + "command": "configFile", + "timestamp": "2021-01-22T21:59:15Z", + "version": "1.00", + "syntax": "configFile", + "docSyntax": "configFile", + "tags": "", + "description": "Return root of config entries hierarchy.", + "example": "_isMyClassActive = isClass (configFile >> \"CfgPatches\" >> \"MyClass\");", + "params": "", + "returns": "config" + }, + "configName": { + "command": "configName", + "timestamp": "2021-06-13T22:10:59Z", + "version": "1.00", + "syntax": "Name config", + "docSyntax": "configName config", + "tags": "", + "description": "Returns name of config entry.", + "example": "_name = >> \"CfgVehicles\"); // result is \"CfgVehicles\"", + "params": "", + "returns": "string" + }, + "controlNull": { + "command": "controlNull", + "timestamp": "2021-01-22T22:00:54Z", + "version": "1.00", + "syntax": "controlNull", + "docSyntax": "controlNull", + "tags": "", + "description": "A non-existing Control. To compare non-existent objects use isNull or isEqualTo (see examples).", + "example": "if (_myCtrl isEqualTo controllNull) then { hint \"_myCtrl is null!\"; };", + "params": "", + "returns": "control" + }, + "createDisplay": { + "command": "createDisplay", + "timestamp": "2021-01-22T22:01:42Z", + "version": "1.00", + "syntax": " createDisplay description", + "docSyntax": "parent createDisplay resourceName", + "tags": "", + "description": "Creates child display of given display and loads from \"resourceName\". The notable difference between description.ext for resourceName config, if not found, it will then look in main config. FeatureinformativeIf an ''overlay'' is needed instead, use cutRsc.", + "example": "findDisplay 46 createDisplay \"RscCredits\";", + "params": " description", + "returns": "display | nothing" + }, + "createMarker": { + "command": "createMarker", + "timestamp": "2021-01-22T22:00:27Z", + "version": "1.00", + "syntax": "createMarker [, position2d, , ]", + "docSyntax": "createMarker [name, position, channel, creator]", + "tags": "[EG]", + "description": "Creates a new map marker at the given position. The marker will be created for every connected player as well as all JIP players. The marker name has to be unique; the command will be ignored if a marker with the given name already exists. FeatureimportantThe marker will be visible only once at least markerType has been \ndefined: divcode_marker = createMarker [\"markername\", player]; ccNot visible yet. _marker setMarkerType \"hd_dot\"; ccVisible. FeatureInformativeIf the marker position is given in 3D format, the z-coordinate is stored with the marker and will be used when the marker is passed to commands such as createVehicle, createUnit, createAgent, createMine or setVehiclePosition.brWhen a marker is manually placed in the editor, z is always 0, which means the marker is placed on the ground. But when the player places a marker on the map in game, it is placed at sea level, so the z-coordinate of that marker is ic<->getTerrainHeightASL markerPos <USERMARKER>.", + "example": "_marker1 = createMarker [\"Marker1\", position player];", + "params": " position2d ", + "returns": "string" + }, + "createTarget": { + "command": "createTarget", + "timestamp": "2021-01-22T21:58:28Z", + "version": "1.00", + "syntax": " createTarget ", + "docSyntax": "obj createTarget [type, position, typeAccuracy, posAccuracy]", + "tags": "", + "description": "Create a target.", + "example": "_target = 'createTarget' [\"targetType\", [0,0,0], 1, 1]", + "params": " ", + "returns": "target" + }, + "createVehicleLocal": { + "command": "createVehicleLocal", + "timestamp": "2021-01-22T22:01:09Z", + "version": "1.00", + "syntax": " createVehicleLocal positionagl", + "docSyntax": "type createVehicleLocal position", + "tags": "[EL]", + "description": "Creates an object of the given type. Created object is not transferred through network in MP games. netId of such vehicle in multiplayer will be \"\n\t0:0\". To disable local vehicle creation, use CfgDisabledCommands to blacklist this command. Alternatively, you can use createSimpleObject with local option enabled where applicable.", + "example": "_lightsource = \"#lightpoint\" createVehicleLocal _pos;", + "params": " positionagl", + "returns": "object" + }, + "ctrlActivate": { + "command": "ctrlActivate", + "timestamp": "2021-01-22T21:59:17Z", + "version": "1.00", + "syntax": "ctrlActivate ", + "docSyntax": "ctrlActivate controlName", + "tags": "", + "description": "Launch actions attached to given (button based) control. br Command only triggers 'action' entry described in control config and engine-based actions (cancel or ok codes) and will not trigger button related User Interface Event Handlers.br Command ignores control disabled state. (Example 2)", + "example": "ctrlActivate _control", + "params": "", + "returns": "nothing" + }, + "ctrlCommit": { + "command": "ctrlCommit", + "timestamp": "2021-01-22T22:06:56Z", + "version": "1.00", + "syntax": " ctrlCommit ", + "docSyntax": "control ctrlCommit time", + "tags": "", + "description": "Commits control animation to last specified duration. Feature important The duration of the animation is not guaranteed to be exactly the same as the given time.", + "example": "_control ctrlCommit 2; // make animation last approx. 2 seconds", + "params": " ", + "returns": "nothing" + }, + "ctrlCommitted": { + "command": "ctrlCommitted", + "timestamp": "2021-01-22T22:00:45Z", + "version": "1.00", + "syntax": "ctrlCommitted ", + "docSyntax": "ctrlCommitted controlName", + "tags": "", + "description": "Check if the control animation is finished.", + "example": "_done = ctrlCommitted _control", + "params": "", + "returns": "boolean" + }, + "ctrlFade": { + "command": "ctrlFade", + "timestamp": "2021-01-22T22:05:07Z", + "version": "1.00", + "syntax": "ctrlFade ", + "docSyntax": "ctrlFade controlName", + "tags": "", + "description": "Returns the current fade factor of control.", + "example": "_scale = ctrlFade _control", + "params": "", + "returns": "number" + }, + "ctrlMapAnimAdd": { + "command": "ctrlMapAnimAdd", + "timestamp": "2021-01-22T22:04:51Z", + "version": "1.00", + "syntax": " ctrlMapAnimAdd [, , position2d]", + "docSyntax": "map ctrlMapAnimAdd [time, zoom, position]", + "tags": "[AL] [EL]", + "description": "Adds the next frame to the map animation.", + "example": "_map ctrlMapAnimAdd [1, 0.1, getMarkerPos \"anim1\"]; ctrlMapAnimCommit _map;", + "params": " position2d", + "returns": "nothing" + }, + "ctrlMapAnimClear": { + "command": "ctrlMapAnimClear", + "timestamp": "2021-01-22T22:01:33Z", + "version": "1.00", + "syntax": "ctrlMapAnimClear ", + "docSyntax": "ctrlMapAnimClear controlName", + "tags": "[AL] [EL]", + "description": "Clears the map animation.", + "example": "ctrlMapAnimClear _ctrlMap;", + "params": "", + "returns": "nothing" + }, + "ctrlMapAnimCommit": { + "command": "ctrlMapAnimCommit", + "timestamp": "2021-01-22T22:04:13Z", + "version": "1.00", + "syntax": "ctrlMapAnimCommit ", + "docSyntax": "ctrlMapAnimCommit mapControl", + "tags": "[AL] [EL]", + "description": "Plays the map animation.", + "example": "_ctrl ctrlMapAnimAdd [0, 0.05, player]; ctrlMapAnimCommit _ctrl;", + "params": "", + "returns": "nothing" + }, + "ctrlMapAnimDone": { + "command": "ctrlMapAnimDone", + "timestamp": "2021-01-22T22:03:41Z", + "version": "1.00", + "syntax": "ctrlMapAnimDone ", + "docSyntax": "ctrlMapAnimDone controlName", + "tags": "[AL] [EL]", + "description": "Checks whether the map animation has finished.", + "example": "_isDone = ctrlMapAnimDone _ctrlMap;", + "params": "", + "returns": "boolean" + }, + "ctrlMapScale": { + "command": "ctrlMapScale", + "timestamp": "2021-01-22T22:06:16Z", + "version": "1.00", + "syntax": "MapScale ctrl", + "docSyntax": "ctrlMapScale ctrl", + "tags": "", + "description": "Returns the current scale of given map control.", + "example": "_control = (findDisplay 12) displayCtrl 51; //Arma 3 _scale = ctrlMapScale _control; //returns number from 1 to 0.001", + "params": "", + "returns": "number" + }, + "ctrlParent": { + "command": "ctrlParent", + "timestamp": "2021-01-22T21:59:38Z", + "version": "1.00", + "syntax": "ctrlParent ", + "docSyntax": "ctrlParent control", + "tags": "", + "description": "Returns the parent Display of the given control. For parent Controls group see ctrlParentControlsGroup.", + "example": "_display = ctrlParent _control", + "params": "", + "returns": "display" + }, + "ctrlPosition": { + "command": "ctrlPosition", + "timestamp": "2021-01-22T22:07:25Z", + "version": "1.00", + "syntax": "ctrlPosition ", + "docSyntax": "ctrlPosition controlName", + "tags": "", + "description": "Returns the current position of 2D control as ic[x, y, w, h] array. For 3D control it returns relative ic[x, y, z]. If the control is part of a CT_CONTROLS_GROUP, the returned position will be relative to the group's position.", + "example": "_pos = ctrlPosition _control;", + "params": "", + "returns": "array" + }, + "ctrlScale": { + "command": "ctrlScale", + "timestamp": "2021-01-22T22:01:38Z", + "version": "1.00", + "syntax": "ctrlScale ", + "docSyntax": "ctrlScale control", + "tags": "", + "description": "Returns the current scale of the control.", + "example": "_scale = ctrlScale _control;", + "params": "", + "returns": "number" + }, + "ctrlSetActiveColor": { + "command": "ctrlSetActiveColor", + "timestamp": "2021-01-22T22:00:23Z", + "version": "1.00", + "syntax": " ctrlSetActiveColor color", + "docSyntax": "control ctrlSetActiveColor color", + "tags": "", + "description": "Sets text color of given control when control is selected.", + "example": "_control ctrlSetActiveColor [1, 0, 0, 1]", + "params": " color", + "returns": "nothing" + }, + "ctrlSetBackgroundColor": { + "command": "ctrlSetBackgroundColor", + "timestamp": "2021-01-22T22:02:23Z", + "version": "1.00", + "syntax": " ctrlSetBackgroundColor color", + "docSyntax": "control ctrlSetBackgroundColor color", + "tags": "", + "description": "Sets background color of given control. Only \naffects: Columns2 * CT_COMBO * CT_STATIC * CT_STRUCTURED_TEXT * CT_MAP * CT_MAP_MAIN * GVIarma32.02size=0.8 CT_BUTTON * GVIarma32.02size=0.8 CT_SHORTCUTBUTTON * GVIarma32.02size=0.8 CT_ACTIVETEXT shrink= y", + "example": "_control ctrlSetBackgroundColor [1, 0, 0, 1];", + "params": " color", + "returns": "nothing" + }, + "ctrlSetEventHandler": { + "command": "ctrlSetEventHandler", + "timestamp": "2021-01-22T22:02:17Z", + "version": "1.00", + "syntax": " ctrlSetEventHandler [, ]", + "docSyntax": "controlName ctrlSetEventHandler [handlerName, function]", + "tags": "", + "description": "FeatureobsoleteUse KeyDown and KeyUp FeatureimportantWhen using the event names listed here with the ctrlAddEventHandler, ctrlSetEventHandler, displayAddEventHandler or displaySetEventHandler commands, the prefix \"on\" in the event name must be removed (e.g. ''ButtonDown'' instead of ''onButtonDown'').", + "example": "_control ctrlSetEventHandler [\"KeyDown\", \"\"];", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFade": { + "command": "ctrlSetFade", + "timestamp": "2021-01-22T21:59:46Z", + "version": "1.00", + "syntax": " ctrlSetFade ", + "docSyntax": "controlName ctrlSetFade fade", + "tags": "", + "description": "Sets wanted transparency for control animation. Requires ctrlCommit to commit changes. To hide or show a control instantly, use ctrlShow.", + "example": "_control ctrlSetFade 1; _control ctrlCommit 5;", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFocus": { + "command": "ctrlSetFocus", + "timestamp": "2021-01-22T22:01:55Z", + "version": "1.00", + "syntax": "ctrlSetFocus ", + "docSyntax": "ctrlSetFocus control", + "tags": "", + "description": "Sets the input focus on given control.", + "example": "ctrlSetFocus _control;", + "params": "", + "returns": "nothing" + }, + "ctrlSetFont": { + "command": "ctrlSetFont", + "timestamp": "2021-01-22T22:05:12Z", + "version": "1.00", + "syntax": " ctrlSetFont ", + "docSyntax": "control ctrlSetFont fontName", + "tags": "", + "description": "Sets the font for given control (see available fonts)", + "example": "_control ctrlSetFont \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH1": { + "command": "ctrlSetFontH1", + "timestamp": "2021-01-22T22:05:20Z", + "version": "1.00", + "syntax": " ctrlSetFontH1 ", + "docSyntax": "controlName ctrlSetFontH1 fontName", + "tags": "", + "description": "Sets H1 font of given HTML control.", + "example": "_control ctrlSetFontH1 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH1B": { + "command": "ctrlSetFontH1B", + "timestamp": "2021-01-22T22:01:04Z", + "version": "1.00", + "syntax": " ctrlSetFontH1B ", + "docSyntax": "controlName ctrlSetFontH1B fontName", + "tags": "", + "description": "Sets H1 bold font of given HTML control.", + "example": "_control ctrlSetFontH1B \"TahomaB\";", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH2": { + "command": "ctrlSetFontH2", + "timestamp": "2021-01-22T22:03:14Z", + "version": "1.00", + "syntax": " ctrlSetFontH2 ", + "docSyntax": "controlName ctrlSetFontH2 fontName", + "tags": "", + "description": "Sets H2 font of given HTML control", + "example": "_control ctrlSetFontH2 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH2B": { + "command": "ctrlSetFontH2B", + "timestamp": "2021-01-22T22:00:12Z", + "version": "1.00", + "syntax": " ctrlSetFontH2B ", + "docSyntax": "controlName ctrlSetFontH2B fontName", + "tags": "", + "description": "Sets H2 bold font of given HTML control.", + "example": "_control ctrlSetFontH2B \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH3": { + "command": "ctrlSetFontH3", + "timestamp": "2021-01-22T22:04:19Z", + "version": "1.00", + "syntax": " ctrlSetFontH3 ", + "docSyntax": "controlName ctrlSetFontH3 fontName", + "tags": "", + "description": "Sets H3 font of given HTML control.", + "example": "_control ctrlSetFontH3 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH3B": { + "command": "ctrlSetFontH3B", + "timestamp": "2021-01-22T21:59:35Z", + "version": "1.00", + "syntax": " ctrlSetFontH3B ", + "docSyntax": "controlName ctrlSetFontH3B fontName", + "tags": "", + "description": "Sets H3 bold font of given HTML control.", + "example": "_control ctrlSetFontH3B \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH4": { + "command": "ctrlSetFontH4", + "timestamp": "2021-01-22T22:04:44Z", + "version": "1.00", + "syntax": " ctrlSetFontH4 ", + "docSyntax": "controlName ctrlSetFontH4 fontName", + "tags": "", + "description": "Sets H4 font of given HTML control.", + "example": "_control ctrlSetFontH4 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH4B": { + "command": "ctrlSetFontH4B", + "timestamp": "2021-01-22T21:59:06Z", + "version": "1.00", + "syntax": " ctrlSetFontH4B ", + "docSyntax": "controlName ctrlSetFontH4B fontName", + "tags": "", + "description": "Sets H4 bold font of given HTML control.", + "example": "_control ctrlSetFontH4B \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH5": { + "command": "ctrlSetFontH5", + "timestamp": "2021-01-22T22:01:53Z", + "version": "1.00", + "syntax": " ctrlSetFontH5 ", + "docSyntax": "controlName ctrlSetFontH5 fontName", + "tags": "", + "description": "Sets H5 font of given HTML control.", + "example": "_control ctrlSetFontH5 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH5B": { + "command": "ctrlSetFontH5B", + "timestamp": "2021-01-22T21:59:57Z", + "version": "1.00", + "syntax": " ctrlSetFontH5B ", + "docSyntax": "controlName ctrlSetFontH5B fontName", + "tags": "", + "description": "Sets H5 bold font of given HTML control.", + "example": "_control ctrlSetFontH5B \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH6": { + "command": "ctrlSetFontH6", + "timestamp": "2021-01-22T22:05:34Z", + "version": "1.00", + "syntax": " ctrlSetFontH6 ", + "docSyntax": "controlName ctrlSetFontH6 fontName", + "tags": "", + "description": "Sets H6 font of given HTML control.", + "example": "_control ctrlSetFontH6 \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontH6B": { + "command": "ctrlSetFontH6B", + "timestamp": "2021-01-22T22:01:55Z", + "version": "1.00", + "syntax": " ctrlSetFontH6B ", + "docSyntax": "controlName ctrlSetFontH6B fontName", + "tags": "", + "description": "Sets H6 bold font of given HTML control.", + "example": "_control ctrlSetFontH6B \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeight": { + "command": "ctrlSetFontHeight", + "timestamp": "2021-01-22T21:59:58Z", + "version": "1.00", + "syntax": " ctrlSetFontHeight ", + "docSyntax": "control ctrlSetFontHeight size", + "tags": "", + "description": "Sets the sizeEx property for most controls as \nfollows: * CT_MAP - \"sizeExNames\" * CT_HTML - \"P\" >> \"sizeEx\" * Other - \"sizeEx\" * GVIarma32.02size=0.8 CT_STRUCTURED_TEXT - \"size\"", + "example": "_control ctrlSetFontHeight 0.05;", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH1": { + "command": "ctrlSetFontHeightH1", + "timestamp": "2021-01-22T22:01:17Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH1 ", + "docSyntax": "controlName ctrlSetFontHeightH1 height", + "tags": "", + "description": "Sets H1 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH1 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH2": { + "command": "ctrlSetFontHeightH2", + "timestamp": "2021-01-22T22:05:19Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH2 ", + "docSyntax": "controlName ctrlSetFontHeightH2 height", + "tags": "", + "description": "Sets H2 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH2 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH3": { + "command": "ctrlSetFontHeightH3", + "timestamp": "2021-01-22T22:04:00Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH3 ", + "docSyntax": "controlName ctrlSetFontHeightH3 height", + "tags": "", + "description": "Sets H3 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH3 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH4": { + "command": "ctrlSetFontHeightH4", + "timestamp": "2021-01-22T22:00:40Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH4 ", + "docSyntax": "controlName ctrlSetFontHeightH4 height", + "tags": "", + "description": "Sets H4 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH4 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH5": { + "command": "ctrlSetFontHeightH5", + "timestamp": "2021-01-22T22:00:26Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH5 ", + "docSyntax": "controlName ctrlSetFontHeightH5 height", + "tags": "", + "description": "Sets H5 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH5 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontHeightH6": { + "command": "ctrlSetFontHeightH6", + "timestamp": "2021-01-22T22:05:18Z", + "version": "1.00", + "syntax": " ctrlSetFontHeightH6 ", + "docSyntax": "controlName ctrlSetFontHeightH6 height", + "tags": "", + "description": "Sets H6 font size of given HTML control.", + "example": "_control ctrlSetFontHeightH6 0.05", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontP": { + "command": "ctrlSetFontP", + "timestamp": "2021-01-22T22:06:36Z", + "version": "1.00", + "syntax": " ctrlSetFontP ", + "docSyntax": "control ctrlSetFontP fontOrSize", + "tags": "", + "description": "Sets P font of given HTML control or its size.", + "example": "_control ctrlSetFontP \"TahomaB\";", + "params": " ", + "returns": "nothing" + }, + "ctrlSetFontPB": { + "command": "ctrlSetFontPB", + "timestamp": "2021-01-22T22:01:44Z", + "version": "1.00", + "syntax": " ctrlSetFontPB ", + "docSyntax": "controlName ctrlSetFontPB fontName", + "tags": "", + "description": "Sets P bold font of given HTML control.", + "example": "_control ctrlSetFontPB \"TahomaB\"", + "params": " ", + "returns": "nothing" + }, + "ctrlSetForegroundColor": { + "command": "ctrlSetForegroundColor", + "timestamp": "2021-01-22T22:04:22Z", + "version": "1.00", + "syntax": " ctrlSetForegroundColor color", + "docSyntax": "control ctrlSetForegroundColor color", + "tags": "", + "description": "Sets foreground color of the given control. FeatureInformativeAlso try ctrlSetTextColor, if this command doesn't have the desired effect.", + "example": "_control ctrlSetForegroundColor [1, 0, 0, 1];", + "params": " color", + "returns": "nothing" + }, + "ctrlSetPosition": { + "command": "ctrlSetPosition", + "timestamp": "2021-05-24T09:21:06Z", + "version": "1.00", + "syntax": " ctrlSetPosition [, ]", + "docSyntax": "controlName ctrlSetPosition [x, y]", + "tags": "", + "description": "Sets wanted position and size for 2D control animation. Width and height are optional. ctrlCommit is required to complete the operation. For 3D control, param is relative [x, y, z] and no ctrlCommit is required as it cannot be animated. If target control is inside a CT_CONTROLS_GROUP, the position needs to be relative to it. FeatureImportant This command doesn't work well with CT_MAP control. Use ctrlMapSetPosition instead.", + "example": "_control2D ctrlSetPosition [0, 0]; _control2D ctrlCommit 0;", + "params": " ", + "returns": "nothing" + }, + "ctrlSetScale": { + "command": "ctrlSetScale", + "timestamp": "2021-01-22T22:49:43Z", + "version": "1.00", + "syntax": " ctrlSetScale ", + "docSyntax": "control ctrlSetScale scale", + "tags": "", + "description": "Sets scale of a control. Top left corner remains same. This command requires ctrlCommit.", + "example": "_control ctrlSetScale 0.5;ccMakes the control 50% smaller _control ctrlCommit 0;", + "params": " ", + "returns": "nothing" + }, + "ctrlSetStructuredText": { + "command": "ctrlSetStructuredText", + "timestamp": "2021-01-22T22:57:55Z", + "version": "1.00", + "syntax": " ctrlSetStructuredText data\\isniper.paa />nowiki
Second line\"", + "params": " ctrlSetTextColor ", + "docSyntax": "control ctrlSetTextColor color", + "tags": "", + "description": "Sets text color of given control. Color is in format Color (RGBA). As of Arma 3 v1.40 this command can also be used to change fill-color of a CT_PROGRESS control. FeatureInformativeAlso try ctrlSetForegroundColor, if this command doesn't have the desired effect.", + "example": "_control ctrlSetTextColor [1, 0, 0, 1];", + "params": " ", + "returns": "nothing" + }, + "ctrlSetTooltip": { + "command": "ctrlSetTooltip", + "timestamp": "2021-01-22T22:51:44Z", + "version": "1.00", + "syntax": "control ctrlSetTooltip ", + "docSyntax": "control ctrlSetTooltip text", + "tags": "", + "description": "Sets tooltip text of given control. Feature Informative If control supports URL property, like RscActiveText for example, and the URL is set, tooltip text displayed on mouse over will be appended with URL text.", + "example": "_control ctrlSetTooltip \"tooltip\";", + "params": "control ", + "returns": "nothing" + }, + "ctrlSetTooltipColorBox": { + "command": "ctrlSetTooltipColorBox", + "timestamp": "2021-01-22T22:57:35Z", + "version": "1.00", + "syntax": " ctrlSetTooltipColorBox color", + "docSyntax": "control ctrlSetTooltipColorBox color", + "tags": "", + "description": "Sets tooltip border color of given control.", + "example": "_control ctrlSetTooltipColorBox [1, 0, 0, 1];", + "params": " color", + "returns": "nothing" + }, + "ctrlSetTooltipColorShade": { + "command": "ctrlSetTooltipColorShade", + "timestamp": "2021-01-22T22:53:14Z", + "version": "1.00", + "syntax": " ctrlSetTooltipColorShade ", + "docSyntax": "control ctrlSetTooltipColorShade color", + "tags": "", + "description": "Sets tooltip background color of given control. Color is in format Color (RGBA).", + "example": "_control ctrlSetTooltipColorShade [1, 0, 0, 1];", + "params": " ", + "returns": "nothing" + }, + "ctrlSetTooltipColorText": { + "command": "ctrlSetTooltipColorText", + "timestamp": "2021-01-22T22:41:25Z", + "version": "1.00", + "syntax": " ctrlSetTooltipColorText ", + "docSyntax": "display ctrlSetTooltipColorText color", + "tags": "", + "description": "Sets tooltip text color of given control. Color is in format Color (RGBA).", + "example": "_control ctrlSetTooltipColorText [1, 0, 0, 1]", + "params": " ", + "returns": "nothing" + }, + "ctrlShown": { + "command": "ctrlShown", + "timestamp": "2021-01-22T22:44:17Z", + "version": "1.00", + "syntax": "ctrlShown ", + "docSyntax": "ctrlShown controlName", + "tags": "", + "description": "Returns whether given control is shown.", + "example": "_bool = ctrlShown _ctrl;", + "params": "", + "returns": "boolean" + }, + "ctrlType": { + "command": "ctrlType", + "timestamp": "2021-01-22T22:39:38Z", + "version": "1.00", + "syntax": "ctrlType ", + "docSyntax": "ctrlType control", + "tags": "", + "description": "Returns number representing the type of control, which is also defined by ''type'' property in config. For more information see <\nArma: GUI Configuration>", + "example": "_type = ctrlType _rscEdit; // 2", + "params": "", + "returns": "number" + }, + "currentCommand": { + "command": "currentCommand", + "timestamp": "2021-01-22T22:49:09Z", + "version": "1.00", + "syntax": "currentCommand ", + "docSyntax": "currentCommand vehicleName", + "tags": "", + "description": "Return the current command type (empty string when no command) for the commander of given vehicle (or for a given soldier). Returned value can be one \nof: Columns4 * \"WAIT\" * \"ATTACK\" * \"HIDE\" * \"MOVE\" * \"HEAL\" * \"REPAIR\" * \"REFUEL\" * \"REARM\" * \"SUPPORT\" * \"JOIN\" * \"GET IN\" * \"FIRE\" * \"GET OUT\" * \"STOP\" * \"EXPECT\" * \"ACTION\" * \"ATTACKFIRE\" * \"Suppress\"", + "example": "_command = currentCommand player;", + "params": "", + "returns": "string" + }, + "date": { + "command": "date", + "timestamp": "2021-01-22T22:45:21Z", + "version": "1.00", + "syntax": "date", + "docSyntax": "date", + "tags": "[EL]", + "description": "Return the actual in-mission date and time.", + "example": "// in arma3 date params [\"_year\", \"_month\", \"_day\", \"_hours\", \"_minutes\"]; // pre arma3 _now = date; cc[2014,10,30,2,30] a.k.a Oct. 30th, 2:30am _year = _now select 0; _month = _now select 1; _day = _now select 2; _hours = _now select 3; _minutes = _now select 4;", + "params": "", + "returns": "array | date" + }, + "default": { + "command": "default", + "timestamp": "2021-01-22T22:45:45Z", + "version": "1.00", + "syntax": "defult a", + "docSyntax": "default a", + "tags": "", + "description": "Defines a default case - does 'not' need a colon to define its block. See switch for more information.", + "example": "switch (_condition) do { case 1: { hint \"1\" }; case 2: { hint \"2\" }; default { hint \"default\" }; // no colon after default }; ", + "params": "", + "returns": "nothing" + }, + "deleteCenter": { + "command": "deleteCenter", + "timestamp": "2021-01-22T22:55:57Z", + "version": "1.00", + "syntax": "deleteCenter ", + "docSyntax": "deleteCenter side", + "tags": "[EG]", + "description": "In a nutshell, this command removes gaming Side (see createCenter). If a side has >0 Groups it cannot be deleted. Center can only be created \nfor: east, west, resistance, civilian and sideLogic, therefore only centers from the mentioned sides can be deleted.brbr 'Old description:' Destroys the AI center of the given side.", + "example": "deleteCenter east", + "params": "", + "returns": "nothing" + }, + "deleteCollection": { + "command": "deleteCollection", + "timestamp": "2021-01-22T22:49:59Z", + "version": "1.00", + "syntax": "deleteCollection ", + "docSyntax": "deleteCollection object", + "tags": "", + "description": "Delete a collection. As example, used with a soldier, it'll hide the ingame model. ''When targetting Arma 2 1.06 or newer, use hideObject instead. This function is a relic from dynamic building destruction development. It is left only for compatibility with scripts created before Arma 2 1.06, and its functionality may be changed or removed in the future.''", + "example": "deleteCollection unitName;", + "params": "", + "returns": "nothing" + }, + "deleteTarget": { + "command": "deleteTarget", + "timestamp": "2021-01-22T22:58:25Z", + "version": "1.00", + "syntax": "deleteTarget ", + "docSyntax": "deleteTarget target", + "tags": "", + "description": "Delete a target.", + "example": "'deleteTarget' target1", + "params": "", + "returns": "nothing" + }, + "displayCtrl": { + "command": "displayCtrl", + "timestamp": "2021-01-22T22:54:09Z", + "version": "1.00", + "syntax": " displayCtrl ", + "docSyntax": "display displayCtrl idc", + "tags": "", + "description": "Return child control with specified idc.", + "example": "_displayControl = _ParentDisplay displayCtrl 101;", + "params": " ", + "returns": "control" + }, + "displayNull": { + "command": "displayNull", + "timestamp": "2021-01-22T22:55:55Z", + "version": "1.00", + "syntax": "'displayNull'", + "docSyntax": "'displayNull'", + "tags": "", + "description": "A non-existing Display. To compare non-existent displays use isNull or \nisEqualTo: * c= displayNull nowiki== displayNull; // false * isNull displayNull; // true * displayNull isEqualTo displayNull; // true", + "example": "!isNull displayNull; // false", + "params": "", + "returns": "display" + }, + "displaySetEventHandler": { + "command": "displaySetEventHandler", + "timestamp": "2021-01-22T22:54:26Z", + "version": "1.00", + "syntax": " displaySetEventHandler [, ]", + "docSyntax": "display displaySetEventHandler [handlerName, function]", + "tags": "", + "description": "Sets given event handler of given display. The return code of the provided function should indicate whether this event was handled correctly. This implies telling the engine whether it is default code should be executed. See User Interface Event Handlers for the full list of handler names.br If applicable, see KeyDown & KeyUp. FeatureimportantWhen using the event names listed here with the ctrlAddEventHandler, ctrlSetEventHandler, displayAddEventHandler or displaySetEventHandler commands, the prefix \"on\" in the event name must be removed (e.g. ''ButtonDown'' instead of ''onButtonDown'').", + "example": "_control displaySetEventHandler [\"KeyDown\", \"\"];", + "params": " ", + "returns": "nothing" + }, + "doFSM": { + "command": "doFSM", + "timestamp": "2021-01-22T22:54:55Z", + "version": "1.00", + "syntax": "objects doFSM [, , ]", + "docSyntax": "unit doFSM [fsmName, position, target]", + "tags": "", + "description": "Orders a unit to process command defined by FSM file (silently). Unlike with execFSM where ''_this'' is passed to the FSM, the following parameters are passed when using doFSM/\ncommandFSM: ; \n_leader: leader of subgroup with this command ; \n_destination: command destination/position ; \n_target: command target ; \n_units: list of all persons in subgroup", + "example": "_soldierOne doFSM [\"move.fsm\", position player, player];", + "params": "objects ", + "returns": "nothing" + }, + "drawArrow": { + "command": "drawArrow", + "timestamp": "2021-01-22T22:49:33Z", + "version": "1.00", + "syntax": " drawArrow ", + "docSyntax": "map drawArrow [from, to, color]", + "tags": "", + "description": "Draws a single line arrow on the map. To draw a color filled arrow of custom shape see BIS_fnc_drawArrow", + "example": "findDisplay 12 displayCtrl 51 ctrlAddEventHandler [\"Draw\", { _this select 0 drawArrow [ player, player getRelPos [100, 0], [1,0,0,1] ]; }];", + "params": " position2d position2d ", + "returns": "nothing" + }, + "drawEllipse": { + "command": "drawEllipse", + "timestamp": "2021-01-22T22:58:38Z", + "version": "1.00", + "syntax": " drer>wEllipse ", + "docSyntax": "map drawEllipse [c, a, b, angle, color, fill]", + "tags": "", + "description": "Draws an ellipse on the map. Just like with marker or trigger area, negative a and b will result in hexagon.", + "example": "findDisplay 12 displayCtrl 51 ctrlAddEventHandler [\"Draw\", { _this select 0 drawEllipse [ player, 10, 10, 0, [1, 0, 0, 1], \"\" ]; _this select 0 drawEllipse [ player, -10, -10, 0, [1, 1, 1, 1], \"#(rgb,8,8,3)color(1,0.6,0,1)\" ]; _this select 0 drawEllipse [ player, -10, -10, 90, [0, 0, 1, 1], \"\" ]; }];", + "params": " position2d ", + "returns": "250px" + }, + "drawIcon": { + "command": "drawIcon", + "timestamp": "2021-01-22T22:57:51Z", + "version": "1.00", + "syntax": " drawIcon [, color, position2d, , , , text, shadow, textSize, , ]", + "docSyntax": "map drawIcon [texture, color, position, width, height, angle, text, shadow, textSize, font, align]", + "tags": "", + "description": "Draws an icon on the map. This command needs to be called every frame, preferably using the onDraw UI Event Handler. Some useful icons can be found in icconfigfile >> \"CfgVehicleIcons\".", + "example": "findDisplay 12 displayCtrl 51 ctrlAddEventHandler [\"Draw\", { _this select 0 drawIcon [ \"iconStaticMG\", ccCustom images can also be used: getMissionPath \"\\myFolder\\myIcon.paa\" [1,0,0,1], getPos player, 24, 24, getDir player, \"Player Vehicle\", 1, 0.03, \"TahomaB\", \"right\" ] }];", + "params": " color position2d ", + "returns": "nothing" + }, + "drawLine": { + "command": "drawLine", + "timestamp": "2021-01-22T22:54:52Z", + "version": "1.00", + "syntax": " drawLine ", + "docSyntax": "map drawLine [position1, position2, color]", + "tags": "", + "description": "Draw a line on the map. Can decrease framerate!", + "example": "(findDisplay 12 displayCtrl 51) ctrlAddEventHandler [\"Draw\",\" (_this select 0) drawLine [ getPos player, [0,0,0], [0,0,1,1] ]; \"];", + "params": " position2d position2d color", + "returns": "nothing" + }, + "drawRectangle": { + "command": "drawRectangle", + "timestamp": "2021-01-22T22:51:33Z", + "version": "1.00", + "syntax": " drer>wRect [c, a, b, angle, color, ]", + "docSyntax": "map drawRectangle [c, a, b, angle, color, fill]", + "tags": "", + "description": "Draws a rectangle on the map.br 250px", + "example": "_ctrl drawRectangle [ getPos player, 20, 20, getDir player, [0,0,1,1], \"\" ];", + "params": " position2d color ", + "returns": "nothing" + }, + "echo": { + "command": "echo", + "timestamp": "2021-01-22T22:58:18Z", + "version": "1.00", + "syntax": "echo ", + "docSyntax": "echo text", + "tags": "", + "description": "Sends any text into the debugger console or the logfile. This command is only 'present in internal version ' not in the retail version. Use diag_log instead!", + "example": "'echo' \"Text in logfile\";", + "params": "", + "returns": "nothing" + }, + "effectiveCommander": { + "command": "effectiveCommander", + "timestamp": "2021-01-22T22:48:37Z", + "version": "1.00", + "syntax": "effectiveCommander ", + "docSyntax": "effectiveCommander vehicle", + "tags": "", + "description": "Returns the effective commander of the vehicle. Effective commander is the player whom driver AI will listen to. So if in a tank there is a gunner and a commander and AI driver, if the effectiveCommander is gunner, then gunner pressing WASD will give AI orders to move. If gunner jumps out and then enters tank again, the effectiveCommander role most likely has changed to commander that remained in tank. Also the assignment seems to work on first come first served basis.", + "example": "_commander = effectiveCommander tank; ", + "params": "", + "returns": "object" + }, + "emptyPositions": { + "command": "emptyPositions", + "timestamp": "2021-01-22T22:56:37Z", + "version": "1.00", + "syntax": " ", + "docSyntax": "vehicle position", + "tags": "", + "description": "Returns the number of given empty positions in the vehicle. Feature Informative To return the actual units in the vehicle use fullCrew. However if only the number is desired, use 'emptyPositions' because it is faster.", + "example": "sqf_freeCargoAndFFVPositions = vehicle player emptyPositions \"Cargo\";", + "params": " ", + "returns": "number" + }, + "enableAttack": { + "command": "enableAttack", + "timestamp": "2021-01-22T22:57:34Z", + "version": "1.00", + "syntax": " Attack enable", + "docSyntax": "group enableAttack enable", + "tags": "[AL] [EG]", + "description": "Set if leader can issue attack commands to the soldiers in his group.", + "example": "_group1 'enableAttack' true;", + "params": " ", + "returns": "nothing" + }, + "enableEnvironment": { + "command": "enableEnvironment", + "timestamp": "2021-01-22T22:50:04Z", + "version": "1.00", + "syntax": "Environment enable", + "docSyntax": "enableEnvironment enable", + "tags": "[EL]", + "description": "Enable/disable environmental \neffects: ambient life and/or ambient sound. FeatureinformativeThis command has to be executed after mission \nstart: be sure to use e.g icsleep 0.1; for it to take effect. Influenced sounds among others \nare: * bird sounds * insect sounds * waves * wind * rain * sounds produced by air conditioners and similar * GVIarma32.06size=0.8 thunder (an already started sound will not be cut but future ones will be prevented)", + "example": "enableEnvironment false; // identical to enableEnvironment [false, false]", + "params": " ", + "returns": "nothing" + }, + "enableReload": { + "command": "enableReload", + "timestamp": "2021-01-22T22:54:23Z", + "version": "1.00", + "syntax": " Reload enable", + "docSyntax": "object enableReload enable", + "tags": "", + "description": "Enable / disable reload when magazine is empty.", + "example": "_vehicle enableReload false;", + "params": " ", + "returns": "nothing" + }, + "enableTeamSwitch": { + "command": "enableTeamSwitch", + "timestamp": "2021-01-22T23:48:42Z", + "version": "1.00", + "syntax": "TeamSwitch enable", + "docSyntax": "enableTeamSwitch enable", + "tags": "", + "description": "Enable / disable . The default setting is enabled.", + "example": "enableTeamSwitch true;", + "params": "", + "returns": "nothing" + }, + "execVM": { + "command": "execVM", + "timestamp": "2021-01-22T23:06:07Z", + "version": "1.00", + "syntax": "_this execVM sqf", + "docSyntax": "arguments execVM filename", + "tags": "[AG] [EL]", + "description": "Compiles and adds an SQF script to the scheduler queue and returns script handle (see also HashLink#Example 4). The script does not execute immediately upon running Function is recommended to avoid recompiling and wasting performance with every execution. * The script is searched for in the following directories in that \norder: ** mission directory ** campaign scripts directory ** global scripts directory. * To see what VM scripts are currently in the scheduler, use with codes > 127, they might convert incorrectly.", + "example": "sqfexecVM \"test.sqf\";", + "params": "_this sqf sqf", + "returns": "