R3vo/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| class="wikitable" style="font-size:.85em"
{| class="wikitable"
|-
|-
! colspan="3" | <big>[[Real Virtuality]] Scripting</big>
! colspan="3" |Container
|-
|-
! colspan="2" | Terminology
! Subtype !! Command usually contains !! Example
| [[Argument]] ● [[Identifier]] ● [[Expression]] ● [[Operand]] ● [[Operators]] ● [[Parameter]] ● [[Statement]] ● [[Variables]] ● [[Magic Variables]] ● [[Function]]
|-
|-
! colspan="2" | Syntax
| Vehicle with inventory || <tt>cargo*</tt> || <code>[[clearWeaponCargo]] _truck;</code>
| [[SQF Syntax]] ● [[SQS Syntax]] ● [[Order of Precedence]] ● [[Control Structures]]
|-
|-
! colspan="2" | Tutorials
| Backpack || <tt>backpack*</tt>|| <code>[[clearAllItemsFromBackpack]] [[player]];</code>
| [[Introduction to Arma Scripting]] ● [[Code Best Practices]] ● [[:Category:Example Code|Example Code]] ● [[Code Optimisation]] ● [[Mission Optimisation]] [[Multiplayer Scripting]] ● [[SQS to SQF conversion|SQS → SQF]]
|-
|-
! rowspan="2" | Data Types
| Vest || <tt>vest*</tt>|| <code>[[vestContainer]] [[player]];</code>
! General
| [[Array]] [[Boolean]] ● [[Code]] ● [[Config]] ● [[Control]] ● [[Diary Record]] ● [[Display]] ● [[Eden Entity]] ● [[Eden ID]] ● [[Editor Object]] ● [[Group]] ● [[HashMap]] ● [[Location]] ● [[Namespace]] ● [[Number]] ● [[Object]] ● [[Script (Handle)]] <br> [[Side]] ● [[String]] ● [[Structured Text]] ● [[Task]] ● [[Team]] ● [[Team Member]] ● [[NaN]] ● [[Anything]] ● [[Nothing]] ● [[Void]] ● [[Switch Type]] ● [[While Type]] ● [[With Type]] ● [[For Type]] ● [[If Type]]
|-
|-
! Special Arrays
| Uniform || <tt>uniform*</tt> || <code>[[uniformContainer]] [[player]];</code>
| [[Array of Eden Entities]] ● [[Color]] ● [[Date]] ● [[ParticleArray]] ● [[Position]] ● [[Unit Loadout Array]] ● [[Vector3D]] [[Waypoint]]
|-
|-
! colspan="2" | Scripting Commands
| Scripted weapon holder || <tt>cargo*</tt> || <code>[[backpackCargo]] _ammoBox;</code>
| [[:Category:Scripting Commands|Scripting Commands]] ● [[:Category:Scripting Commands by Functionality|Scripting Commands by Functionality]]
|-
|-
! colspan="2" | Scripting Functions
| Ammo box, supply box || <tt>cargo*</tt> || <code>[[backpackCargo]] _ammoBox;</code>
| [[:Category:Functions|Scripting Functions]] ● [[:Category:Functions by Functionality|Functions by Functionality]]
|-
! colspan="2" | Debugging
| [[:Category:Common Scripting Errors|Common Scripting Errors]] ● [[Debugging Techniques]] ● [[Exception handling]]
|-
! colspan="2" | Advanced
| [[Event Scripts]] ● [[:Category:Event Handlers|Event Handlers]] ● [[PreProcessor Commands]] ● [[Initialization Order]] ● [[Performance Profiling]]
|}
|}
Subtype Object
* Container
A container can be:
* a vehicle with inventory
* a backpack
* a vest
* an uniform
* a scripted weapon holder
* an ammobox
Make sure to apply commands only on appropriate objects, e.g [[backpackSpaceFor]] will only work on a container of type backpack

Revision as of 23:17, 13 May 2021

Container
Subtype Command usually contains Example
Vehicle with inventory cargo* clearWeaponCargo _truck;
Backpack backpack* clearAllItemsFromBackpack player;
Vest vest* vestContainer player;
Uniform uniform* uniformContainer player;
Scripted weapon holder cargo* backpackCargo _ammoBox;
Ammo box, supply box cargo* backpackCargo _ammoBox;


Subtype Object

  • Container

A container can be:

  • a vehicle with inventory
  • a backpack
  • a vest
  • an uniform
  • a scripted weapon holder
  • an ammobox

Make sure to apply commands only on appropriate objects, e.g backpackSpaceFor will only work on a container of type backpack