תוכן שלי
L
L
Index
land
landAt
lbAdd
lbAdd
lbClear
lbClear
lbColor
lbColor
lbCurSel
lbCurSel
lbData
lbData
lbDelete
lbDelete
lbIsSelected
lbPicture
lbPicture
lbSelection
lbSetColor
lbSetColor
lbSetCurSel
lbSetCurSel
lbSetData
lbSetData
lbSetPicture
lbSetPicture
lbSetSelected
lbSetValue
lbSetValue
lbSize
lbSize
lbSort
lbSortByValue
lbText
lbText
lbValue
lbValue
leader
leader
leaveVehicle
leaveVehicle
lightAttachObject
lightDetachObject
lightIsOn
limitSpeed
lineBreak
list
ln
loadFile
loadIdentity
loadStatus
local
localize
lock
locked
lockWP
log
lookAt
helicopter land mode
Operand types:
helicopter: Object
mode: String
Type of returned value:
Nothing
Description:
Force helicopter landing.
Landing mode may be:
"LAND" (complete stop)
"GET IN" (hovering very low, for another unit to get in)
"GET OUT" (hovering low,for another unit to get out)
Used In:
ArmA/OFP
Example:
cobraOne land "LAND"
General Barron
Helos will land at the nearest "H" or "Invisible H", if there is one around.
But landing helos with this command is fairly unreliable.
Use this script here to get better results.
Helos also tend to fly off before everyone is onboard.
Again, try this script here .
--------------------------------------------------------------------------------
object landAt id
Operand types:
object: Object
id: Number
Type of returned value:
Nothing
Description:
Order an AI plane to land at the airfield with the specified id number.
Following id numbers apply:
0 - Paraiso
1 - Rahmadi
2 - Pita
3 - Antigua
Used In:
ArmA
Example:
beagle7 landAt 3
--------------------------------------------------------------------------------
lbAdd [idc, text]
Operand types:
[idc, text]: Array
Type of returned value:
Number
Description:
Add item with the given text to listbox or combobox with id idc of topmost user dialog.
It returns the index of newly added item.
Used In:
ArmA/OFP
Example:
_index = lbAdd [101, "First item"]
--------------------------------------------------------------------------------
control lbAdd text
Operand types:
control: Control
text: String
Type of returned value:
Number
Description:
Adds an item with the given text to the given listbox or combobox.
It returns the index of the newly added item.
Used In:
ArmA
Example:
_index = _control lbAdd "First item"
--------------------------------------------------------------------------------
lbClear idc
Operand types:
idc: Number
Type of returned value:
Nothing
Description:
Clear all items in listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
lbClear 101
--------------------------------------------------------------------------------
lbClear control
Operand types:
control: Control
Type of returned value:
Nothing
Description:
Clears all items in the given listbox or combobox.
Used In:
ArmA
Example:
lbClear _control
« To Menu
--------------------------------------------------------------------------------
lbColor [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
Array
Description:
Return text colour of item with given index of listbox or combobox with id idc of topmost user dialog.
Colour is in format Color.
Used In:
ArmA/OFP
Example:
_colour = lbColor [101, 0]
--------------------------------------------------------------------------------
control lbColor index
Operand types:
control: Control
index: Number
Type of returned value:
Array
Description:
Returns the text color of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
Colour is in format Color.
Used In:
ArmA
Example:
_color = _control lbAdd 0
--------------------------------------------------------------------------------
lbCurSel idc
Operand types:
idc: Number
Type of returned value:
Number
Description:
Return index of selected item of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_index = lbCurSel 101
« To Menu
--------------------------------------------------------------------------------
lbCurSel control
Operand types:
control: Control
Type of returned value:
Number
Description:
Returns the index of the selected item of the given listbox or combobox.
Used In:
ArmA
Example:
_index = lbCurSel _control
--------------------------------------------------------------------------------
lbData [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
String
Description:
Return additional text (invisible) in item with given index of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_data = lbData [101, 0]
--------------------------------------------------------------------------------
control lbData index
Operand types:
control: Control
index: Number
Type of returned value:
String
Description:
Returns the additional text (invisible) in an item with the given index of the given listbox or combobox.
Used In:
ArmA
Example:
_data = _control lbData 0
« To Menu
--------------------------------------------------------------------------------
lbDelete [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
Nothing
Description:
Remove item with given index from listbox or combobox with id idcof topmost user dialog.
Used In:
ArmA/OFP
Example:
lbDelete [101, 0]
--------------------------------------------------------------------------------
control lbDelete index
Operand types:
control: Control
index: Number
Type of returned value:
Nothing
Description:
Removes the item with the given index from the given listbox or combobox.
Used In:
ArmA
Example:
_control lbDelete 0
--------------------------------------------------------------------------------
control lbIsSelected index
Operand types:
control: Control
index: Number
Type of returned value:
Boolean
Description:
Check whether given row of the given listbox is selected.
Used In:
ArmA
Example:
_selected = _control lbIsSelected 0
« To Menu
--------------------------------------------------------------------------------
lbPicture [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
String
Description:
Return picture name in item with given index of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_picture = lbPicture [101, 0]
--------------------------------------------------------------------------------
control lbPicture index
Operand types:
control: Control
index: Number
Type of returned value:
String
Description:
Returns the picture name of the item with the given index of the given listbox or combobox.
Used In:
ArmA
Example:
_picture = _control lbPicture 0
--------------------------------------------------------------------------------
lbSelection control
Operand types:
control: Control
Type of returned value:
Array
Description:
Returns the array of selected rows indices in the given listbox.
Used In:
ArmA
Example:
_indices = lbPicture _control
« To Menu
--------------------------------------------------------------------------------
lbSetColor [idc, index, color]
Operand types:
[idc, index, color]: Array
Type of returned value:
Nothing
Description:
Set colour of item with given index of listbox or combobox with id idc of topmost user dialog to color.
Colour is in format Color.
Used In:
ArmA/OFP
Example:
lbSetColor [101, 0, [0, 1, 0, 0.5]]
--------------------------------------------------------------------------------
control lbSetColor [index, color]
Operand types:
control: Control
[index, color]: Array
Type of returned value:
Nothing
Description:
Sets the text color of the item with the given index of the given listbox or combobox.
Colour is in format Color.
Used In:
ArmA
Example:
_control lbSetColor [0, [0, 1, 0, 0.5]]
--------------------------------------------------------------------------------
lbSetCurSel [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
Nothing
Description:
Select item with given index of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
lbSetCurSel [101, 0]
« To Menu
--------------------------------------------------------------------------------
control lbSetCurSel index
Operand types:
control: Control
index: Number
Type of returned value:
Nothing
Description:
Selects the item with the given index of the given listbox or combobox.
Used In:
ArmA
Example:
_control lbSetCurSel 0
--------------------------------------------------------------------------------
lbSetData [idc, index, data]
Operand types:
[idc, index, data]: Array
Type of returned value:
Nothing
Description:
Set additional text (invisible) in item with given index of listbox or combobox with id idc of topmost user dialog to data.
Used In:
ArmA/OFP
Example:
lbSetData [101, 1, "#1"]
--------------------------------------------------------------------------------
control lbSetData [index, data]
Operand types:
control: Control
[index, data]: Array
Type of returned value:
Nothing
Description:
Sets the additional text (invisible) in the item with the given index of the given listbox or combobox to the given data.
Used In:
ArmA
Example:
_control lbSetData [1, "#1"]
« To Menu
--------------------------------------------------------------------------------
lbSetPicture [idc, index, name]
Operand types:
[idc, index, name]: Array
Type of returned value:
Nothing
Description:
Set picture in item with given index of listbox or combobox with id idc of topmost user dialog.
Picture name is name, picture is searched for in mission directory, subdirectory dtaExt of campaign directory, directory dtaExt and bank (or directory) data.
Used In:
ArmA/OFP
Example:
lbSetPicture [101, 0, "iskoda"]
--------------------------------------------------------------------------------
control lbSetPicture [index, name]
Operand types:
control: Control
[index, name]: Array
Type of returned value:
Nothing
Description:
Sets the picture in the item with the given index of the given listbox or combobox.
Name is the picture name.
The picture is searched for in the mission directory, the dtaExt subdirectory of the campaign directory and the dtaExt directory and the data bank (or directory).
Used In:
ArmA
Example:
_control lbSetPicture [0, "iskoda"]
--------------------------------------------------------------------------------
control lbSetSelected [index, selected]
Operand types:
control: Control
[index, selected]: Array
Type of returned value:
Nothing
Description:
Set the selection state of the given row of the given listbox.
Listbox must support multiple selection.
Used In:
ArmA
Example:
_control lbSetSelected [0, true]
« To Menu
--------------------------------------------------------------------------------
lbSetValue [idc, index, value]
Operand types:
[idc, index, value]: Array
Type of returned value:
Nothing
Description:
Set additional integer value in item with given index of listbox or combobox with id idc of topmost user dialog to value.
Used In:
ArmA/OFP
Example:
lbSetValue [101, 0, 1]
--------------------------------------------------------------------------------
control lbSetValue [index, value]
Operand types:
control: Control
[index, value]: Array
Type of returned value:
Nothing
Description:
Sets the additional integer value in the item with the given index of the given listbox or combobox to the given value.
Used In:
ArmA
Example:
_control lbSetValue [0, 1]
--------------------------------------------------------------------------------
lbSize idc
Operand types:
idc: Number
Type of returned value:
Number
Description:
Return number of items of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_n = lbSize 101
« To Menu
--------------------------------------------------------------------------------
lbSize control
Operand types:
control: Control
Type of returned value:
Number
Description:
Returns the number of items in the given listbox or combobox.
Used In:
ArmA
Example:
_n = lbSize _control
--------------------------------------------------------------------------------
lbSort control
Operand types:
control: Control
Type of returned value:
Nothing
Description:
Sorts listbox entries alphabetically.
Used In:
ArmA
Example:
lbSort _control2
--------------------------------------------------------------------------------
lbSortByValue control
Operand types:
control: Control
Type of returned value:
Nothing
Description:
Sorts listbox entries numerically.
Used In:
ArmA
Example:
lbSortByValue _control5
--------------------------------------------------------------------------------
lbText [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
String
Description:
Return shown text in item with givenindex of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_text = lbText [101, 0]
--------------------------------------------------------------------------------
control lbText index
Operand types:
control: Control
index: Number
Type of returned value:
String
Description:
Returns the shown text in the item with the given index of the given listbox or combobox.
Used In:
ArmA
Example:
_text = _control lbText 0
« To Menu
--------------------------------------------------------------------------------
lbValue [idc, index]
Operand types:
[idc, index]: Array
Type of returned value:
Number
Description:
Return additional integer value in item with given index of listbox or combobox with id idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_value = lbValue [101, 0]
--------------------------------------------------------------------------------
control lbValue index
Operand types:
control: Control
index: Number
Type of returned value:
Number
Description:
Returns the additional integer value in the item with the given index of the given listbox or combobox.
Used In:
ArmA
Example:
_value = _control lbValue 0
--------------------------------------------------------------------------------
leader unit
Operand types:
unit:
Type of returned value:
Object
Description:
Group leader for given unit, for dead units ObjNull.
Used In:
ArmA/OFP
Example:
_leader = leader player
« To Menu
--------------------------------------------------------------------------------
leader grp
Operand types:
grp: Group
Type of returned value:
Object
Description:
Group leader for given group.
For dead unit GrpNull is returned.
Used In:
ArmA/OFP
Example:
_leader = leader group player
--------------------------------------------------------------------------------
unit leaveVehicle vehicle
Operand types:
unit: Object
vehicle: Object
Type of returned value:
Nothing
Description:
Unit cease using vehicle, unassign unit from the vehicle.
Used In:
ArmA/OFP
Example:
soldierOne leaveVehicle jeepOne
--------------------------------------------------------------------------------
group leaveVehicle vehicle
Operand types:
group: Group
vehicle: Object
Type of returned value:
Nothing
Description:
Group cease using vehicle, unassign all group units from the vehicle.
Used In:
ArmA/OFP
Example:
groupOne leaveVehicle jeepOne
« To Menu
--------------------------------------------------------------------------------
light lightAttachObject [object, position]
Operand types:
light: Object
[object, position]: Array
Type of returned value:
Nothing
Description:
Attach light to given object (at given position).
Used In:
ArmA
--------------------------------------------------------------------------------
lightDetachObject light
Operand types:
light: Object
Type of returned value:
Nothing
Description:
Detach light from object.
Used In:
ArmA
--------------------------------------------------------------------------------
lightIsOn lamppost
Operand types:
lamppost: Object
Type of returned value:
String
Description:
Check if lampost is on (shining).
Possible values are:
"ON"
"OFF"
"AUTO" (auto is only on during the night).
Used In:
ArmA/OFP
Examples:
lightIsOn nearestObject [player, "StreetLamp"] != "OFF"
_it = lightIsOn object 159582
macguba
Use switchLight to turn lamposts on and off.
« To Menu
--------------------------------------------------------------------------------
object limitSpeed speed
Operand types:
object: Object
speed: Number
Type of returned value:
Nothing
Description:
Limit speed of given vehicle to given value (in km/h).
Used In:
ArmA
--------------------------------------------------------------------------------
lineBreak
Operand types:
None
Type of returned value:
Structured Text
Description:
Creates a structured text containing a line break.
Used In:
ArmA
Example:
txt3 = lineBreak
--------------------------------------------------------------------------------
list trigger
Operand types:
trigger: Object
Type of returned value:
Array
Description:
List of units that would activate given trigger.
For trigger of type "Not present" the list is the same as that returned for "present".
Used In:
ArmA/OFP
Example:
_tlist = list triggerOne
« To Menu
--------------------------------------------------------------------------------
ln x
Operand types:
x: Number
Type of returned value:
Number
Description:
Natural logarithm of x.
Used In:
ArmA/OFP
Example:
_nlog = ln 10 ..........Result is 2.302
--------------------------------------------------------------------------------
loadFile filename
Operand types:
filename: String
Type of returned value:
String
Description:
Return content of given file.
Used In:
ArmA/OFP
Example:
loadFile "myFunction.sqf"
--------------------------------------------------------------------------------
person loadIdentity name
Operand types:
person: Object
name: String
Type of returned value:
Boolean
Description:
Loads person's identity from objects.sav file in campaign directory (from entry name).
Used In:
ArmA/OFP
Example:
player loadIdentity "playerIdentity"
« To Menu
--------------------------------------------------------------------------------
object loadStatus name
Operand types:
object: Object
name: String
Type of returned value:
Boolean
Description:
Loads object's properties from objects.sav file in campaign directory (from entry name).
Used In:
ArmA/OFP
Example:
player loadStatus "playerState"
--------------------------------------------------------------------------------
local obj
Operand types:
obj: Object
Type of returned value:
Boolean
Description:
MP: Check if given unit is local on the computer.
This can be used when some activation fields or scripts need to be performed only on one computer.
In SP all objects are local.
Note: All static objects are local everywhere.
Used In:
ArmA/OFP
Example:
local unitName
Tactician
In multiplayer, a game logic will always be local to the host computer.
This works on both dedicated and player-hosted servers.
« To Menu
--------------------------------------------------------------------------------
localize stringName
Operand types:
stringName: String
Type of returned value:
String
Description:
Replace string with given name with corresponding localized text from stringtable.csv..
Used In:
ArmA/OFP
Example:
localize "STR_DN_FROG"
--------------------------------------------------------------------------------
vehicle lock lock
Operand types:
vehicle: Object
lock: Boolean
Type of returned value:
Nothing
Description:
Lock vehicle (disable mounting / dismounting) for player.
Used In:
ArmA/OFP
Example:
jeepOne lock true
--------------------------------------------------------------------------------
locked unit
Operand types:
unit: Object
Type of returned value:
Boolean
Description:
Check if vehicle is locked for player.
If it is locked, player cannot mount / dismount without order.
Used In:
ArmA/OFP
Example:
_it = locked jeepOne
« To Menu
--------------------------------------------------------------------------------
group lockWP lockWP
Operand types:
group: Object or Group
lockWP: Boolean
Type of returned value:
Nothing
Description:
Disable switching to next waypoint (current waypoint will never complete while lockwp is used).
Sometimes used during cut-scenes.
Used In:
ArmA/OFP
Example:
groupOne lockWP true
--------------------------------------------------------------------------------
log x
Operand types:
x: Number
Type of returned value:
Number
Description:
Base-10 logarithm of x.
Used In:
ArmA/OFP
Example:
_log = log 10 ..........Result is 1
--------------------------------------------------------------------------------
unit(s) lookAt position
Operand types:
unit(s): Object or Array
position: Object or Array
Type of returned value:
Nothing
Description:
Control what the unit is looking at (target or position).
Format of position is Position
Used In:
ArmA
Examples:
someSoldier lookAt otherSoldier;
otherSoldier lookAt getMarkerPos "markerOne"
--------------------------------------------------------------------------------
« To Menu
M
M
Index
magazines
mapAnimAdd
mapAnimClear
mapAnimCommit
mapAnimDone
markerColor
markerDir
markerPos
markerSize
markerText
markerType
max
min
missionConfigFile
missionName
missionStart
mod
modelToWorld
move
moveInCargo
moveInCargo
moveInCommander
moveInDriver
moveInGunner
moveInTurret
moveTarget
moveTo
moveToCompleted
moveToFailed
musicVolume
magazines vehicle
Operand types:
vehicle: Object
Type of returned value:
Array
Description:
Returns array of types names of all vehicle's magazines.
Used In:
ArmA/OFP
Example:
_mags = magazines player
--------------------------------------------------------------------------------
mapAnimAdd frame
Operand types:
frame: Array
Type of returned value:
Nothing
Description:
Add next frame to map animation.
Format of frame is [time, zoom, position], format of position is Position2D.
Used In:
ArmA/OFP
Example:
mapAnimAdd [1, 0.1, getMarkerPos "anim1"]
--------------------------------------------------------------------------------
mapAnimClear
Operand types:
None
Type of returned value:
Nothing
Description:
Clear map animation.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
mapAnimCommit
Operand types:
None
Type of returned value:
Nothing
Description:
Play map animation.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
mapAnimDone
Operand types:
None
Type of returned value:
Boolean
Description:
Check if map animation is finished.
Used In:
ArmA/OFP
« To Menu
--------------------------------------------------------------------------------
markerColor markerName
Operand types:
markerName: String
Type of returned value:
String
Description:
Get marker colour.
See setMarkerColor.
Note: This function is identical to getMarkerColor.
Used In:
ArmA/OFP
Example:
? markerColor "MarkerOne" == "ColorRed" : player setFace "Marilyn"
--------------------------------------------------------------------------------
markerDir markerName
Operand types:
markerName: String
Type of returned value:
Number
Description:
Get marker direction.
See setMarkerDir and setMarkerDirlocal
Used In:
ArmA
Example:
_dirc = markerDir "MarkerOne"
--------------------------------------------------------------------------------
markerPos markerName
Operand types:
markerName: String
Type of returned value:
Array
Description:
Get marker positon [x,z,y].
See setMarkerPos.
Note: This function is identical to getMarkerPos.
Used In:
ArmA/OFP
Example:
_mPos = markerPos "markerOne"
--------------------------------------------------------------------------------
markerSize markerName
Operand types:
markerName: String
Type of returned value:
Array
Description:
Get marker size.
See setMarkerSize.
Note: This function is identical to getMarkerSize.
Used In:
ArmA/OFP
Example:
_mSize = markerSize "MarkerOne"
« To Menu
--------------------------------------------------------------------------------
markerText markerName
Operand types:
markerName: String
Type of returned value:
String
Description:
Get marker text.
See setMarkerText and setMarkerTextLocal
Used In:
ArmA
Example:
_mText = markerText "MarkerOne"
--------------------------------------------------------------------------------
markerType markerName
Operand types:
markerName: String
Type of returned value:
String
Description:
Get type of marker.
See setMarkerType.
Note: This function is identical to getMarkerType.
Used In:
ArmA/OFP
Example:
? markerType "MarkerOne" == "Dot" : "MarkerOne" setMarkerType "Arrow"
--------------------------------------------------------------------------------
a max b
Operand types:
a:Number
b:Number
Type of returned value:
Number
Description:
The greater of a,b
Used In:
ArmA
Example:
3 max 2......result is 3
--------------------------------------------------------------------------------
a min b
Operand types:
a:Number
b:Number
Type of returned value:
Number
Description:
The smaller of a,b
Used In:
ArmA
Example:
3 min 2......result is 2
« To Menu
--------------------------------------------------------------------------------
missionConfigFile
Operand types:
None
Type of returned value:
Config
Description:
Return root of mission description.ext entries hierarchy.
Used In:
ArmA
--------------------------------------------------------------------------------
missionName
Operand types:
None
Type of returned value:
String
Description:
Return name of current mission.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
missionStart
Operand types:
None
Type of returned value:
Array
Description:
Return time when mission started in format [year, month, day, hour, minute, second].
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
a mod b
Operand types:
a:Number
b:Number
Type of returned value:
Number
Description:
Remainder of a divided by b.
Note: Remainer is calculated in real domain.
Used In:
ArmA/OFP
Example:
_rem = 3 mod 2 ..........Result is 1
macguba
You can use mod to round a decimal number down to the nearest whole number.
For example:
If you wanted to use the command random to generate a whole number between 0 and 6, you could put this in a script:-
_rand = random 6
_num = _rand - (_rand mod 1)
« To Menu
--------------------------------------------------------------------------------
object modelToWorld modelPos
Operand types:
object:Object
modelPos:Array
Type of returned value:
Array
Description:
Converts position from object model space to world space.
Used In:
ArmA
--------------------------------------------------------------------------------
group move pos
Operand types:
group: Object or Group
pos: Array
Type of returned value:
Nothing
Description:
Creates a move waypoint on given position (format Position) and makes it an actual group waypoint.
Used In:
ArmA/OFP
Example:
groupOne move getPos player
--------------------------------------------------------------------------------
soldier moveInCargo vehicle
Operand types:
soldier: Object
vehicle: Object
Type of returned value:
Nothing
Description:
Move soldier into vehicle cargo position (Immediate, no animation).
Used In:
ArmA/OFP
Example:
soldierOne moveInCargo jeepOne
tnl_
If you place a soldier in a vehicle with the moveInCargo command, he wont "know" he's in the vehicle.
Thus he won't disembark properly when the vehicle reaches a Transport Unload waypoint.
Therefore you have to use the assignAsCargo command, in order for the AI to catch on.
Something like this:
moveInCargo helo1
this assignAsCargo helo1
« To Menu
--------------------------------------------------------------------------------
soldier moveInCargo [vehicle, CargoIndex]
Operand types:
soldier: Object
[vehicle, CargoIndex]: Array
Type of returned value:
Nothing
Description:
Moves the soldier into a vehicle's specified cargo position. (Immediately, without animation).
Used In:
ArmA
Example:
soldierOne moveInCargo [jeepOne, 1]
--------------------------------------------------------------------------------
soldier moveInCommander vehicle
Operand types:
soldier: Object
vehicle: Object
Type of returned value:
Nothing
Description:
Move soldier into vehicle commander position (Immediate, no animation).
Used In:
ArmA/OFP
Example:
soldierOne moveInCommander tankOne
--------------------------------------------------------------------------------
soldier moveInDriver vehicle
Operand types:
soldier: Object
vehicle: Object
Type of returned value:
Nothing
Description:
Move soldier into vehicle driver position (Immediate, no animation).
Used In:
ArmA/OFP
Example:
soldierOne moveInDriver tankOne
« To Menu
--------------------------------------------------------------------------------
soldier moveInGunner vehicle
Operand types:
soldier: Object
vehicle: Object
Type of returned value:
Nothing
Description:
Move soldier into vehicle gunner position (Immediate, no animation).
Used In:
ArmA/OFP
Example:
soldierOne moveInGunner tankOne
--------------------------------------------------------------------------------
soldier moveInTurret [vehicle, turret path]
Operand types:
soldier:Object
[vehicle, turret path]: Array
Type of returned value:
Nothing
Description:
Moves the soldier into the vehicle's turret. (Immediately, without animation).
Used In:
ArmA
Example:
soldierOne moveInTurret [tank, [0, 0]]
--------------------------------------------------------------------------------
target moveTarget posDescription
Operand types:
target:Target
posDescription:Array
Type of returned value:
Nothing
Description:
Change information about a target (posDescription is [position, typeAccuracy, posAccuracy]).
Not yet implemented.
Used In:
ArmA
Example:
target moveTarget [position player,1,1]
--------------------------------------------------------------------------------
person moveTo position
Operand types:
person:Object
position:Array
Type of returned value:
Nothing
Description:
Low level command to person to move to given position.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
moveToCompleted person
Operand types:
person:Object
Type of returned value:
Boolean
Description:
Check if latest low level moveTo command is finished.
Used In:
ArmA
--------------------------------------------------------------------------------
moveToFailed person
Operand types:
person:Object
Type of returned value:
Boolean
Description:
Check if latest low level moveTo command failed.
Used In:
ArmA
--------------------------------------------------------------------------------
musicVolume
Operand types:
None
Type of returned value:
Number
Description:
Check current music volume (set by fadeMusic).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
« To Menu
N-O
N
Index
name
nearestBuilding
nearestObject
nearestObject
nearestObject
nearestObjects
nearObjects
nearTargets
needReload
nextWeatherChange
nil
not
name object
Operand types:
object: Object
Type of returned value:
String
Description:
Name of variable assigned to object in mission editor.
If used on vehicle, name of first crew member (in order commander, driver, gunner).
Used In:
ArmA/OFP
Example:
_name = name vehicle player
--------------------------------------------------------------------------------
nearestBuilding obj
Operand types:
obj: Object
Type of returned value:
Object
Description:
Nearest building to given object.
Used In:
ArmA/OFP
Example:
_nBuilding = nearestBuilding player
--------------------------------------------------------------------------------
nearestObject pos
Operand types:
pos: Array
Type of returned value:
Object
Description:
Nearest building of given type to given position or object.
Pos may be [x, y ,z, "type"] or [object, "type"].
Used In:
ArmA/OFP
Example:
_nObject = nearestObject [player, "StreetLamp"]
General Barron
Two notes here:
First - Although it says you can give it coordinates, you have to pass it an object or unit to search from.
Second - This command can only find objects up to 50 meters away.
« To Menu
--------------------------------------------------------------------------------
position nearestObject id
Operand types:
position:Array
id:Number
Type of returned value:
Object
Description:
Find object nearest to given position with given Visitor id.
Used In:
ArmA
Example:
obj = position player nearestObject 1234
--------------------------------------------------------------------------------
position nearestObject type
Operand types:
position:Array
type:String
Type of returned value:
Object
Description:
Find object nearest to given position with given type.
Used In:
ArmA
Example:
obj = position player nearestObject "Building"
--------------------------------------------------------------------------------
nearestObjects pos
Operand types:
pos:Array
Type of returned value:
Array
Description:
Returns a list of nearest objects of the given types to the given position or object, within the specified distance.
Pos may be using format [[x,y,z], ["type",...], limit] or [object, ["type",...], limit].
Used In:
ArmA
Example:
nearestObjects [player, ["Car","Tank"], 200]
« To Menu
--------------------------------------------------------------------------------
position nearObjects radius or [typeName, radius]
Operand types:
position:Object or Array
radius or [typeName, radius]:Number or Array
Type of returned value:
Array
Description:
Find objects in the circle with given radius.
If typeName is given, only objects of given type (or its subtype) are listed.
Used In:
ArmA
Example:
_list = position player nearObjects 50
--------------------------------------------------------------------------------
unit nearTargets distance
Operand types:
unit:Object
distance:Number
Type of returned value:
Array
Description:
Returns the list of targets within the given distance or range.
Targets may not be restricted to only enemy units.
For each target detected an array is created as a sub-array within the returned Array.
Each sub-array entry will consist of:
Position - A perceived quantity which will include judgement and memory errors.
Type - A perceived quantity giving only what was recognised.
Side - Perceived side.
Subjective Cost - Positive value for enemies, has greater value for important or more dangerous enemies.
Object - Object type, can be used to get more information if needed.
Used In:
ArmA
Example:
fred nearTargets 350
--------------------------------------------------------------------------------
needLoad vehicle
Operand types:
vehicle:Object
Type of returned value:
Number
Description:
Return how much vehicle wants to reload its weapons.
Used In:
ArmA
--------------------------------------------------------------------------------
nextWeatherChange
Operand types:
None
Type of returned value:
Number
Description:
Return the time (in seconds) when the next weather change will occur.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
nil
Operand types:
None
Type of returned value:
Any Value
Description:
Nil value.
This value can be used to undefine existing variables.
Used In:
ArmA/OFP
Example:
variableToDestroy = nil
--------------------------------------------------------------------------------
not a
Operand types:
a: Boolean
Type of returned value:
Boolean
Description:
Not a.
Used In:
ArmA/OFP
Example:
not false ....Result is true.

--------------------------------------------------------------------------------

O
Index
object
objNull
objStatus
onBriefingGear
onBriefingGroup
onBriefingNotes
onBriefingPlan
onBriefingTeamSwitch
onMapSingleClick
onPlayerConnected
onPlayerDisconnected
or
orderGetIn
overcast
overcastForecast
object id
Operand types:
id: Number
Type of returned value:
Object
Description:
Return object with given ID.
Object ID's can be checked in mission editor.
Used In:
OFP
Example:
_obj = object 1
macguba
To check object IDs in the Mission Editor click on "Show IDs" and zoom in close.
Available in v1.75 (Resistance) and above.
Tactician
Since version 1.85, you can't setPos island objects to get them out of the way, but you can use setDamage 1 to get trees or other flora out of the way.
--------------------------------------------------------------------------------
objNull
Operand types:
None
Type of returned value:
Object
Description:
Non-existent object.
This value is not equal to anything, not even to itself.
Used In:
ArmA/OFP
Example:
_it = player == objNull ..........Result is false.
--------------------------------------------------------------------------------
objectivenumber objStatus status
Operand types:
objectivenumber: String
status: String
Type of returned value:
Nothing
Description:
Set briefing objective status.
Status may be one of:
"ACTIVE"
"FAILED"
"DONE"
"HIDDEN"
Used In:
ArmA/OFP
Example:
"1" objStatus "FAILED"
« To Menu
--------------------------------------------------------------------------------
onBriefingGear sound
Operand types:
sound: String
Type of returned value:
Nothing
Description:
Define sound (voice) played the first time when section Gear in briefing is selected.
Used In:
ArmA/OFP
Example:
onBriefingGear "GearVoiceOver"
--------------------------------------------------------------------------------
onBriefingGroup sound
Operand types:
sound: String
Type of returned value:
Nothing
Description:
Define sound (voice) played the first time when section Group in briefing is selected.
Used In:
ArmA/OFP
Example:
onBriefingGroup "GroupVoiceOver"
--------------------------------------------------------------------------------
onBriefingNotes sound
Operand types:
sound: String
Type of returned value:
Nothing
Description:
Define sound (voice) played the first time when section Notes in briefing is selected.
Used In:
ArmA/OFP
Example:
onBriefingNotes "NotesVoiceOver"
« To Menu
--------------------------------------------------------------------------------
onBriefingPlan sound
Operand types:
sound: String
Type of returned value:
Nothing
Description:
Define sound (voice) played the first time when section Plan in briefing is selected.
Used In:
ArmA/OFP
Example:
onBriefingPlan "PlanVoiceOver"
--------------------------------------------------------------------------------
onBriefingTeamSwitch sound
Operand types:
sound: String
Type of returned value:
Nothing
Description:
Defines a sound (voice) that is played the first time when the Team switch section in the briefing is selected.
Used In:
ArmA
Example:
onBriefingTeamSwitch "TeamSwitchVoiceOver"
--------------------------------------------------------------------------------
onMapSingleClick command
Operand types:
command:String
Type of returned value:
Nothing
Description:
Define action performed when user clicks in map.
Command receives:
_pos Array position
_units Array selected units
_shift, _alt Boolean key state
If click is processed, command should return true.
Used In:
ArmA/OFP
Examples:
onMapSingleClick {"SoldierWB" createUnit [_pos, group player]; true}
onMapSingleClick {grp1 move _pos; leader grp1 sidechat "Moving"; variable1 = true; onMapSingleClick {}}
KTottE
Here is a very, very useful link explaining more about onMapSingleClick.
« To Menu
--------------------------------------------------------------------------------
onPlayerConnected statement
Operand types:
statement:String
Type of returned value:
Nothing
Description:
This statement is launched whenever a player is connected to a MP session.
Variables _id and _name are set.
Used In:
ArmA
--------------------------------------------------------------------------------
onPlayerDisconnected statement
Operand types:
statement:String
Type of returned value:
Nothing
Description:
This statement is launched whenever a player is disconnected from a MP session.
Variables _id and _name are set.
Used In:
ArmA
--------------------------------------------------------------------------------
a or b
Operand types:
a: Boolean
b: Boolean
Type of returned value:
Boolean
Description:
a or b
Used In:
ArmA/OFP
Example:
not alive player or not alive leader player
« To Menu
--------------------------------------------------------------------------------
unitArray orderGetIn order
Operand types:
unitArray: Array
order: Boolean
Type of returned value:
Nothing
Description:
Force getting in vehicles to all units in the list.
Used In:
ArmA/OFP
Example:
[unitOne, unitTwo] orderGetIn true
toadlife
Note: Units must be assigned to a vehicle before this command will do anything.
See these commands for more info on this:
assignAsCargo
assignAsCommander
assignAsDriver
assignAsGunner
--------------------------------------------------------------------------------
overcast
Operand types:
None
Type of returned value:
Number
Description:
Return the current overcast.
Used In:
ArmA
--------------------------------------------------------------------------------
overcastForecast
Operand types:
None
Type of returned value:
Number
Description:
Return the overcast forecast.
Used In:
ArmA
--------------------------------------------------------------------------------
« To Menu
P
P
Index
parseNumber
parseText
pi
pickWeaponPool
player
playerRespawnTime
playerSide
playersNumber
playMission
playMove
playMusic
playMusic
playSound
position
positionCameraToWorld
posScreenToWorld
posWorldToScreen
precision
preloadCamera
preloadObject
preloadSound
preloadTitleObj
preloadTitleRsc
preprocessFile
preprocessFileLineNumbers
primaryWeapon
private
private
processInitCommands
publicVariable
putWeaponPool
parseNumber string
Operand types:
string: String
Type of returned value:
Number
Description:
Parse string containing real number.
Used In:
ArmA
Example:
parseNumber "0.125"
--------------------------------------------------------------------------------
parseText text
Operand types:
text: String
Type of returned value:
Structured Text
Description:
Creates a structured text by parsing the given XML description.
Used In:
ArmA
Example:
txt = parseText "First line<img image=data\isniper.paa/><br/>Second line"
--------------------------------------------------------------------------------
pi
Operand types:
None
Type of returned value:
Number
Description:
pi (180 degrees converted to radians).
Used In:
ArmA/OFP
Example:
_a = 2*pi ..........Result is 6.2830
--------------------------------------------------------------------------------
pickWeaponPool object
Operand types:
object: Object
Type of returned value:
Nothing
Description:
Transfer weapons and magazines from cargo of object into weapon pool (used in campaign to transfer weapons into next mission).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
player
Operand types:
None
Type of returned value:
Object
Description:
Person controled by player.
In MP this value is different on each computer.
Used In:
ArmA/OFP
Example:
? ! alive player : goto "dead"
« To Menu
--------------------------------------------------------------------------------
playerRespawnTime
Operand types:
None
Type of returned value:
Number
Description:
Return the player remaining time to respawn.
In MP this value is different on each computer.
Used In:
ArmA
--------------------------------------------------------------------------------
playerSide
Operand types:
None
Type of returned value:
Side
Description:
Returns the player's side.
This is valid even when the player controlled person is dead (a difference from player side).
Used In:
ArmA
--------------------------------------------------------------------------------
playersNumber side
Operand types:
side: Side
Type of returned value:
Number
Description:
Return count of players playing on given side.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
playMission [campaign, mission] or [campaign, mission, skipBriefing]
Operand types:
[campaign, mission] or [campaign, mission, skipBriefing]Array
Type of returned value:
Nothing
Description:
The mission is launched (from the main menu).
Both campaign and mission are given as their directory name.
If the campaign is empty, a single mission is launched.
If skipBriefing is true, the intro and briefing are skipped.
Used In:
ArmA
Example:
playMission ["XOutrage","x05Negotiator.Noe"]
« To Menu
--------------------------------------------------------------------------------
soldier playMove moveName
Operand types:
soldier:Object
moveName: String
Type of returned value:
Nothing
Description:
When used on person, smooth transition to given move will be done.
Used In:
ArmA/OFP
Example:
soldierOne playMove "Stand"
macguba
For an immediate transition use switchMove.
Animation list here.
--------------------------------------------------------------------------------
playMusic name
Operand types:
name:String
Type of returned value:
Nothing
Description:
Play music defined in description.ext.
Used In:
ArmA/OFP
Example:
playMusic "musicname"
--------------------------------------------------------------------------------
playMusic nameAndPos
Operand types:
nameAndPos: Array
Type of returned value:
Nothing
Description:
Play music defined in description.ext.
Format of nameAndPos is [name, position], position is in seconds.
Used In:
ArmA/OFP
Example:
playMusic ["Track13", 30]
« To Menu
--------------------------------------------------------------------------------
playSound name
Operand types:
name: String
Type of returned value:
Nothing
Description:
Play sound defined in description.ext.
Used In:
ArmA/OFP
Example:
playSound "soundname"
--------------------------------------------------------------------------------
position object
Operand types:
object: Object
Type of returned value:
Array
Description:
Object position in format Position.
Used In:
ArmA/OFP
Example:
pPos = position player
--------------------------------------------------------------------------------
positionCameraToWorld position
Operand types:
position: Array
Type of returned value:
Array
Description:
Transform position from camera coordinate space to world coordinate space.
Used In:
ArmA
Example:
pPos = positionCameraToWorld player
« To Menu
--------------------------------------------------------------------------------
map posScreenToWorld [x, y]
Operand types:
map:Control
[x, y]:Array
Type of returned value:
Array
Description:
Convert screen coordinates in map to world coordinates.
Used In:
ArmA
--------------------------------------------------------------------------------
map posWorldToScreen position
Operand types:
map:Control
position:Array
Type of returned value:
Array
Description:
Convert world coordinates to screen coordinates in map.
Used In:
ArmA
--------------------------------------------------------------------------------
precision entity
Operand types:
entity: Object
Type of returned value:
Number
Description:
Return the precision of the given entity.
Used In:
ArmA
--------------------------------------------------------------------------------
preloadCamera position
Operand types:
position: Array
Type of returned value:
Boolean
Description:
Preload all textures and models around given position.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
distance preloadObject object
Operand types:
distance:Number
object:Object or String
Type of returned value:
Boolean
Description:
Preload all data for given object.
Used In:
ArmA
--------------------------------------------------------------------------------
preloadSound sound
Operand types:
sound: String
Type of returned value:
Boolean
Description:
Make sure sound can start playing without any delay when it is needed.
Used In:
ArmA
--------------------------------------------------------------------------------
preloadTitleObj effect
Operand types:
effect: Array
Type of returned value:
Boolean
Description:
Object title - Argument uses format ["text","type",speed] or ["name","type"].
Speed is ignored.
Preload data, the object, can be defined in the description.ext file.
Used In:
ArmA
Example:
preloadTitleObj ["BISLogo","plain"]
--------------------------------------------------------------------------------
preloadTitleRsc effect
Operand types:
effect: Array
Type of returned value:
Boolean
Description:
Resource title - Argument uses format ["name","type",speed] or ["name","type"].
Speed is ignored.
Preload data, the resource, can be defined in the description.ext file.
Used In:
ArmA
Example:
preloadTitleRsc ["BIS","PLAIN"]
« To Menu
--------------------------------------------------------------------------------
preprocessFile filename
Operand types:
filename: String
Type of returned value:
String
Description:
Returns preprocessed content of given file.
Preprocessor is C-like, supports comments using // or /* and */ and macros defined with #define.
Used In:
ArmA/OFP
Example:
preprocessFile "myFunction.sqf"......result is "if a>b then {a} else {b}"
--------------------------------------------------------------------------------
preprocessFileLineNumbers filename
Operand types:
filename: String
Type of returned value:
String
Description:
Returns preprocessed content of given file.
Preprocessor is C-like, supports comments using // or /* and */ and macros defined with #define.
Used In:
ArmA
Example:
preprocessFileLineNumbers "myFunction.sqf"......result is "if a>b then {a} else {b}"
--------------------------------------------------------------------------------
primaryWeapon vehicle
Operand types:
vehicle: Object
Type of returned value:
String
Description:
Returns name of vehicle's primary weapon (empty string if none).
Used In:
ArmA/OFP
Example:
pWeap = primaryWeapon player
« To Menu
--------------------------------------------------------------------------------
private variableName
Operand types:
variableName: String
Type of returned value:
Nothing
Description:
Make sure given variable is local in current scope.
If some variable with the same name exists in encapsulating scope, it is hidden.
Used In:
ArmA/OFP
Example:
private "_i"

--------------------------------------------------------------------------------
private variableNameList
Operand types:
variableNameList:Array
Type of returned value:
Nothing
Description:
Make sure given variables are local in current scope.
If some variables with the same names exist in encapsulating scope, they are hidden.
Used In:
ArmA/OFP
Example:
private ["_i", "_j", "_k"]
--------------------------------------------------------------------------------
processInitCommands
Operand types:
None
Type of returned value:
Nothing
Description:
Process commands stored using setVehicleInit.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
publicVariable varName
Operand types:
varName: String
Type of returned value:
Nothing
Description:
Broadcast variable value to all computers.
Only type Number is supported in version 1.33 and before.
Following types are supported since version 1.34:
Number
Boolean
Object
Group
Used In:
ArmA/OFP
Example:
publicVariable "CTFscoreOne"
--------------------------------------------------------------------------------
putWeaponPool obj
Operand types:
obj: Object
Type of returned value:
Nothing
Description:
Transfer weapons and magazines from weapon pool into cargo of object obj.
Used in campaign to transfer weapons into next mission.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
Q-R
Q
Index
queryMagazinePool
queryWeaponPool
queryMagazinePool name
Operand types:
name: String
Type of returned value:
Number
Description:
Return number of magazines of type name in magazine pool (used in campaign to transfer magazines into next mission).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
queryWeaponPool name
Operand types:
name: String
Type of returned value:
Number
Description:
Return number of weapons of type name in weapon pool (used in campaign to transfer weapons into next mission).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
R
Index
rad
radioVolume
rain
random
rank
rating
reload
reloadEnabled
removeAction
removeAllEventHandlers
removeAllWeapons
removeEventHandler
removeMagazine
removeMagazines
removeSwitchableUnit
removeWeapon
requiredVersion
resistance
resize
respawnVehicle
reveal
round
runInitScript
rad x
Operand types:
x: Number
Type of returned value:
Number
Description:
Convert x from degrees to radians.
Used In:
ArmA/OFP
Example:
_radians = rad 180 ..........Result is 3.1415
--------------------------------------------------------------------------------
radioVolume
Operand types:
None
Type of returned value:
Number
Description:
Checks the current radio volume (set by fadeRadio)
Used In:
ArmA
--------------------------------------------------------------------------------
rain
Operand types:
None
Type of returned value:
Number
Description:
Return the current rain.
Used In:
ArmA
--------------------------------------------------------------------------------
random x
Operand types:
x: Number
Type of returned value:
Number
Description:
Random real value from 0 to x.
Used In:
ArmA/OFP
Example:
_rNumber = random 1
Tactician
Be careful using random numbers in multiplayer, each client will come up with something different.
See multiplayer tutorials for more general information about locality.
macguba
The number returned is unlikely to be a whole number (e.g. 1,  4, 76, etc.).
To return a whole number combine random and mod.
« To Menu
--------------------------------------------------------------------------------
rank unit
Operand types:
unit: Object
Type of returned value:
String
Description:
Return the rank of the given unit.
Used In:
ArmA
--------------------------------------------------------------------------------
rating unit
Operand types:
unit:Object
Type of returned value:
Number
Description:
Check unit rating.
Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.
Used In:
ArmA/OFP
Example:
_score = rating player
macguba
Use addRating to change the rating of a unit.
General Barron
The rating of the player is displayed as the "score" at the end of the mission.
In the description.ext, you define how many points it takes to get a perfect score, and all those pretty gold stars.
--------------------------------------------------------------------------------
reload vehicle
Operand types:
vehicle:Object
Type of returned value:
Nothing
Description:
Reload all weapons.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
reloadEnabled vehicle
Operand types:
vehicle:Object
Type of returned value:
Boolean
Description:
Check whether magazine is reloaded whenever emptied.
Used In:
ArmA
--------------------------------------------------------------------------------
unit removeAction index
Operand types:
unit: Object
index: Number
Type of returned value:
Nothing
Description:
Remove action with given id.
Used In:
ArmA/OFP
Example:
player removeAction 0
General Barron
Note that this only removes actions added with the addAction command.
You can not remove default game actions, such as reload and salute, with this command.
--------------------------------------------------------------------------------
object removeAllEventHandlers handlerType
Operand types:
object: Object
handlerType: String
Type of returned value:
Nothing
Description:
Removes all event handlers of given type that were added by addEventHandler.
Used In:
ArmA/OFP
Example:
player removeAllEventHandlers "killed"
« To Menu
--------------------------------------------------------------------------------
removeAllWeapons unit
Operand types:
unit: Object
Type of returned value:
Nothing
Description:
Remove all weapons of the unit.
Used In:
ArmA/OFP
Example:
removeAllWeapons player
--------------------------------------------------------------------------------
object removeEventHandler handler
Operand types:
object: Object
handler: Array
Type of returned value:
Nothing
Description:
Removes event handler added by addEventHandler.
Format of handler is [type, index].
Index is returned by addEventHandler.
When any handler is removed, all handler indices higher than the deleted one should be decremented.
Used In:
ArmA/OFP
Example:
player removeEventHandler ["killed", 0]
--------------------------------------------------------------------------------
unit removeMagazine magazineName
Operand types:
unit: Object
magazineName: String
Type of returned value:
Nothing
Description:
Remove magazine from the unit.
Note: You may create invalid combinations with this function.
When doing so, application behaviour is undefined.
Used In:
ArmA/OFP
Example:
player removeMagazine "M16"
« To Menu
--------------------------------------------------------------------------------
unit removeMagazines magazineName
Operand types:
unit: Object
magazineName: String
Type of returned value:
Nothing
Description:
Remove all magazines of given type from the unit.
Note: You may create invalid combinations with this function.
When doing so, application behaviour is undefined.
Used In:
ArmA/OFP
Example:
player removeMagazines "M16"
--------------------------------------------------------------------------------
removeSwitchableUnit person
Operand types:
person:Object
Type of returned value:
Nothing
Description:
Remove a unit from the list of units available for team switch.
Used In:
ArmA
--------------------------------------------------------------------------------
unit removeWeapon weaponName
Operand types:
unit: Object
weaponName: String
Type of returned value:
Nothing
Description:
Remove weapon from the unit.
Note: You may create invalid combinations with this function.
When doing so, application behaviour is undefined.
Used In:
ArmA/OFP
Example:
player removeWeapon "M16"
« To Menu
--------------------------------------------------------------------------------
requiredVersion version
Operand types:
version: String
Type of returned value:
Boolean
Description:
Check if version of application is available.
If not, show warning message and return false.
Version format is "Major.Minor", e.g. "1.30".
Used In:
ArmA/OFP
Example:
requiredVersion "1.30"
--------------------------------------------------------------------------------
resistance
Operand types:
None
Type of returned value:
Side
Description:
Resistance side.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
array resize count
Operand types:
array: Array
count: Number
Type of returned value:
Nothing
Description:
Change array size.
Can be used to add or remove elements from the array.
Used In:
ArmA/OFP
Example:
arrayOne resize 2
« To Menu
--------------------------------------------------------------------------------
vehicle respawnVehicle [delay = -1, count = 0]
Operand types:
vehicle: Object
[delay = -1, count = 0]: Array
Type of returned value:
Nothing
Description:
Set vehicle as respawnable in MP games.
Delay is respawn delay, default respawnDelay from description.ext is used.
Count tells how many respawns is processed (default unlimited).
Used In:
ArmA
Example:
car respawnVehicle [5.0, 3]
--------------------------------------------------------------------------------
group reveal unit
Operand types:
group: Object or Group
unit: Object
Type of returned value:
Nothing
Description:
Reveal unit to group, do not care if it can know about it or not.
Used In:
ArmA/OFP
Example:
soldierOne reveal soldierTwo
« To Menu
--------------------------------------------------------------------------------
round x
Operand types:
x: Number
Type of returned value:
Number
Description:
The rounded value of x.
Used In:
ArmA
Example:
round -5.25......result is -5
--------------------------------------------------------------------------------
runInitScript x
Operand types:
None
Type of returned value:
Nothing
Description:
Launch init.sqs script.
Used In:
ArmA
--------------------------------------------------------------------------------
« To Menu
S
S
Index
saveGame
saveIdentity
saveStatus
saveVar
say
say
scopeName
score
scriptDone
scudState
secondaryWeapon
select
select
select
selectionPosition
selectLeader
selectPlayer
selectWeapon
sendSimpleCommand
set
setAccTime
setAirportSide
setAmmoCargo
setAperture
setAttributes
setBehaviour
setCameraEffect
setCameraInterest
setCaptive
setCombatMode
setCurrentWaypoint
setDamage
setDammage
setDate
setDestination
setDir
setDropInterval
setEffectCondition
setFace
setFaceAnimation
setFlagOwner
setFlagSide
setFlagTexture
setFog
setFormation
setFormationTask
setFormDir
setFriend
setFuel
setFuelCargo
setGroupId
setHideBehind
setIdentity
setLightAmbient
setLightBrightness
setLightColor
setMarkerBrush
setMarkerBrushLocal
setMarkerColor
setMarkerColorLocal
setMarkerDir
setMarkerDirLocal
setMarkerPos
setMarkerPosLocal
setMarkerShape
setMarkerShapeLocal
setMarkerSize
setMarkerSizeLocal
setMarkerText
setMarkerTextLocal
setMarkerType
setMarkerTypeLocal
setMimic
setMousePosition
setMusicEffect
setObjectTexture
setOvercast
setParticleCircle
setParticleParams
setParticleRandom
setPlayable
setPos
setPosASL
setRadioMsg
setRain
setRank
setRepairCargo
setSkill
setSkill
setSoundEffect
setSpeedMode
setTargetAge
setTerrainGrid
setTitleEffect
setTriggerActivation
setTriggerArea
setTriggerStatements
setTriggerText
setTriggerTimeout
setTriggerType
setUnitAbility
setUnitPos
setUnitPosWeak
setUnitRank
setVariable
setVectorDir
setVectorUp
setVehicleAmmo
setVehicleArmor
setVehicleId
setVehicleInit
setVehicleLock
setVehiclePosition
setVehicleVarName
setVelocity
setViewDistance
setWaypointBehaviour
setWaypointCombatMode
setWaypointDescriptionr
setWaypointFormation
setWaypointHousePosition
setWaypointPosition
setWaypointScript
setWaypointSpeed
setWaypointStatements
setWaypointTimeout
setWaypointType
setWPPos
showCinemaBorder
showCompass
showGps
showMap
shownCompass
shownGps
shownMap
shownPad
shownRadio
shownWarrant
shownWatch
showPad
showRadio
showWarrant
showWatch
showWaypoint
side
sideChat
sideEnemy
sideFriendlyt
sideLogic
sideRadio
sin
sizeOf
skill
skill
skipTime
sleep
sliderPosition
sliderPosition
sliderRange
sliderRange
sliderSetPosition
sliderSetPosition
sliderSetRange
sliderSetRange
sliderSetSpeed
sliderSetSpeed
sliderSpeed
sliderSpeed
someAmmo
soundVolume
spawn
spawn
speed
speedMode
sqrt
step
stop
stopped
str
supportInfo
surfaceIsWater
surfaceType
switch
switchableUnits
switchCamera
switchLight
switchMove
synchronizeWaypoint
synchronizeWaypoint
saveGame
Operand types:
None
Type of returned value:
Nothing
Description:
Autosave game (used for Retry).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
person saveIdentity name
Operand types:
Person: Object
Name: String
Type of returned value:
Boolean
Description:
Saves person's identity to objects.savfile in campaign directory as entry name.
Used In:
ArmA/OFP
Example:
player saveIdentity "playerid"
--------------------------------------------------------------------------------
object saveStatus name
Operand types:
Object: Object
Name: String
Type of returned value:
Boolean
Description:
Saves object's properties to objects.sav file in campaign directory as entry name.
Used In:
ArmA/OFP
Example:
player saveStatus "playerstate"
--------------------------------------------------------------------------------
saveVar varname
Operand types:
varname: String
Type of returned value:
Nothing
Description:
Save variable value into the campaign space.
This variable is available to all following missions in the campaign.
Used In:
ArmA/OFP
Example:
saveVar "varOne"
--------------------------------------------------------------------------------
unit say speechname
Operand types:
unit: Object
speechName: Array
Type of returned value:
Nothing
Description:
Format of speechName is [sound, maxTitlesDistance].
Unit will play given sound.
When unit is person, it will also perform corresponding lipsync effect.
If camera is not withing given range, title is not shown.
Sound is defined in description.ext.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
unit say speechname
Operand types:
unit: Object
speechName: String
Type of returned value:
Nothing
Description:
Unit will play given sound.
When unit is person, it will also perform corresponding lipsync effect.
Sound is defined in description.ext.
Used In:
ArmA/OFP
Example:
soldier1 say "speechid"
--------------------------------------------------------------------------------
scopeName name
Operand types:
Name: String
Type of returned value:
Nothing
Description:
Defines name of current scope.
Name is visible in debugger, and name is also used as reference in some commands.
Scope name can be defined only once per scope.
Used In:
ArmA
--------------------------------------------------------------------------------
score unit
Operand types:
unit: Object
speechName: Array
Type of returned value:
Number
Description:
MP: Check unit score.
Used In:
ArmA/OFP
Example:
pScore = score player
--------------------------------------------------------------------------------
scriptDone script
Operand types:
script: Script
Type of returned value:
Boolean
Description:
Check if script is already finished.
Used In:
ArmA
--------------------------------------------------------------------------------
scudState scudname
Operand types:
scudname: Object
Type of returned value:
Number
Description:
Current state of given Scud launcher.
Following states are recognized:
0 - No activity
1 - Launch preparation
2 - Launch prepared
3 - Ignition
4 - Launched
Note: Non-integral values are used to indicate transition between states.
Used In:
ArmA/OFP
Example:
? scudState scudOne >= 4 : hint "RUN!!!!"
macguba
Note that this command does not make the scud do anything.
It simply checks to see what state the scud is in.
To make the scud be upright or launch you need to use an action.
e.g. scud1 action ["scud launch"]
--------------------------------------------------------------------------------
secondaryWeapon vehicle
Operand types:
vehicle: Object
Type of returned value:
String
Description:
Returns name of vehicle's secondary weapon (empty string if none).
Used In:
ArmA/OFP
Example:
sWeap = secondaryWeapon player
--------------------------------------------------------------------------------
array select index
Operand types:
array: Array
index: Boolean
Type of returned value:
Any Value
Description:
If index is false, select first element of array, if it is true select the second index.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
array select index
Operand types:
array: Array
index: Number
Type of returned value:
Any Value
Description:
Select index element of array, index 0 denotes the first element, 1 indicates the second.
Used In:
ArmA/OFP
Example:
[1,2,3] select 1: .......Result is 2.
« To Menu
--------------------------------------------------------------------------------
config select index
Operand types:
config: Config
index: Number
Type of returned value:
Config
Description:
Returns subentry with given index.
Used In:
ArmA
Example:
(configFile >> "CfgVehicles") select 0

--------------------------------------------------------------------------------
object selectionPosition selectionName
Operand types:
object: Object
selectionName: String
Type of returned value:
Array
Description:
Search for selection in the object model (first in the memory level, then in other levels). Returns the position in model space.
Used In:
ArmA
--------------------------------------------------------------------------------
group selectLeader unit
Operand types:
group: Group
unit: Object
Type of returned value:
Nothing
Description:
Select group leader.
Used In:
ArmA
Example:
group player selectLeader player
« To Menu
--------------------------------------------------------------------------------
selectPlayer unit
Operand types:
unit: Object
Type of returned value:
Nothing
Description:
Switch player to given unit.
Used In:
ArmA
Example:
selectPlayer aP

--------------------------------------------------------------------------------
unit selectWeapon weapon
Operand types:
unit: Object
weapon: String
Type of returned value:
Nothing
Description:
Select given weapon.
For weapon values see CfgWeapons.
Used In:
ArmA/OFP
Example:
soldier1 selectWeapon "LAWLauncher"
--------------------------------------------------------------------------------
object sendSimpleCommand command
Operand types:
object: Object
command: String
Type of returned value:
Nothing
Description:
Sends a simple command to the vehicle's driver / gunner.
Used In:
ArmA
Example:
vehicle player sendSimpleCommand "STOP"
« To Menu
--------------------------------------------------------------------------------
array set element
Operand types:
array: Array
element: Array
Type of returned value:
Nothing
Description:
Format of element is [index, value].
Changes an element of given array.
It element does not exist, resize index+1 is called to create it.
Used In:
ArmA/OFP
Example:
array set [0, "Hello"]
--------------------------------------------------------------------------------
setAccTime accFactor
Operand types:
accFactor: Number
Type of returned value:
Nothing
Description:
Set time acceleration coefficient.
May be also used to slow time in cutscenes.
A good habit to get into is setting the acctime to 1 at the start of all cutscenes, in case the player is running at 4x speed when the scene starts.
This command does NOT work in multiplayer.
Used In:
ArmA/OFP
Example:
setAccTime 0.1
« To Menu
--------------------------------------------------------------------------------
id setAirportSide side
Operand types:
id: Number
side: Side
Type of returned value:
Nothing
Description:
Assign airport to a particular side.
id is the index number of the airport and is specific to a particular airfield.
Following id numbers apply:
0 - Paraiso
1 - Rahmadi
2 - Pita
3 - Antigua
Used In:
ArmA
Example:
1 setAirportSide west
--------------------------------------------------------------------------------
vehicle setAmmoCargo ammoCargo
Operand types:
vehicle: Object
ammoCargo: Number
Type of returned value:
Nothing
Description:
Set amount or ammo resources in cargo space of rearm vehicle.
Ammo resource is used to resupply vehicles.
Soldiers use individual magazines instead.
Amount: 1 is full cargo.
Used In:
ArmA/OFP
Example:
ammoTruck1 setAmmoCargo 0
--------------------------------------------------------------------------------
setAperture set
Operand types:
set: Number
Type of returned value:
Nothing
Description:
Sets custom camera apreture (-1 to do it automatically).
Used In:
ArmA
--------------------------------------------------------------------------------
text setAttributes [name1, value1, name2, value2, ...]
Operand types:
text: String
[name1, value1, name2, value2, ...]: Array
Type of returned value:
Structured Text
Description:
Returns a structured text created by the given structured or plain text by setting attributes to the given values.
Used In:
ArmA
Example:
txt = img setAttributes ["image", "data\iSoldier.paa"]
« To Menu
--------------------------------------------------------------------------------
group setBehaviour behaviour
Operand types:
group: Object or Group
behaviour: String
Type of returned value:
Nothing
Description:
Set group behaviour mode.
Behaviour is one of:
"CARELESS"
"SAFE"
"AWARE"
"COMBAT"
"STEALTH"
Used In:
ArmA/OFP
Example:
group1 setBehaviour "safe"
--------------------------------------------------------------------------------
trigger or waypoint setCameraEffect [name, position]
Operand types:
trigger or waypoint: Object or Array
[name, position]: Array
Type of returned value:
Nothing
Description:
Name defines the effect type (a subclass of CfgCameraEffects.Array):
"TERMINATE"
"INTERNAL"
"ZOOMIN"
"ZOOMINSLOW"
"AROUND"
"AROUNDSLOW"
"ZOOMANDAROUND"
"AROUNDANDZOOMINSLOW"
"ZOOMINS"
"FIXED"
"FIXEDWITHZOOM"
"EXTERNAL"
Or "$TERMINATE$" to cancel the current effect.
Position is camera placement:
"TOP"
"LEFT"
"RIGHT"
"FRONT"
"BACK"
"LEFT FRONT"
"RIGHT FRONT"
"LEFT BACK"
"RIGHT BACK"
"LEFT TOP"
"RIGHT TOP"
"FRONT TOP"
"BACK TOP"
"BOTTOM"
Used In:
ArmA
Example:
trigger setCameraEffect ["Fixed", "LEFT"]
--------------------------------------------------------------------------------
entity setCamerInterest interest
Operand types:
entity: Object
interest: Number
Type of returned value:
Nothing
Description:
Set camera interest for given entity.
Used In:
ArmA
Example:
_soldier setCameraInterest 50
--------------------------------------------------------------------------------
person setCaptive status
Operand types:
person: Object
status: Boolean
Type of returned value:
Nothing
Description:
Mark unit as captive.
If unit is vehicle, commander is marked.
Captive is neutral to everyone.
Note: This function does not remove unit's weapons.
Note: If you make a unit captive, that unit will still fire on the enemy, but the enemy will not fire back.
Used In:
ArmA/OFP
Example:
soldier1 setCaptive true
« To Menu
--------------------------------------------------------------------------------
group setCombatMode mode
Operand types:
group: Object or Group
mode: String
Type of returned value:
Nothing
Description:
Set group combat mode (engagement rules).
Mode may be one of:
"BLUE" (Never fire)
"GREEN" (Hold fire - defend only)
"WHITE" (Hold fire, engage at will)
"YELLOW" (Fire at will)
"RED" (Fire at will, engage at will)
Used In:
ArmA/OFP
Example:
group1 setCombatMode "BLUE"
--------------------------------------------------------------------------------
group setCurrentWaypoint waypoint
Operand types:
group: Group
waypoint: Array
Type of returned value:
Nothing
Description:
Sets a groups currently active waypoint.
Used In:
ArmA
Example:
group1 setCurrentWaypoint [group1, 1]
« To Menu
--------------------------------------------------------------------------------
object setDamage damage
Operand types:
object: Object
damage: Number
Type of returned value:
Nothing
Description:
Damage / repair object.
Damage 0 means fully functional, damage 1 means completely destroyed / dead.
Note: this function is identical to setDammage.
It was introduced to fix a spelling error in original function name.
Used In:
ArmA/OFP
Example:
soldier1 setDamage 1
--------------------------------------------------------------------------------
object setDammage damage
Operand types:
object: Object
damage: Number
Type of returned value:
Nothing
Description:
Damage / repair object.
Damage 0 means fully functional, damage 1 means completely destroyed / dead.
Used In:
ArmA/OFP
Example:
soldier1 setDammage 1
« To Menu
--------------------------------------------------------------------------------
setDate [year, month, day, hour, minute]
Operand types:
[position, planningMode, forceReplan]: Array
Type of returned value:
Nothing
Description:
Sets the actual mission date and time.
Used In:
ArmA
--------------------------------------------------------------------------------
object setDestination [position, planningMode, forceReplan]
Operand types:
object: Object
[position, planningMode, forceReplan]: Array
Type of returned value:
Nothing
Description:
Set the destination for path planning of the pilot.
Used In:
ArmA
--------------------------------------------------------------------------------
object setDir heading
Operand types:
object: Object
heading: Number
Type of returned value:
Nothing
Description:
Set object heading.
Accepted heading range is 0 to 360.
Used In:
ArmA/OFP
Example:
soldier1 setDir 45
« To Menu
--------------------------------------------------------------------------------
particleSource setDropInterval interval
Operand types:
particleSource: Object
interval: Number
Type of returned value:
Nothing
Description:
Set interval of emitting particles from particle source.
Used In:
ArmA
Example:
_source setDropInterval 0.05
--------------------------------------------------------------------------------
trigger or waypoint setEffectCondition statement
Operand types:
trigger or waypoint: Object Or Array
statement: String
Type of returned value:
Nothing
Description:
The statement is executed when the trigger or waypoint is activated and the effects are launched depending on the result.
If the result is a boolean and true, the effect is launched.
If the result is an object, the effect is launched if the result is the player or the player vehicle.
If the result is an array, the effect is launched if the result contains the player or the player vehicle.
Used In:
ArmA
Example:
trigger setEffectCondition "thisList"
--------------------------------------------------------------------------------
person setFace face
Operand types:
person: Object
face: String
Type of returned value:
Nothing
Description:
Set person's face.
Used In:
ArmA/OFP
Example:
soldier1 setFace "face10"
bedges
For a complete list of all faces that came with the game, click here.
For a tutorial on how to create your own face addon, click here.
« To Menu
--------------------------------------------------------------------------------
person setFaceAnimation blink
Operand types:
person: Object
blink: Number
Type of returned value:
Nothing
Description:
Set facial animation phase (eye blinking), blink in range 0 to 1.
Used In:
ArmA/OFP
Example:
soldier1 setFaceAnimation 0.5
--------------------------------------------------------------------------------
flag setFlagOwner owner
Operand types:
flag: Object
owner: Object
Type of returned value:
Nothing
Description:
Set flag owner.
When owner is set to objNull, flag is returned to theflagpole.
Used In:
ArmA/OFP
Example:
flag1 setFlagOwner soldier1
--------------------------------------------------------------------------------
flag setFlagSide side
Operand types:
flag: Object
side: Side
Type of returned value:
Nothing
Description:
Set flag side.
Used In:
ArmA/OFP
Example:
flag1 setFlagSide east
« To Menu
--------------------------------------------------------------------------------
flag setFlagTexture texture
Operand types:
flag: Object
texture: String
Type of returned value:
Nothing
Description:
Set flag texture.
If texture is "", flag is not drawn.
Used In:
ArmA/OFP
Example:
flag1 setFlagTexture "usa_vlajka.pac"
bedges
Flashpoint comes with an addon called Flags.pbo which contains all the flags of the world. You can find it in the addons folder.
To use a flag texture from there:
flag1 setflagtexture "\flags\usa.jpg" - USA flag
flag1 setflagtexture "\flags\ussr.jpg" - USSR flag
flag1 setflagtexture "\flags\fia.jpg" - Resistance flag
For a reference showing all flags, click here.
--------------------------------------------------------------------------------
time setFog fog-level
Operand types:
time: Number
fog-level: Number
Type of returned value:
Nothing
Description:
Set fog value smoothly during given time (in seconds).
Zero time means immediate change.
Fog-level of 0 is minimum fog, 1 is maximum fog.
Used In:
ArmA/OFP
Example:
15 setFog 0.5
« To Menu
--------------------------------------------------------------------------------
group setFormation formation
Operand types:
group: Object or Group
formation: String
Type of returned value:
Nothing
Description:
Set group formation.
Formation is one of:
"COLUMN"
"STAG COLUMN"
"WEDGE"
"ECH LEFT"
"ECH RIGHT"
"VEE"
"LINE"
Used In:
ArmA/OFP
Example:
groupOne setFormation "LINE"
--------------------------------------------------------------------------------
object setFormationTask task
Operand types:
object: Object
task: String
Type of returned value:
Nothing
Description:
Set the current task of the formation member.
Used In:
ArmA
--------------------------------------------------------------------------------
group setFormDir heading
Operand types:
group: Object or Group
heading: Number
Type of returned value:
Nothing
Description:
Set formation heading.
Accepted heading range is 0 to 360.
Formation is facing this direction unless enemy is seen.
When group is moving, this value is overriden by movement direction.
Used In:
ArmA/OFP
Example:
group1 setFormDir 180
« To Menu
--------------------------------------------------------------------------------
side1 setFriend [side2, value]
Operand types:
side1: Side
[side2, value]: Array
Type of returned value:
Nothing
Description:
Sets how friendly side1 is with side2.
For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.
Used In:
ArmA
--------------------------------------------------------------------------------
vehicle setFuel amount
Operand types:
vehicle: Object
amount: Number
Type of returned value:
Nothing
Description:
Set fuel amount.
Fuel 1 is full gas tank, 0 is empty.
Used In:
ArmA/OFP
Example:
jeepOne setFuel 0
--------------------------------------------------------------------------------
vehicle setFuelCargo amount
Operand types:
vehicle: Object
amount: Number
Type of returned value:
Nothing
Description:
Set fuel amount in cargo space of refuel vehicle.
Fuel 1 is full gas tank, 0 is empty.
Used In:
ArmA/OFP
Example:
refuelTruckOne setFuelCargo 0
« To Menu
--------------------------------------------------------------------------------
group setGroupId [nameFomat, nameParam1, ...]
Operand types:
group: Object or Group
[nameFomat, nameParam1, ...]: Array
Type of returned value:
Nothing
Description:
Set group identity.
Id format is [letter, color, picture] or [letter, color].
Letter is one of:
"Alpha"
"Bravo"
"Charlie"
"Delta"
"Echo"
"Foxtrot"
"Golf"
"Hotel"
"Kilo"
Colour can be one of "GroupColor0" to "GroupColor7"
Used In:
ArmA/OFP
Example:
group1 setGroupId ["Delta","GroupColor4"]
Sefe
Additional values for letter are:
"Yankee"
"Zulu"
"Buffalo"
"Convoy"
"Guardian"
"Two"
"Three"
Color can also be set to "Six"
LCD
You can also set the letter to "November"
macguba
Sol Fire has made a list of the GroupColours:
0 - No colour
1 - Black
2 - Red
3 - Green
4 - Blue
5 - Yellow
6 - Orange
7 - Pink
Note: That this does not name the group.
To call a group "grp1", for example, write this in the init field of the group leader:
grp1 = group this
« To Menu
--------------------------------------------------------------------------------
object setHideBehind [objectWhereHide, hidePosition]
Operand types:
side1: Object
[objectWhereHide, hidePosition]: Array
Type of returned value:
Nothing
Description:
Sets the data for hiding.
ObjectWhereHide can be taken using findCover.
HidePosition can be taken using getHideFrom.
Used In:
ArmA
--------------------------------------------------------------------------------
person setIdentity identity
Operand types:
person: Object
identity: String
Type of returned value:
Nothing
Description:
Set identity of person.
Identities are defined in descripion.ext of the mission or campaign.
Used In:
ArmA/OFP
Example:
soldier1 setIdentity "John_Doe"
sefe
The definition format in the description.ext file is:
class CfgIdentities
{
class John_Doe
{
name="John Bartholemew Doe";
face="Face20";
glasses="None";
speaker="Dan";
pitch=1.1;
};
};
« To Menu
--------------------------------------------------------------------------------
light setLightAmbient [r, g, b]
Operand types:
light: Object
[r, g, b]: Array
Type of returned value:
Nothing
Description:
Set ambient color of light.
Used In:
ArmA
--------------------------------------------------------------------------------
light setLightBrightness brightness
Operand types:
light: Object
brightness: Number
Type of returned value:
Nothing
Description:
Set brightness of light.
Used In:
ArmA
--------------------------------------------------------------------------------
light setLightColor [r, g, b]
Operand types:
light: Object
[r, g, b]: Array
Type of returned value:
Nothing
Description:
Set diffuse color of light.
Used In:
ArmA
--------------------------------------------------------------------------------
name setMarkerBrush brush
Operand types:
name: String
brush: String
Type of returned value:
Nothing
Description:
Selects the fill texture for the global marker ("RECTANGLE" or "ELLIPSE").
Brush is the name of the subclass in CfgMarkerBrushes.
Used In:
ArmA
Example:
"Marker1" setMarkerBrush "DiagGrid"
« To Menu
--------------------------------------------------------------------------------
name setMarkerBrushLocal brush
Operand types:
name: String
brush: String
Type of returned value:
Nothing
Description:
Selects the fill texture for the local marker ("RECTANGLE" or "ELLIPSE").
Brush is the name of the subclass in CfgMarkerBrushes.
Used In:
ArmA
Example:
"Marker1" setMarkerBrushLocal "DiagGrid"
--------------------------------------------------------------------------------
marker setMarkerColor color
Operand types:
marker: String
color: String
Type of returned value:
Nothing
Description:
Set global marker color.
Color is one of:
"Default"
"ColorBlack"
"ColorRed"
"ColorRedAlpha"
"ColorGreen"
"ColorGreenAlpha"
"ColorBlue"
"ColorYellow"
"ColorWhite"
Used In:
ArmA/OFP
Example:
"MarkerOne" setMarkerColor "ColorBlack"
--------------------------------------------------------------------------------
marker setMarkerColorLocal color
Operand types:
marker: String
color: String
Type of returned value:
Nothing
Description:
Set local marker color.
Color is one of:
"Default"
"ColorBlack"
"ColorRed"
"ColorRedAlpha"
"ColorGreen"
"ColorGreenAlpha"
"ColorBlue"
"ColorYellow"
"ColorWhite"
Used In:
ArmA
Example:
"MarkerOne" setMarkerColorLocal "ColorYellow"
« To Menu
--------------------------------------------------------------------------------
name setMarkerDir angle
Operand types:
name: String
angle: Number
Type of returned value:
Nothing
Description:
Sets the orientation of the global marker.
Angle is in degrees.
Used In:
ArmA
Example:
"Marker1" setMarkerDir 90
--------------------------------------------------------------------------------
name setMarkerDirLocal angle
Operand types:
name: String
angle: Number
Type of returned value:
Nothing
Description:
Sets the orientation of the local marker.
Angle is in degrees.
Used In:
ArmA
Example:
"Marker1" setMarkerDirLocal 180
--------------------------------------------------------------------------------
marker setMarkerPos pos
Operand types:
marker: String
pos: Array
Type of returned value:
Nothing
Description:
Moves the global marker.
Pos format is Position2D.
Used In:
ArmA/OFP
Example:
"MarkerOne" setMarkerPos getMarkerPos "MarkerTwo"
« To Menu
--------------------------------------------------------------------------------
marker setMarkerPosLocal pos
Operand types:
marker: String
pos: Array
Type of returned value:
Nothing
Description:
Moves the local marker.
Pos format is Position2D.
Used In:
ArmA
Example:
"MarkerTwo" setMarkerPosLocal getMarkerPos "MarkerThree"
--------------------------------------------------------------------------------
name setMarkerShape shape
Operand types:
name: String
angle: String
Type of returned value:
Nothing
Description:
Selects the shape (type) of the global marker.
Shape can be "ICON", "RECTANGLE" or "ELLIPSE".
Used In:
ArmA
Example:
"Marker1" setMarkerShape "RECTANGLE"
--------------------------------------------------------------------------------
name setMarkerShapeLocal shape
Operand types:
name: String
angle: String
Type of returned value:
Nothing
Description:
Selects the shape (type) of the local marker.
Shape can be "ICON", "RECTANGLE" or "ELLIPSE".
Used In:
ArmA
Example:
"Marker1" setMarkerShapeLocal "ELLIPSE"
« To Menu
--------------------------------------------------------------------------------
marker setMarkerSize size
Operand types:
marker: String
size: Array
Type of returned value:
Nothing
Description:
Set global marker size.
Size is in format [a-axis, b-axis].
Used In:
ArmA/OFP
Example:
"MarkerOne" setMarkerSize [100, 200]
--------------------------------------------------------------------------------
marker setMarkerSizeLocal size
Operand types:
marker: String
size: Array
Type of returned value:
Nothing
Description:
Set local marker size.
Size is in format [a-axis, b-axis].
Used In:
ArmA
Example:
"MarkerOne" setMarkerSizeLocal [120, 230]
--------------------------------------------------------------------------------
name setMarkerText text
Operand types:
name: String
angle: String
Type of returned value:
Nothing
Description:
Sets the text label of an existing global marker.
Used In:
ArmA
Example:
"Marker1" setMarkerText You are here globally.
--------------------------------------------------------------------------------
name setMarkerTextLocal text
Operand types:
name: String
angle: String
Type of returned value:
Nothing
Description:
Sets the text label of an existing local marker.
Used In:
ArmA
Example:
"Marker1" setMarkerTextLocal You are here locally.
« To Menu
--------------------------------------------------------------------------------
marker setMarkerType type
Operand types:
marker: String
type: String
Type of returned value:
Nothing
Description:
Set global marker type.
Type may be any of:
"Flag1"
"Dot"
"Destroy
"Start"
"End"
"Warning"
"Join"
"Pickup"
"Unknown"
"Marker"
"Arrow"
"Empty"
Used In:
ArmA/OFP
Example:
"MarkerOne" setMarkerType "Warning"
--------------------------------------------------------------------------------
marker setMarkerTypeLocal type
Operand types:
marker: String
type: String
Type of returned value:
Nothing
Description:
Set local marker type.
Type may be any of:
"Flag1"
"Dot"
"Destroy
"Start"
"End"
"Warning"
"Join"
"Pickup"
"Unknown"
"Marker"
"Arrow"
"Empty"
Used In:
ArmA
Example:
"MarkerOne" setMarkerTypeLocal "Join"
« To Menu
--------------------------------------------------------------------------------
person setMimic mimic
Operand types:
person: Object
mimic: String
Type of returned value:
Nothing
Description:
Set person's facial expression.
Following values are recognized:
"Normal"
"Smile"
"Hurt"
"Ironic"
"Sad"
"Cynic"
"Surprised"
"Agresive"
"Angry"
Used In:
ArmA/OFP
Example:
soldier1 setmimic "surprised"
--------------------------------------------------------------------------------
setMousePosition [x, y]
Operand types:
[x, y]: Array
Type of returned value:
Nothing
Description:
Move (UI) mouse pointer to specified position on the screen.
Used In:
ArmA
Example:
setMousePosition [0.5, 0.5]
--------------------------------------------------------------------------------
trigger or waypoint setMusicEffect track
Operand types:
trigger or waypoint: Object or Array
track: String
Type of returned value:
Nothing
Description:
Defines the music track played on activation.
Track is a subclass name of CfgMusic.
"$NONE$" (no change) or "$STOP$" (stops the current music track).
Used In:
ArmA
Example:
trigger setMusicEffect "Track1"
--------------------------------------------------------------------------------
object setObjectTexture texture
Operand types:
object: Object
texture: Array
Type of returned value:
Nothing
Description:
Textures object sections with texture named in array.
Array has the form [section,"Texture"].
Used In:
ArmA/OFP
Example:
_objectname setobjecttexture [0,"\pboname\texture.paa"]
_objectname setobjecttexture [1,"\pboname\texture2.paa"]
« To Menu
--------------------------------------------------------------------------------
time setOvercast overcast
Operand types:
time: Number
overcast: Number
Type of returned value:
Nothing
Description:
Set overcast to given value smoothly during given time (in seconds).
Zero time means immediate change.
Zero overcast means clear (sunny) weather, with overcast 1 storms and rain are very likely.
Used In:
ArmA/OFP
Example:
50 setovercast 0.5
macguba
Use setRain if you want to make sure it rains.
--------------------------------------------------------------------------------
particleSource setParticleCircle [radius, velocity]
Operand types:
particleSource: Object
[radius, velocity]: Array
Type of returned value:
Nothing
Description:
Update particle source to create particles on circle with given radius.
Velocity is transformed and added to total velocity.
Used In:
ArmA
--------------------------------------------------------------------------------
particleSource setParticleParams array
Operand types:
particleSource: Object
array: Array
Type of returned value:
Nothing
Description:
Set parameters to particle source.
Array is in format ParticleArray.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
particleSource setParticleRandom [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}]
Operand types:
particleSource: Object
[lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}]: Array
Type of returned value:
Nothing
Description:
Set randomization of particle source parameters.
Used In:
ArmA
--------------------------------------------------------------------------------
setPlayable unit
Operand types:
unit: Object
Type of returned value:
Nothing
Description:
Create MP role for the unit.
Used In:
ArmA
Example:
setPlayable aP
--------------------------------------------------------------------------------
obj setPos pos
Operand types:
obj: Object
pos: Array
Type of returned value:
Nothing
Description:
Set object position.
Pos array format is Position.
Used In:
ArmA/OFP
Examples:
player setPos [getPos player select 0, (getPos player select 1) + 10]
player setPos [getPos this select 0, getPos this select 1, (getPos this select 2) +10]
obj1 setpos [getPos obj1 select 0, getPos obj1 select 1, -5] .........Buries obj1 5 metres below bround level.
« To Menu
--------------------------------------------------------------------------------
obj setPosASL pos
Operand types:
obj: Object
pos: Array
Type of returned value:
Nothing
Description:
Sets the object position.
Pos array format is PositionASL.
Used In:
ArmA
Examples:
player setPosASL [getposASL player select 0, getposASL player select 1 + 10, getPosASL select 2]
--------------------------------------------------------------------------------
index setRadioMsg text
Operand types:
index: Number
text: String
Type of returned value:
Nothing
Description:
Set radio message (0, 0, map radio) to given text.
Use "NULL" to disable radio slot.
Used In:
ArmA/OFP
Example:
1 setRadioMsg "Alpha Radio"
LCD
Available channels are 1-8 in OFP:CWC, and added 9 and 10 in OFP:R
--------------------------------------------------------------------------------
time setRain rain
Operand types:
time: Number
rain: Number
Type of returned value:
Nothing
Description:
Set rain density smoothly during given time (in seconds).
Zero time means immediate change.
Rain zero is no rain, rain 1 is maximum rain.
Rain is not possible when overcast is smaller than 0.7.
Used In:
ArmA/OFP
Example:
60 setRain 1
« To Menu
--------------------------------------------------------------------------------
unit setRank rank
Operand types:
obj: Object
pos: String
Type of returned value:
Nothing
Description:
Sets rank of given unit.
Possible values are:
"PRIVATE"
"CORPORAL"
"SERGEANT"
"LIEUTENANT"
"CAPTAIN"
"MAJOR"
"COLONEL"
Used In:
ArmA
Examples:
player setRank "COLONEL"
--------------------------------------------------------------------------------
vehicle setRepairCargo amount
Operand types:
vehicle: Object
amount:Number
Type of returned value:
Nothing
Description:
Set amount of repair resources in cargo space of repair vehicle.
Amount 1 is full cargo.
Used In:
ArmA/OFP
Example:
repairTruck1 setRepairCargo 0
--------------------------------------------------------------------------------
vehicle setSkill skill
Operand types:
vehicle: Object
skill: Number
Type of returned value:
Nothing
Description:
Sets ability level of person (commander unit).
Value of skill may vary from 0 to 1.
Used In:
ArmA/OFP
Example:
hero setskill 1
« To Menu
--------------------------------------------------------------------------------
vehicle setSkill [type, skill]
Operand types:
vehicle: Object
[type, skill]: Array
Type of returned value:
Nothing
Description:
Sets skill of given type of person (commander unit).
Value of skill may vary from 0 to 1.
Used In:
ArmA
Example:
hero setskill ["Endurance", 1]
--------------------------------------------------------------------------------
trigger or waypoint setSoundEffect [sound, voice, soundEnv, soundDet]
Operand types:
trigger or waypoint: Object or Array
[sound, voice, soundEnv, soundDet]: Array
Type of returned value:
Nothing
Description:
Defines the different sound effects.
Sound / voice plays a 2D / 3D sound from CfgSounds.
SoundEnv plays an enviromental sound from CfgEnvSounds.
SoundDet (only for triggers) creates a dynamic sound object attached to a trigger defined in CfgSFX.
Used In:
ArmA
Example:
trigger setSoundEffect ["Alarm", "", "", ""]
--------------------------------------------------------------------------------
group setSpeedMode mode
Operand types:
group: Object or Group
mode: String
Type of returned value:
Nothing
Description:
Set group speed mode.
Mode may be one of:
"LIMITED" (half speed)
"NORMAL" (full speed, maintain formation)
"FULL" (do not wait for any other units in formation)
Used In:
ArmA/OFP
Example:
groupOne setSpeedMode "LIMITED"
« To Menu
--------------------------------------------------------------------------------
object setTargetAge age
Operand types:
trigger or waypoint: Object
age: String
Type of returned value:
Nothing
Description:
Sets how the target is known to the other centers.
They behave like the target was seen age seconds ago.
Possible age values are:
"ACTUAL"
"5 MIN"
"10 MIN"
"15 MIN"
"30 MIN"
"60 MIN"
"120 MIN"
"UNKNOWN"
Used In:
ArmA
Example:
player setTargetAge "10 MIN"
--------------------------------------------------------------------------------
setTerrainGrid grid
Operand types:
grid: Number
Type of returned value:
Nothing
Description:
Operation Flashpoint, VBS1: Set desired terrain resolution (in meters).
For default landscapes, supported resolutions are:
50 - Smoothest, less lag
25 - Default in Multiplayer
12.5 - Default in Singleplayer
6.25
3.125 - Bumpiest, higher lag
If you select unsupported resolution, nearest supported value is used instead.
Armed Assault, VBS2: Terrain resolution is fixed, determined by the world created.
This function controls terrain LOD instead (the distance in which the terrain mesh resolution starts to degrade).
Higher number means less vertices are used for terrain rendering, making distant hills less smooth.
Value 12.5 corresponds to selecting Terrain Detail Normal in Video options, 50 to Very Low, 3.125 to Very High.
Used In:
ArmA/OFP
Example:
setTerrainGrid 12.5
General Barron
Just to clarify what exactly this command does:
This is like opening up your video preferences and changing "terrain detail", i.e.
setTerrainGrid 25 = lowest detail
setTerrainGrid 3.125 = highest detail
It is similar to the command setViewDistance.
« To Menu
--------------------------------------------------------------------------------
trigger or waypoint setTitleEffect [type, effect, text]
Operand types:
grid: Object or Array
[type, effect, text]: Array
Type of returned value:
Nothing
Description:
Defines the title effect.
Type can be:
NONE
OBJECT
RES
TEXT
For "TEXT", the effect defines a subtype:
"PLAIN"
"PLAIN DOWN"
"BLACK"
"BLACK FADED"
"BLACK OUT"
"BLACK IN"
"WHITE OUT"
"WHITE IN"
Text is shown as text itself.
For "OBJECT", text defines the shown object, a subclass of CfgTitles.
For "RES", text defines a resource class, a subclass of RscTitles.
Used In:
ArmA
Example:
trigger setTitleEffect ["TEXT", "PLAIN DOWN", "Hello world."]
--------------------------------------------------------------------------------
trigger setTriggerActivation [by, type, repeating]
Operand types:
trigger: Object
[by, type, repeating]: Array
Type of returned value:
Nothing
Description:
Defines the trigger activation type.
The first argument - who activates trigger (side, radio, vehicle or group member), can be:
"NONE"
"EAST"
"WEST"
"GUER"
"CIV"
"LOGIC"
"ANY"
"ALPHA"
"BRAVO"
"CHARLIE"
"DELTA"
"ECHO"
"FOXTROT"
"GOLF"
"HOTEL"
"INDIA"
"JULIET"
"STATIC"
"VEHICLE"
"GROUP"
"LEADER"
"MEMBER"
The second argument - when is it activated (presention or detection by the specified side):
"PRESENT"
"NOT PRESENT"
"WEST D"
"EAST D"
"GUER D"
"CIV D"
The third argument - whether the activation is repeating.
Used In:
ArmA
Example:
trigger setTriggerActivation ["WEST", "EAST D", true]
« To Menu
--------------------------------------------------------------------------------
trigger setTriggerArea [a, b, angle, rectangle]
Operand types:
trigger: Object
[a, b, angle, rectangle]: Array
Type of returned value:
Nothing
Description:
Defines the area controlled by the trigger.
The area is rectangular or elliptical, the width is 2 * a, the height is 2 * b.
It is rotated angle degrees.
Used In:
ArmA
Example:
trigger setTriggerArea [100, 50, 45, false]
--------------------------------------------------------------------------------
trigger setTriggerStatements [cond, activ, desactiv]
Operand types:
trigger: Object
[cond, activ, desactiv]: Array
Type of returned value:
Nothing
Description:
The first argument can modify the condition of when the trigger is activated.
The result of the activation defined by trigger activation is in variable this.
Variable thisList contains all vehicles which caused the activation.
Activ and desactiv expressions are launched upon trigger activation / deactivation.
Used In:
ArmA
Example:
trigger setTriggerStatements ["this", "ok = true", "ok = false"]
--------------------------------------------------------------------------------
trigger setTriggerText text
Operand types:
trigger: Object
text: String
Type of returned value:
Nothing
Description:
Sets the text label attached to the trigger object.
This is used for example as a radio slot label for radio activated triggers.
Used In:
ArmA
Example:
trigger setTriggerText "Call for support"
« To Menu
--------------------------------------------------------------------------------
trigger setTriggerTimeout [min, mid, max, interruptable]
Operand types:
trigger: Object
[min, mid, max, interruptable]: Array
Type of returned value:
Nothing
Description:
Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid).
If the last argument is true, the condition must be fullfilled all the time.
Used In:
ArmA
Example:
trigger setTriggerTimeout [5, 10, 7, false]
--------------------------------------------------------------------------------
trigger setTriggerType action
Operand types:
trigger or waypoint: Object
action: String
Type of returned value:
Nothing
Description:
Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):
"NONE"
"SWITCH"
"END1"
"END2"
"END3"
"END4"
"END5"
"END6"
"LOOSE"
"WIN"
Used In:
ArmA
Example:
trigger setTriggerType "END1"
« To Menu
--------------------------------------------------------------------------------
unit setUnitAbility skill
Operand types:
unit: Object
skill: Number
Type of returned value:
Nothing
Description:
Sets skill of given unit.
Skill may vary from 0.2 to 1.0.
Used In:
ArmA
Example:
player setUnitSkill 1.0
--------------------------------------------------------------------------------
unit setUnitPos mode
Operand types:
unit: Object
mode: String
Type of returned value:
Nothing
Description:
Set unit position rules.
Mode may be one of:
"DOWN" - Unit goes prone and stays prone.
"UP" - Unit stands and stays standing.
"MIDDLE" - Unit goes into crouch Position.
"AUTO"- Unit chooses mode according to circumstances.
Used In:
ArmA/OFP
Example:
loon1 setUnitPos "UP"
--------------------------------------------------------------------------------
unit setUnitPosWeak mode
Operand types:
unit: Object
mode: String
Type of returned value:
Nothing
Description:
Set unit position rules.
Mode may be one of:
"DOWN" - Unit goes prone and stays prone.
"UP" - Unit stands and stays standing.
"MIDDLE" - Unit goes into crouch Position.
"AUTO"- Unit chooses mode according to circumstances.
This command is the lowest level of priority for setting unit position and to be used in scripted FSM's.
This command will have no affect in regular scripts.
The current priorities are:
1. Unit pos command from the in-game command menu, highest priority.
2. Unit pos scripted with setUnitPos scripting command, medium priority.
3. Unit pos using setUnitPosWeak, used in a formation FSM, lowest priority.
Used In:
ArmA
--------------------------------------------------------------------------------
unit setUnitRank rank
Operand types:
unit: Object
rank: String
Type of returned value:
Nothing
Description:
Sets rank of given unit. Possible values are:
Mode may be one of:
"PRIVATE"
"CORPORAL"
"SERGEANT"
"LIEUTENANT"
"CAPTAIN"
"MAJOR"
"COLONEL"
Used In:
ArmA
Example:
player setUnitRank "COLONEL"
« To Menu
--------------------------------------------------------------------------------
object setVariable [name, value]
Operand types:
object: Object
[name, value]: Array
Type of returned value:
Nothing
Description:
Set variable to given value in the variable space of given object.
If object is not a vehicle (Car, Tank etc) then this will not work.
Used In:
ArmA
Example:
vehiclename setVariable ["variablename", 177]
--------------------------------------------------------------------------------
object setVectorDir [x, z, y]
Operand types:
object: Object
[x, z, y]: Array
Type of returned value:
Nothing
Description:
Set object's direction vector.
Up vector will remain unchanged.
Used In:
ArmA
--------------------------------------------------------------------------------
object setVectorUp [x, z, y]
Operand types:
object: Object
[x, z, y]: Array
Type of returned value:
Nothing
Description:
Set object's up vector.
Direction vector will remain unchanged.
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
object setVehicleAmmo value
Operand types:
object: Object
value: Number
Type of returned value:
Nothing
Description:
Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has.
The value ranges from 0 to 1.
Used In:
ArmA
Example:
player setVehicleAmmo 0
--------------------------------------------------------------------------------
object setVehicleArmor value
Operand types:
object: Object
value: Number
Type of returned value:
Nothing
Description:
Sets the armor (or health for men) state of the vehicle (a value from 0 to 1).
Used In:
ArmA
Example:
player setVehicleArmor 0.5
--------------------------------------------------------------------------------
object setVehicleId id
Operand types:
object: Object
id: Number
Type of returned value:
Nothing
Description:
Sets id (integer value) to vehicle.
By this id vehicle is referenced by triggers and waypoints.
Used In:
ArmA
Example:
player setVehicleId 1
« To Menu
--------------------------------------------------------------------------------
vehicle setVehicleInit statement
Operand types:
vehicle: Object
statement: String
Type of returned value:
Nothing
Description:
Execute statement attached to vehicle.
This statement is also propagated over network in MP games.
Used In:
ArmA
Example:
soldier3 setVehicleInit "this allowfleeing 0"
--------------------------------------------------------------------------------
vehicle setVehicleLock state
Operand types:
vehicle: Object
state: String
Type of returned value:
Nothing
Description:
Set how vehicle is locked for player.
Possible values:
"UNLOCKED"
"DEFAULT"
"LOCKED"
Used In:
ArmA
Example:
veh1 setVehicleLock "LOCKED"
--------------------------------------------------------------------------------
object setVehiclePosition [position, markers, placement]
Operand types:
object: Object
[position, markers, placement]: Array
Type of returned value:
Nothing
Description:
Changes the object position.
If the markers array contains more than one marker name, the position of a random one is used.
Otherwise, the given position is used.
The object is placed inside a circle with this position as its center and placement as its radius.
Used In:
ArmA
Example:
player setVehiclePosition [[0, 0, 0], ["Marker1"], 0]
« To Menu
--------------------------------------------------------------------------------
object setVehicleVarName name
Operand types:
object: Object
name: String
Type of returned value:
Nothing
Description:
Sets the name of the variable which contains a reference to this object.
It is necessary in MP to change the variable content after a respawn.
Used In:
ArmA
Example:
player setVehicleVarName "aP"
--------------------------------------------------------------------------------
vehicle setVelocity [x, z, y]
Operand types:
vehicle: Object
[x, z, y]: Array
Type of returned value:
Nothing
Description:
Set velocity (speed vector) of vehicle.
Note: This command will not work for man-type units (soldiers, officers, etc) if they are touching the ground.
Used In:
ArmA/OFP
Example:
truck1 setvelocity [20, 0, 0]
--------------------------------------------------------------------------------
setViewDistance distance
Operand types:
distance: Number
Type of returned value:
Nothing
Description:
Set rendering distance, in metres.
Default is 900m, accepted range is 500m to 5000m.
Used In:
ArmA/OFP
Example:
setViewDistance 2250
« To Menu
--------------------------------------------------------------------------------
waypoint setWaypointBehaviour mode
Operand types:
object: Array
mode: String
Type of returned value:
Nothing
Description:
Switches the unit behaviour when the waypoint becomes active.
Possible values are:
"UNCHANGED"
"CARELESS"
"SAFE"
"COMBAT"
"STEALTH"
Used In:
ArmA
Example:
[grp, 2] setWaypointBehaviour "AWARE"
--------------------------------------------------------------------------------
waypoint setWaypointCombatMode mode
Operand types:
waypoint: Array
mode: String
Type of returned value:
Nothing
Description:
The group combat mode is switched when the waypoint becomes active.
Possible values are:
"NO CHANGE"
"BLUE"
"GREEN"
"WHITE"
"YELLOW"
"RED"
Used In:
ArmA
Example:
[grp, 2] setWaypointCombatMode "RED"
« To Menu
--------------------------------------------------------------------------------
waypoint setWaypointDescription text
Operand types:
waypoint: Array
text: String
Type of returned value:
Nothing
Description:
Sets the description shown in the HUD while the waypoint is active.
Used In:
ArmA
Example:
[grp, 2] setWaypointDescription "Move here."
--------------------------------------------------------------------------------
waypoint setWaypointFormation formation
Operand types:
waypoint: Array
formation: String
Type of returned value:
Nothing
Description:
Switches the group formation when the waypoint becomes active.
Possible values are:
"NO CHANGE"
"COLUMN"
"STAG COLUMN"
"WEDGE"
"ECH LEFT"
"ECH RIGHT"
"VEE"
"LINE"
Used In:
ArmA
Example:
[grp, 2] setWaypointFormation "LINE"
--------------------------------------------------------------------------------
waypoint setWaypointHousePosition pos
Operand types:
waypoint: Array
pos: Number
Type of returned value:
Nothing
Description:
For waypoints attached to a house, this defines the target house position.
Used In:
ArmA
Example:
[grp, 2] setWaypointHousePosition 1
« To Menu
--------------------------------------------------------------------------------
waypoint setWaypointPosition [center, radius]
Operand types:
waypoint: Array
[center, radius]: Array
Type of returned value:
Nothing
Description:
Moves the waypoint to a random position in a circle with the given center and radius.
Used In:
ArmA
Example:
[grp, 2] setWaypointPosition [position player, 0]
--------------------------------------------------------------------------------
waypoint setWaypointScript command
Operand types:
waypoint: Array
command: String
Type of returned value:
Nothing
Description:
Attaches a script to a scripted waypoint.
Command consist of a script name and additional script arguments.
Used In:
ArmA
Example:
[grp, 2] setWaypointScript "find.sqs player"
--------------------------------------------------------------------------------
waypoint setWaypointSpeed mode
Operand types:
waypoint: Array
mode: String
Type of returned value:
Nothing
Description:
Switches the group speed mode when the waypoint becomes active.
Possible values are:
"UNCHANGED"
"LIMITED"
"NORMAL"
"FULL"
Used In:
ArmA
Example:
[grp, 2] setWaypointSpeed "FULL"
« To Menu
--------------------------------------------------------------------------------
waypoint setWaypointStatements [condition, statement]
Operand types:
waypoint: Array
[condition, statement]: Array
Type of returned value:
Nothing
Description:
The waypoint is done only when the condition is fulfilled.
When the waypoint is done, the statement expression is executed.
Used In:
ArmA
Example:
[grp, 2] setWaypointStatements ["true", ""]
--------------------------------------------------------------------------------
waypoint setWaypointTimeout [min, mid, max]
Operand types:
waypoint: Array
[min, mid, max]: Array
Type of returned value:
Nothing
Description:
Defines the time between condition satisfaction and waypoint finish (randomly from min to max, with an average value mid).
Used In:
ArmA
Example:
[grp, 2] setWaypointTimeout [5, 10, 6]
--------------------------------------------------------------------------------
waypoint setWaypointType type
Operand types:
waypoint: Array
type: String
Type of returned value:
Nothing
Description:
Changes the waypoint type.
Type can be:
"MOVE"
"DESTROY"
"GETIN"
"SAD"
"JOIN"
"LEADER"
"GETOUT"
"CYCLE"
"LOAD"
"UNLOAD"
"TR UNLOAD"
"HOLD"
"SENTRY"
"GUARD"
"TALK"
"SCRIPTED"
"SUPPORT"
"GETIN NEAREST"
"AND"
"OR"
Used In:
ArmA
Example:
[grp, 2] setWaypointType "HOLD"
« To Menu
--------------------------------------------------------------------------------
waypoint setWPPos position
Operand types:
waypoint: Array
position: Array
Type of returned value:
Nothing
Description:
Set waypoint position.
Waypoint is in format Waypoint.
Position is in format Position2D.
Used In:
ArmA/OFP
Example:
[groupOne, 1] setWPPos getMarkerPos "MarkerOne"
--------------------------------------------------------------------------------
showCinemaBorder show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Force drawing of cinema borders.
This is normally used in cutscenes to indicate player has no control.
Used In:
ArmA/OFP
Example:
showCinemaBorder true
--------------------------------------------------------------------------------
showCompass show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable compass (default true)
Used In:
ArmA/OFP
Example:
showCompass false
« To Menu
--------------------------------------------------------------------------------
showGps show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable GPS receiver (default false)
Used In:
ArmA/OFP
Example:
showGps true
--------------------------------------------------------------------------------
showMap show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable Map (default true)
Used In:
ArmA/OFP
Example:
showMap false
--------------------------------------------------------------------------------
shownCompass
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has compass enabled.
Used In:
ArmA/OFP
Example:
? showncompass : hint "You have a compass."
--------------------------------------------------------------------------------
shownGps
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has Gps reciever enabled.
Used In:
ArmA/OFP
Example:
? shownGps : hint "You have a Gps reciever."
« To Menu
--------------------------------------------------------------------------------
shownMap
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has Map enabled.
Used In:
ArmA/OFP
Example:
? shownMap : hint "You have a Map."
--------------------------------------------------------------------------------
shownPad
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has Notebook enabled.
Used In:
ArmA/OFP
Example:
? shownPad : hint "You have a Notebook."
--------------------------------------------------------------------------------
shownRadio
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has Radio enabled.
Used In:
ArmA/OFP
Example:
? shownRadio : hint "You have a Radio."
« To Menu
--------------------------------------------------------------------------------
shownWarrant
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has ID card enabled.
Obsolete command.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
shownWatch
Operand types:
None.
Type of returned value:
Boolean
Description:
Check if player has Watch enabled.
Used In:
ArmA/OFP
Example:
? shownWatch : hint "You have a Watch."
--------------------------------------------------------------------------------
showPad show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable Notebook (default true)
Used In:
ArmA/OFP
Example:
showPad false
« To Menu
--------------------------------------------------------------------------------
showRadio show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable Radio (default true)
Used In:
ArmA/OFP
Example:
showRadio false
--------------------------------------------------------------------------------
showWarrant show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable ID card (default false).
Obsolete command.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
showWatch show
Operand types:
show: Boolean
Type of returned value:
Nothing
Description:
Enable Watch (default true)
Used In:
ArmA/OFP
Example:
showWatch false
« To Menu
--------------------------------------------------------------------------------
waypoint showWaypoint show
Operand types:
waypoint: Array
show: String
Type of returned value:
Nothing
Description:
Sets the condition determining when the waypoint is shown.
Possible values are:
"NEVER"
"EASY"
"ALWAYS"
Used In:
ArmA
Example:
[grp, 2] showWaypoint "ALWAYS"
--------------------------------------------------------------------------------
side unit
Operand types:
unit: Object or Group
Type of returned value:
Side
Description:
Side of unit.
Note: This does not change the side of the unit.

Used In:
ArmA/OFP
Example:
? (side player == west) : hint "You are on the West side."
--------------------------------------------------------------------------------
sideChat chatText
Operand types:
chatText: String
Type of returned value:
Nothing
Description:
Type text to side radio channel.
Note: This function only types text to the list, it does not broadcast the message.
If you want the message to show on all computers, you have to execute it on them.
Used In:
ArmA/OFP
Example:
soldierOne sideChat "Show this text"
« To Menu
--------------------------------------------------------------------------------
sideEnemy
Operand types:
None
Type of returned value:
Side
Description:
The Enemy side (used for renegades).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
sideFriendly
Operand types:
None
Type of returned value:
Side
Description:
The Friendly side (used for captives).
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
sideLogic
Operand types:
None
Type of returned value:
Side
Description:
The Logic side.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
sideRadio chatText
Operand types:
radioName: String
Type of returned value:
Nothing
Description:
Send message to side radio channel.
Message is defined in description.ext file.
Used In:
ArmA/OFP
Example:
soldierOne sideRadio "messageOne"
« To Menu
--------------------------------------------------------------------------------
sin x
Operand types:
x: Number
Type of returned value:
Number
Description:
Sine of x, argument in degrees.
Used In:
ArmA/OFP
Example:
sine = sin 30 ..........Result is 0.5
--------------------------------------------------------------------------------
sizeOf typeName
Operand types:
typeName: String
Type of returned value:
Number
Description:
Returns the approximate size of the entity of given type (x-axis, in meters).
Object has to be present in the current mission to be able to read a size (otherwise zero will be returned).
Used In:
ArmA
Example:
sizeOf "T72"
--------------------------------------------------------------------------------
skill person
Operand types:
person: Object
Type of returned value:
Number
Description:
Returns current level of ability of person, in range between 0 and 1.
Skill 1 is highest skill.
Used In:
ArmA/OFP
Example:
_sk = skill loon1
Bremmer
Skill of AI units set via the slider in unit placement screen varies from 0.2 to 1.0.
If superAI is enabled all units have skill of 1.0 regardless of the skill slider.
--------------------------------------------------------------------------------
vehicle skill type
Operand types:
vehicle: Object
type: String
Type of returned value:
Number
Description:
Returns skill of given type of person (commander unit).
Value of skill may vary from 0 to 1.
Used In:
ArmA
Example:
hero skill "Endurance"
« To Menu
--------------------------------------------------------------------------------
skipTime duration
Operand types:
duration: Number
Type of returned value:
Nothing
Description:
Skip time.
Daytime is adjusted, weather change is estimated, no changes in any units are made.
The tide is also adjusted.
Duration is in hours.
Used In:
ArmA/OFP
Example:
skipTime 5
Roni
Very useful function - great for giving a "campaign" feel to a running battle.
Try this in your init.sqs file -
#loop
skiptime 0.00333
~0.1
goto "loop"
This will make each day pass in around 12 minutes - great fun watching sunsets and the night sky!
macguba
Not to be confused with accTime.
--------------------------------------------------------------------------------
sleep delay
Operand types:
delay: Number
Type of returned value:
Nothing
Description:
Suspend execution of script for given time.
Used In:
ArmA
Example:
sleep 0.5
« To Menu
--------------------------------------------------------------------------------
sliderPosition idc
Operand types:
idc: Number
Type of returned value:
Number
Description:
Return current thumb position of slider idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_slidepos1 = sliderPosition 105
--------------------------------------------------------------------------------
sliderPosition control
Operand types:
control: Control
Type of returned value:
Number
Description:
Returns the current thumb position of the given slider.
Used In:
ArmA
Example:
_pos = sliderPosition _control
--------------------------------------------------------------------------------
sliderRange idc
Operand types:
idc: Number
Type of returned value:
Array
Description:
Return limits, as an array [min, max] of slider idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_slidelimits1 = sliderRange 105
« To Menu
--------------------------------------------------------------------------------
sliderRange control
Operand types:
control: Control
Type of returned value:
Array
Description:
Returns the limits (as an array [min, max]) of the given slider.
Used In:
ArmA
Example:
_limits = sliderRange _control
--------------------------------------------------------------------------------
sliderSetPosition [idc,pos]
Operand types:
[idc, pos]: Array
Type of returned value:
Nothing
Description:
Set current thumb position of slider idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
sliderSetPosition [101, 50]
--------------------------------------------------------------------------------
control sliderSetPosition pos
Operand types:
control: Control
pos: Number
Type of returned value:
Nothing
Description:
Sets the current thumb position of the given slider.
Used In:
ArmA
Example:
_control sliderSetPosition 0
« To Menu
--------------------------------------------------------------------------------
sliderSetRange [idc,min,max]
Operand types:
[idc, min, max]: Array
Type of returned value:
Nothing
Description:
Set limits of slider idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
sliderSetRange [101, 0, 100]
--------------------------------------------------------------------------------
control sliderSetRange [min,max]
Operand types:
control: Control
[min, max]: Array
Type of returned value:
Nothing
Description:
Sets the limits of the slider with id idc of the given slider.
Used In:
ArmA
Example:
_control sliderSetRange [0, 10]
--------------------------------------------------------------------------------
sliderSetspeed [idc,line,page]
Operand types:
[idc, line, page]: Array
Type of returned value:
Nothing
Description:
Set speed of slider with id idc of topmost user dialog.
Click to arrow = move by line
Click to scale outside thumb = move by page.
Used In:
ArmA/OFP
Example:
sliderSetspeed [101, 0.5, 2]
« To Menu
--------------------------------------------------------------------------------
control sliderSetspeed [line,page]
Operand types:
control: Control
[line, page]: Array
Type of returned value:
Nothing
Description:
Sets the speed (a click on the arrow results in a move per line.
A click on the scale outside the thumb results in a move per page) of the given slider.
Used In:
ArmA
Example:
_control sliderSetspeed [0.5, 2.0]
--------------------------------------------------------------------------------
sliderspeed idc
Operand types:
idc: Number
Type of returned value:
Array
Description:
Return speed, as an array [min, max] of slider idc of topmost user dialog.
Used In:
ArmA/OFP
Example:
_slidespeed1 = sliderspeed 105
--------------------------------------------------------------------------------
sliderspeed control
Operand types:
control: Control
Type of returned value:
Array
Description:
Returns the speed (as an array [line, page]) of the given slider.
Used In:
Arma
Example:
_speed = sliderspeed _control
« To Menu
--------------------------------------------------------------------------------
someAmmo unit
Operand types:
unit: Object
Type of returned value:
Boolean
Description:
Check if unit has some ammo.
Used In:
ArmA/OFP
Example:
? not (someAmmo loon1) : hint "Loon1 is out of ammo!"
--------------------------------------------------------------------------------
soundVolume
Operand types:
None.
Type of returned value:
Number
Description:
Check current sound volume (set by fadeSound).
Used In:
ArmA/OFP
Example:
_vol = soundVolume
--------------------------------------------------------------------------------
spawn code
Operand types:
code: Code
Type of returned value:
Script
Description:
Starts running a new script.
The new script is running in parallel, spawn does not wait for it to be done.
To check if it finished use scriptDone
Used In:
ArmA
--------------------------------------------------------------------------------
arguments spawn script
Operand types:
arguments: Any Value
script: Code
Type of returned value:
Script
Description:
Starts running a new script.
Additional arguments are passed in local _this variable.
The new script is running in parallel, spawn does not wait for it to be done.
To check if it finished use scriptDone
Used In:
ArmA
--------------------------------------------------------------------------------
speed obj
Operand types:
obj: Object
Type of returned value:
Number
Description:
Object speed (in km/h).
Used In:
ArmA/OFP
Example:
? (speed truck1) >= 100 : hint "You're going too fast!"
« To Menu
--------------------------------------------------------------------------------
speedMode grp
Operand types:
grp: Object or Group
Type of returned value:
String
Description:
Returns speed mode of the group, which can be any of the following:
"LIMITED"
"NORMAL"
"FULL"
Used In:
ArmA/OFP
Example:
_grpspeed1 = speedMode grp1
--------------------------------------------------------------------------------
sqrt x
Operand types:
x: Number
Type of returned value:
Number
Description:
Returns square root of x.
Used In:
ArmA/OFP
Example:
_sq = sqrt 9 ..........Result is 3
--------------------------------------------------------------------------------
for /.../ step step
Operand types:
for /.../: For Type
step: Number
Type of returned value:
Script
Description:
Optionally can set step.
If you want to count down, step must be specified, and set negative.
Default value is 1.
Used In:
ArmA
Example:
for "_x" from 20 to 10 step -2 do {..code..}
« To Menu
--------------------------------------------------------------------------------
unit stop stop
Operand types:
unit: Object
stop: Boolean
Type of returned value:
Nothing
Description:
Stop AI unit.
This function is obsolete.
Use disableAI to get better control on stopping unit.
Used In:
ArmA/OFP
Example:
loon1 stop true
--------------------------------------------------------------------------------
stopped unit
Operand types:
unit: Object
Type of returned value:
Boolean
Description:
Check if unit is stopped by "stop" command.
Used In:
ArmA/OFP
Example:
? (stopped loon1) : hint "Loon1 is stopped"
--------------------------------------------------------------------------------
str any value
Operand types:
any value: Anything
Type of returned value:
String
Description:
Converts any variable to a string.
Used In:
Arma
Example:
str (2+3)......result is "5"
« To Menu
--------------------------------------------------------------------------------
supportInfo mask
Operand types:
mask: String
Type of returned value:
Array
Description:
Creates a list of supported operators and types.
Each field of the array has the format: "x:name" where x is:
't' - type
'n' - null operator
'u' - unary operator
'b' - binary operator
"STEALTH"
'name' is operator/type name (in the case of operator, type of input operands is included).
`mask` parameter can be an empty string, or one of field.
In this case, function returns an empty array, if operator is not included in the list.
`mask` can contain wildcards, for example: *:name, t:*, t:name* or *:*
Used In:
Arma
Example:
supportInfo "b:select*"......result is ["b:ARRAY select SCALAR","b:ARRAY select BOOL"]
--------------------------------------------------------------------------------
surfaceIsWater [x, y]
Operand types:
[x, y]: Array
Type of returned value:
Boolean
Description:
Returns whether water is at given position.
Used In:
Arma
--------------------------------------------------------------------------------
surfaceType [x, y]
Operand types:
[x, y]: Array
Type of returned value:
String
Description:
Returns what surface type is at given position.
Used In:
Arma
« To Menu
--------------------------------------------------------------------------------
switch exp
Operand types:
exp: Anything
Type of returned value:
Switch Type
Description:
Begins switch form.
Used In:
Arma
Example:
switch (_a) do { case 1: {block}; case 2 : {block}; default {block};}
--------------------------------------------------------------------------------
switchableUnits
Operand types:
None
Type of returned value:
Array
Description:
Return a list of units accessible through team switch.
Used In:
Arma
--------------------------------------------------------------------------------
unit switchCamera mode
Operand types:
unit: Object
mode: String
Type of returned value:
Nothing
Description:
Switch camera to given vehicle / camera.
Mode is one of:
"INTERNAL" (1st person)
"GUNNER" (optics / sights)
"EXTERNAL"(3rd person)
"GROUP" (group)
Used In:
ArmA/OFP
Example:
loon1 switchCamera "External"
General Barron
If you switchCamera to a group leader, you can control his group as if it were your own.
« To Menu
--------------------------------------------------------------------------------
lamp switchLight mode
Operand types:
lamp: Object
mode: String
Type of returned value:
Nothing
Description:
Controls lampost mode.
Mode may be:
"ON"
"OFF"
"AUTO" ( Lampost is on only during nighttime)
"AUTO" is default.
Used In:
ArmA/OFP
Examples:
(object 12345) switchLight "off"
nearestObject [player, "Streetlamp"] switchLight "OFF"
macguba
Use lightIsOn to check the status of a lamppost.
--------------------------------------------------------------------------------
person switchMove movename
Operand types:
person: Object
movename: String
Type of returned value:
Nothing
Description:
When used on a person, given move is started immediatelly (no transition).
Use switchMove "" to switch back to default movement if there is no transition back, otherwise person may become stuck.
Used In:
ArmA/OFP
Example:
loon1 switchMove "FXStandDip"
macguba
For a smooth transition use playMove.
Animation list here.
« To Menu
--------------------------------------------------------------------------------
waypoint synchronizeWaypoint [waypoint1, waypoint2, ...]
Operand types:
waypoint: Array
[waypoint1, waypoint2, ...]: Array
Type of returned value:
Nothing
Description:
Synchronizes the waypoint with other waypoints.
Each waypoint is given as an array [group, index].
Used In:
ArmA
Example:
[group1, 2] synchronizeWaypoint [[group2, 3]]
--------------------------------------------------------------------------------
trigger synchronizeWaypoint [waypoint1, waypoint2, ...]
Operand types:
trigger: Object
[waypoint1, waypoint2, ...]: Array
Type of returned value:
Nothing
Description:
Synchronizes the trigger with waypoints.
Each waypoint is given as an array [group, index].
Used In:
ArmA
Example:
trigger synchronizeWaypoint []
--------------------------------------------------------------------------------
« To Menu
T-Z
T
Index
tan
teamSwitch
teamSwitchEnabled
terminate
text
textLog
tg
then
then
throw
time
titleCut
titleFadeOut
titleObj
titleRsc
titleText
to
triggerAttachObject
triggerAttachVehicle
true
try
typeName
typeOf
tan x
Operand types:
x: Number
Type of returned value:
Number
Description:
Tangent of x, argument in degrees.
Used In:
ArmA/OFP
Example:
_tangent = tan 45.......Result is 1
--------------------------------------------------------------------------------
teamSwitch
Operand types:
None
Type of returned value:
Nothing
Description:
Invoke the team switch dialog (force it even when conditions are not met).
Used In:
ArmA
--------------------------------------------------------------------------------
teamSwitchEnabled
Operand types:
None
Type of returned value:
Boolean
Description:
Check if team switch is currently enabled.
Used In:
ArmA
--------------------------------------------------------------------------------
terminatescript
Operand types:
script:Script
Type of returned value:
Nothing
Description:
Terminate (abort) the script.
Used In:
ArmA
--------------------------------------------------------------------------------
text text
Operand types:
text:String
Type of returned value:
Structured Text
Description:
Creates a structured text containing the given plain text.
Used In:
ArmA
Example:
txt2 = text "Hello world."
« To Menu
--------------------------------------------------------------------------------
textLog anything
Operand types:
anything: Any Value
Type of returned value:
Nothing
Description:
Dump argument value to debugging output.
This command has never worked in retail version.
Used In:
ArmA/OFP
Example:
textLog player
--------------------------------------------------------------------------------
tg x
Operand types:
x: Number
Type of returned value:
Number
Description:
Tangent of x, argument in degrees.
Used In:
ArmA/OFP
Example:
_tangent = tg 45  .......Result is 1
--------------------------------------------------------------------------------
if then else
Operand types:
if: If Type
else: Array
Type of returned value:
Anything
Description:
First or second element of array is executed depending on result of if condition.
Result of the expression executed is returned as a result (result may be Nothing).
Used In:
ArmA/OFP
Examples:
if (a>b) then {c=1} else {c=2}
if (a>b) then [{c=1},{c=2}]
« To Menu
--------------------------------------------------------------------------------
if then codeToExecute
Operand types:
if:If Type
codeToExecute: String
Type of returned value:
Anything
Description:
Code is executed when if condition is met.
If code is executed, last value calculated in the code is returned.
If code is not executed, Nothing is returned.
Used In:
ArmA/OFP
Example:
if (a>b) then {c=1}
--------------------------------------------------------------------------------
throw expression
Operand types:
expression:Anything
Type of returned value:
Nothing
Description:
Throws an exception.
The exception is processed by first catch block.
See try.
Used In:
ArmA
Example:
throw "invalid argument"
--------------------------------------------------------------------------------
time
Operand types:
None
Type of returned value:
Number
Description:
Time elapsed since mission started (in seconds).
Used In:
ArmA/OFP
macguba
Not to be confused with _time.
Within a script, the reserved local variable _time returns the time elapsed since the script started running.
« To Menu
--------------------------------------------------------------------------------
titleCut effect
Operand types:
effect:Array
Type of returned value:
Nothing
Description:
Obsolete command.
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
titleFadeOut delay
Operand types:
delay:Number
Type of returned value:
Nothing
Description:
Terminates the title effect and sets the duration of the fade out phase to the given delay time.
Used In:
ArmA
Example:
titleFadeOut 5
--------------------------------------------------------------------------------
titleObj effect
Operand types:
effect:Array
Type of returned value:
Nothing
Description:
Object title - argument in format ["text", "type", speed] or ["name", "type"].
If speed is not given, it is assumed 1.
Object can be defined in description.ext.
Used In:
ArmA/OFP
Example:
titleObj ["BISLogo", "PLAIN"]
--------------------------------------------------------------------------------
titleRsc effect
Operand types:
effect:Array
Type of returned value:
Nothing
Description:
Resource title - argument in format ["name", "type", speed] or ["name", "type"].
If speed is not given, it is assumed 1.
Resource can be defined in description.ext.
Used In:
ArmA/OFP
Example:
titleRsc ["BIS", "PLAIN"]
--------------------------------------------------------------------------------
titleText effect
Operand types:
effect:Array
Type of returned value:
Nothing
Description:
Text title - argument in format ["text","type", speed] or ["text", "type"].
If speed is not given, it is assumed 1.
Used In:
ArmA/OFP
Example:
titleText ["Show this text", "PLAIN"]
« To Menu
--------------------------------------------------------------------------------
for "_var" from a to b
Operand types:
for "_var" from a:For Type
b:Number
Type of returned value:
For Type
Description:
Continue sequence of 'for' command.
Used In:
ArmA
Example:
for "_x" from 10 to 20 do {..code..}
--------------------------------------------------------------------------------
trigger triggerAttachObject objectId
Operand types:
trigger:Object
objectId:Number
Type of returned value:
Nothing
Description:
Assigns a static object to the trigger.
The activation source is changed to "STATIC".
Used In:
ArmA
Example:
trigger triggerAttachObject 1234
--------------------------------------------------------------------------------
trigger triggerAttachVehicle [] or [vehicle]
Operand types:
trigger:Object
[] or [vehicle]:Array
Type of returned value:
Nothing
Description:
If [] is given, the trigger is detached from the assigned vehicle.
If the activation source is one of:
"VEHICLE"
"GROUP"
"LEADER"
"LEADER"
The activation source is changed to "NONE".
If [vehicle] is given, the trigger is attached to the vehicle or its group.
When the source is:
"GROUP"
"LEADER"
"MEMBER"
It's attached to the group, otherwise it's attached to the vehicle and the source is changed to "VEHICLE".
Used In:
ArmA
Example:
trigger triggerAttachVehicle [player]
« To Menu
--------------------------------------------------------------------------------
true
Operand types:
None
Type of returned value:
Boolean
Description:
Always true
Used In:
ArmA/OFP
--------------------------------------------------------------------------------
try code
Operand types:
code:Code
Type of returned value:
Exception Type
Description:
Defines try-catch structure.
This is structured exception block.
Any thrown exception in try block is caught in catch block.
The structured exception block has following form:
try //begin of try-catch
block { //block, that can throw exception }
catch { //block, that process an exception };
Exception is described in _exception variable.
Used In:
ArmA
--------------------------------------------------------------------------------
typeName any
Operand types:
any:Anything
Type of returned value:
String
Description:
Returns the data type name of an expression.
Type is returned as a string.
Returned string can be one of:
"ARRAY"
"BOOL"
"CODE"
"CONFIG"
"CONTROL"
"DISPLAY"
"GROUP"
"OBJECT"
"SCALAR"
"SCRIPT"
"SIDE"
"STRING"
"TEXT"
These represent the available data types in Arma.
An empty string is returned if the argument is not defined.
Used In:
ArmA
Examples:
_message = "treacle"; _datatype = typeName _message;
Result will be "STRING".
_unitname = player; _datatype = typeName _unitname;
Result will be "OBJECT".
--------------------------------------------------------------------------------
typeOf vehicle
Operand types:
vehicle: Object
Type of returned value:
String
Description:
Returns the class type of a given object or vehicle.
Used In:
ArmA/OFP
Example:
_class = typeOf _mi24
General Barron
Try using this on an object pre-placed in the mission editor (such as a house):
hint format["%1", typeof object xxx]
Now place an object in the editor, save the map, and open up the mission.sqm.
Find the line: vehicle="XXX", and replace XXX with the name of the object that you found above.
Save it, and load the map.
You just placed a new house!
--------------------------------------------------------------------------------

U
Index
unassignTeam
unassignVehicle
unitPos
unitReady
units
units
unassignTeam vehicle
Operand types:
vehicle:Object
Type of returned value:
Nothing
Description:
Unassigns the vehicle (its commander unit) from his team.
This is equal to vehicle assignTeam "MAIN".
Used In:
ArmA
Example:
unassignTeam soldier2

--------------------------------------------------------------------------------
unassignVehicle unit
Operand types:
unit:Object
Type of returned value:
Nothing
Description:
Unit is unassigned from the vehicle.
If he is currently in, group leader will issue order to disembark.
Used In:
ArmA/OFP
Example:
unassignVehicle player
--------------------------------------------------------------------------------
unitPos person
Operand types:
person:Object
Type of returned value:
String
Description:
Return the unit position rules.
Used In:
ArmA
--------------------------------------------------------------------------------
unitReady
Operand types:
None
Type of returned value:
Boolean
Description:
Check if unit is ready.
Unit is busy when it is given some command like move until the command is finished.
Used In:
ArmA/OFP
Example:
_it = unitReady soldierOne
« To Menu
--------------------------------------------------------------------------------
units unit
Operand types:
unit: Object
Type of returned value:
Array
Description:
Array of all units in the group of given unit.
For dead unit empty array is returned.
Used In:
ArmA/OFP
Example:
soldierOne in units player
--------------------------------------------------------------------------------
units grp
Operand types:
grp: Group
Type of returned value:
Array
Description:
Array of all units in the group.
Used In:
ArmA/OFP
Example:
soldierOne in units group player
--------------------------------------------------------------------------------

V
Index
vectorDir
vectorUp
vehicle
vehicleChat
vehicleRadio
vehicles
vehicleVarName
velocity
verifySignature
vectorDir obj
Operand types:
obj: Object
Type of returned value:
Array
Description:
Return object's direction vector in world coordinates as [x, z, y].
Used In:
ArmA
--------------------------------------------------------------------------------
vectorUp obj
Operand types:
obj: Object
Type of returned value:
Array
Description:
Return object's up vector in world coordinates as [x, z, y].
Used In:
ArmA
--------------------------------------------------------------------------------
vehicle unit
Operand types:
unit: Object
Type of returned value:
Object
Description:
Vehicle in which given unit is mounted.
If none, unit is returned.
Used In:
ArmA/OFP
Example:
? vehicle player != player : hint "Player is in a vehicle"
--------------------------------------------------------------------------------
unit vehicleChat chatText
Operand types:
unit: Object
chatText: String
Type of returned value:
Nothing
Description:
Type text to vehicle radio channel.
Note: This function only types text to the list, it does not broadcast the message.
If you want the message to show on all computers, you have to execute it on them.
Used In:
ArmA/OFP
Example:
soldierOne vehicleChat "Show this text"
« To Menu
--------------------------------------------------------------------------------
unit vehicleRadio radioName
Operand types:
unit: Object
radioName: String
Type of returned value:
Nothing
Description:
Send message to vehicle radio channel.
Message is defined in description.ext.
Used In:
ArmA/OFP
Example:
soldierOne vehicleRadio "messageOne"
--------------------------------------------------------------------------------
vehicles
Operand types:
None
Type of returned value:
Array
Description:
Return a list of vehicles in the current mission.
Used In:
ArmA
Example:
_vehicles = vehicles
--------------------------------------------------------------------------------
vehicleVarName object
Operand types:
object:Object
Type of returned value:
String
Description:
Returns the name of the variable which contains a reference to the object.
This is the name given to the object when placed via the editor, and is entered in the name field of the Unit placement dialog.
The name can also be changed using setVehicleVarName
Used In:
ArmA
« To Menu
--------------------------------------------------------------------------------
velocity vehicle
Operand types:
vehicle: Object
Type of returned value:
Array
Description:
Return velocity (speed vector) of vehicle as array [x, z, y].
Used In:
ArmA/OFP
Example:
? velocity carOne > 50 : hint "Slow down, you are exceeding the speed limit."
--------------------------------------------------------------------------------
verifySignature filename
Operand types:
filename:String
Type of returned value:
Boolean
Description:
Check if file is signed by an accepted key.
Used In:
ArmA
--------------------------------------------------------------------------------

W
Index
waitUntil
waypointAttachObject
waypointAttachVehicle
waypointPosition
waypoints
weaponDirection
weapons
west
while
wind
worldName
worldToModel
waitUntil condition
Operand types:
condition: Code
Type of returned value:
Nothing
Description:
Suspend execution of script until condition is satisfied.
Used In:
ArmA
Example:
_i = 0; waitUntil {_i = _i + 1; _i >= 100}
--------------------------------------------------------------------------------
waypoint waypointAttachObject vehicle
Operand types:
waypoint: Array
vehicle: Number
Type of returned value:
Nothing
Description:
Attaches a static object to the given waypoint.
Used In:
ArmA
Example:
[grp, 2] waypointAttachObject 1234
--------------------------------------------------------------------------------
waypoint waypointAttachVehicle idStatic
Operand types:
waypoint: Array
idStatic: Object
Type of returned value:
Nothing
Description:
Attaches a static object to the given waypoint.
Used In:
ArmA
Example:
[grp, 2] waypointAttachVehicle vehicle player
--------------------------------------------------------------------------------
waypointPosition waypoint
Operand types:
waypoint: Array
Type of returned value:
Array
Description:
Get waypoint position.
Waypoint format is Waypoint.
Note: This function is identical to getWPPos.
Used In:
ArmA/OFP
Example:
wPos = waypointPosition [groupOne, 1]
« To Menu
--------------------------------------------------------------------------------
waypoints group
Operand types:
group: Group
Type of returned value:
Array
Description:
Returns a nested array of waypoints assigned to the specified group.
Waypoint format is Waypoint.
Used In:
ArmA
Example:
wPosArray = waypoints group10
--------------------------------------------------------------------------------
vehicle weaponDirection weaponName
Operand types:
vehicle: Object
weaponName: String
Type of returned value:
Array
Description:
Returns the direction where the given weapon is aiming.
Used In:
ArmA
Example:
_dir = weaponDirection "M16"
--------------------------------------------------------------------------------
weapons vehicle
Operand types:
vehicle: Object
Type of returned value:
Array
Description:
Returns array of names of all vehicle's weapons.
Used In:
ArmA/OFP
Example:
wArray = weapons player
--------------------------------------------------------------------------------
west
Operand types:
None
Type of returned value:
Side
Description:
West side.
Used In:
ArmA/OFP
« To Menu
--------------------------------------------------------------------------------
while condition
Operand types:
condition: String
Type of returned value:
While Type
Description:
First part of while construct.
Used In:
ArmA/OFP
Example:
while "x<10" do {x=x+1}
--------------------------------------------------------------------------------
wind
Operand types:
None
Type of returned value:
Array
Description:
Return the current wind vector.
Used In:
ArmA
--------------------------------------------------------------------------------
worldName
Operand types:
None
Type of returned value:
String
Description:
Return the name of the currently loaded world.
Used In:
ArmA
--------------------------------------------------------------------------------
object worldToModel worldPos
Operand types:
object: Object
worldPos: Array
Type of returned value:
Array
Description:
Converts position from world space to object model space.
Used In:
ArmA
--------------------------------------------------------------------------------
« To Menu
ARRAY
Arrays
Index
Color
ParticleArray
Position
Position2D
Waypoint

Color
Format:
[r, g, b, a]
Description:
Color, r is the intensity of red, g is the intensity of green, b is the intensity of blue.
a is alpha (1 - transparency).
All is from 0 to 1.
--------------------------------------------------------------------------------
ParticleArray
Format:
[ShapeName,
AnimationName,
Type,
TimerPeriod,
LifeTime,
Position,
MoveVelocity,
RotationVelocity,
Weight,
Volume,
Rubbing,
Size,
Color,
AnimationPhase,
RandomDirectionPeriod,
RandomDirectionIntensity,
OnTimer,
BeforeDestroy,
Object]
Description:
Global parameters:
        ShapeName - Name of the shape associated with the particle.
        AnimationName - Name of the animation of the shape.
        Type - Type of particle (either "Billboard" or "SpaceObject").
        TimerPeriod - The period of calling the "OnTimer" event (in sec).
        LifeTime - Life time of the particle (in sec).
Physical parameters:
        Position - Either 3D coordinate (x, y, z) or name of the selection - in this case the Object property
        must be set.
        MoveVelocity - 3D vector (x, y, z) which describes the velocity vector of the particle direction and
        speed in m/s.
        RotationVelocity - Float number which determines number of rotations in one second.
        Weight - Weight of the particle (kg).
        Volume - Volume of the particle (m^3).
        Rubbing - Float number without dimension which determines the impact of the density of the environment
        on this particle. 0 - no impact (vacuum).
Render parameters:
        Note that all these values are set as arrays to show their development in time.
        If you set the array [1, 2] as a size, then at the beginning the size of the particle will be 1 and at the end
        of the life time of the particle it's size will be 2.
        The rest of the values during the life time will be linearly interpolated.
        Size - Size of the particle in time to render (m).
        Color - Colour of the particle in time to render (RGBA).
        AnimationPhase - Phase of the animation in time.
Random parameters:
        RandomDirectionPeriod - Period of change of the velocity vector (s).
        RandomDirectionIntensity - Each MoveVelocity component will be changed with random value from
        interval <0, RandomDirectionIntensity>.
        OnTimer - Name of the script to run every period determined by TimerPeriod property.
        Position of the particle is stored in "this" variable.
        BeforeDestroy - Name of the script to run right before destroying the particle.
        Position of the particle is stored in "this" variable.
        Object - Object to bind this particle to.
« To Menu
--------------------------------------------------------------------------------
Position
Format:
[x, z] or [x, z, y]
Description:
Position:
x coordinates are east-west
z are south-north
y is height above ground.
Default y is 0.
--------------------------------------------------------------------------------
Position2D
Format:
[x, z]
Description:
x coordinates are east-west
z is south-north.
--------------------------------------------------------------------------------
Waypoint
Format:
[group, index]
Description:
Group is of type Group, index selects waypoint.
Index 0 selects first waypoint which is always created on group starting position.
snYpir
Note that [groupname, 0] is automatically created at a unit's starting position.
Therefore:
[groupname, 1] would be the first in-editor waypoint
[groupname, 2] would be the second
And so on...
--------------------------------------------------------------------------------
« To Menu
מבנה CfgVehicles בARMA
Armed Assault CfgVehicles Class Tree
(Some images provided by Ronin)
Index
Logic Class
Land Class
Man Class
Air Class
Ship Class
LaserTarget Class
Static Class
Thing Class
Sound Class
MineGeneric Class
Logic Class:

All
Logic
 
Land Class Vehicles:
All
AllVehicles
Land
LandVehicle
StaticWeapon
M2StaticMG
M119
DSHKM
AGS
D30
SearchLight
Car
PaperCar
Truck
Truck5tMG
Truck5t
Truck5tOpen
Truck5tRepair
Truck5tReammo
Truck5tRefuel
Ural
UralOpen
UralRepair
UralReammo
UralRefuel
UralCivil
UralCivil2
HMMWV50
HMMWVTOW
HMMWVMK
HMMWV
StrykerBase
Stryker_ICV_M2
Stryker_ICV_MK19
Stryker_TOW
UAZMG
UAZ_AGS30
UAZ
BRDM2
BRDM2_ATGM
SkodaBase
Skoda
SkodaBlue
SkodaRed
SkodaGreen
datsun1_civil_1_open
datsun1_civil_2_covered
datsun1_civil_3_open
car_hatchback
car_sedan
LandroverMG
Landrover_Closed
Landrover
Landrover_Police
Bus_city
tractor
hilux1_civil_1_open
hilux1_civil_2_covered
hilux1_civil_3_open
Motorcycle
M1030
TT650G
TT650C
Bicycle
Tank
APC
M1Abrams
M113
M113_RACS
M113Ambul
Vulcan
Vulcan_RACS
BMP2
BMP2Ambul
T72
ZSU
« To Menu
Man Class Vehicles:
All
AllVehicles
Land
Man
CAManBase
SoldierWB
SoldierWG
SoldierW
SoldierWMedic
SoldierWNOG
SoldierWAR
SoldierWMG
SoldierWAT
SoldierWAA
SoldierWSniper
SoldierWSaboteur
SoldierWSaboteurPipe
SoldierWSaboteurPipe2
SoldierWSaboteurRecon
SoldierWSaboteurAssault
SoldierWSaboteurMarksman
SoldierWMiner
SquadLeaderW
TeamLeaderW
OfficerW
SoldierWPilot
BISCamelPilot
SoldierWCrew
SoldierEB
SoldierEG
SoldierE
SoldierEMedic
SoldierENOG
SoldierEMG
SoldierEAT
SoldierEAA
SoldierEMiner
SquadLeaderE
TeamLeaderE
OfficerE
SoldierESniper
SoldierESaboteur
SoldierESaboteurPipe
SoldierESaboteurBizon
SoldierESaboteurMarksman
SoldierEPilot
BISCamelPilot2
SoldierECrew
SoldierGB
SoldierGMedic
SoldierGG
SoldierG
SoldierGNOG
SoldierGMG
SoldierGAT
SoldierGAA
OfficerG
SquadLeaderG
TeamLeaderG
Riboli
SoldierGCrew
SoldierGSniper
SoldierGCommando
SoldierGMarksman
SoldierGGuard
SoldierGPilot
SoldierGMiner
Civilian
Civilian2
Civilian3
Civilian4
Civilian5
Civilian6
Civilian7
Civilian8
Civilian9
Civilian10
Civilian11
Civilian12
Civilian13
Civilian14
Civilian15
Civilian16
Civilian17
Civilian18
Civilian19
Civilian20
Civilian21
SoldierWCaptive
SoldierECaptive
SoldierGCaptive
Civil_Undead_1
Civil_Undead_2
Civil_Undead_3
Civil_Undead_4
King
MarianQuandt
MarianQuandt02
MarianQuandt03
MarianQuandt04
FieldReporter
Anchorman
Anchorman2
NorthPrimeMinister
« To Menu
Air Class Vehicles:
All
AllVehicles
Air
Helicopter
ParachuteBase
ParachuteWest
Parachute
ParachuteEast
ParachuteG
ParachuteC
AH1W
UH60MG
UH60
AH6
AH6_RACS
MH6
MH6_RACS
KA50
Mi17_MG
Mi17
Plane
A10
AV8B
AV8B2
Camel
Camel2
Su34
Su34B
 
Ship Class Vehicles:
All
AllVehicles
Ship
SmallShip
BigShip
BuoySmall
BuoyBig
Boat
RHIB
RHIB2Turret
Zodiac
Zodiac2
PBX
 
LaserTarget Class:
All
LaserTarget
LaserTargetBase
LaserTargetCBase
LaserTargetC
LaserTargetWBase
LaserTargetW
LaserTargetEBase
LaserTargetE
FireSectorTarget
« To Menu
Static Class Vehicles:
All
Static
Fortress
Building
NonStrategic
Church
Land_kostel
Land_kostel2
Land_kostel3
Land_kostel_mexico
ZavoraAnim
Land_Stoplight02
Land_Stoplight01
CutCube1 (miscUS only)
CutCube1Flat (miscUS only)
CutScreen01 (miscUS only)
CutScreen02 (miscUS only)
CutScreen03 (miscUS only)
CutScreen04 (miscUS only)
CutScreen05 (miscUS only)
CutScreen06 (miscUS only)
CutScreen07 (miscUS only)
CutScreen08 (miscUS only)
CutScreen09 (miscUS only)
CutScreen10 (miscUS only)
HouseBase
House
Land_vez_ropa
Land_water_tank
Land_water_tank2
Land_sloup_vn
Land_sloup_vn_dratZ
Land_sloup_vn_drat
Land_HiddenPath_5
Land_HiddenPath_corner
Land_ladder
Land_ladder_half
Land_NavigLight
Land_runway_edgelight
Land_Javor01Posed
Land_parez_str_test
CATest_Object
Land_majak
Land_majak_v_celku
Land_majak2
Land_majak_podesta
Land_molo_beton
Land_molo_drevo
Land_molo_drevo_bs
Land_molo_drevo_end
Land_molo_drevo_krychle
Land_molo_drevo_krychle2
Land_molo_krychle
Land_molo_krychle2
Land_zastavka_jih
Land_zastavka_sever
Land_pletivo_dira
Land_plot_zed_drevo1_branka
Land_plot_istan1b_hole
Land_plot_istan1_rovny_gate
Land_Plot_Ohrada_Pruchozi
Land_plot_zboreny
Land_stanek_1
Land_stanek_1B
Land_stanek_1C
Land_zed_dira
Land_zed_dira_civil
Land_zed_dira_desert
Land_afbarabizna
Land_afdum_mesto2
Land_afdum_mesto2L
Land_afdum_mesto3
Land_afhospoda_mesto
Land_bouda1
Land_bouda3
Land_brana02
Land_brana02nodoor
Land_budova1
Land_budova2
Land_budova3
Land_budova4
Land_budova5
Land_cihlovej_dum
Land_cihlovej_dum_in
Land_cihlovej_dum_mini
Land_deutshe
Land_deutshe_mini
Land_domek_rosa
Land_dulni_bs
Land_dum_istan2
Land_dum_istan2b
Land_dum_istan2_01
Land_dum_istan2_02
Land_dum_istan2_03
Land_dum_istan2_03a
Land_dum_istan2_04a
Land_dum_istan3
Land_dum_istan3_hromada
Land_dum_istan3_hromada2
Land_dum_istan3_pumpa
Land_dum_istan4
Land_dum_istan4_big
Land_dum_istan4_big_inverse
Land_dum_istan4_detaily1
Land_dum_istan4_inverse
Land_dum_m2
Land_dum_mesto
Land_dum_mesto_in
Land_dum_mesto2l
Land_dum_mesto3
Land_dum_mesto3_istan
Land_dum_olezlina
Land_dum_olez_istan1
Land_dum_olez_istan2
Land_dum_olez_istan2_maly
Land_dum_olez_istan2_maly2
Land_dum_patr_nizky_prujezd
Land_dum_zboreny
Land_dum_zboreny_total
Land_dum01
Land_dum02
Land_dumruina
Land_dumruina_mini
Land_garaz
Land_garaz_mala
Land_hangar_2
Land_hospital
Land_hospoda_mesto
Land_house_y
Land_hut_old02
Land_kasarna_rohova
Land_kasarna_brana
Land_kasarna
Land_kasarna_prujezd
Land_kostel_trosky
Land_kostelik
Land_kulna
Land_jizak_test
Land_OrlHot
Land_podesta_1_cube
Land_podesta_1_cube_long
Land_podesta_1_cornl
Land_podesta_1_cornp
Land_podesta_1_mid_cornl
Land_podesta_1_mid_cornp
Land_podesta_1_mid
Land_podesta_1_stairs
Land_podesta_1_stairs2
Land_podesta_1_stairs3
Land_podesta_1_stairs4
Land_podesta_5
Land_podesta_10
Land_podesta_s5
Land_podesta_s10
Land_repair_center
Land_ryb_domek
Land_skola
Land_SS_hangar
Land_SS_hangarD
Land_stanice
Land_statek_brana
Land_statek_brana_open
Land_psi_bouda
Land_statek_hl_bud
Land_Statek_kulna
Land_stodola_old
Land_stodola_old_open
Land_stodola_open
Land_strazni_vez
Land_ZalChata
Land_army_hut_storrage
Land_army_hut_int
Land_army_hut2
Land_army_hut2_int
Land_army_hut3_long
Land_army_hut3_long_int
Land_hut01
Land_hut02
Land_hut03
Land_hut04
Land_hut06
Land_Sara_domek01
Land_Sara_domek02
Land_Sara_domek03
Land_Sara_domek04
Land_Sara_domek05
Land_Sara_domek_hospoda
Land_Sara_domek_kovarna
Land_Sara_domek_sedy_bez
Land_Sara_domek_podhradi_1
Land_Sara_domek_rosa
Land_Sara_domek_ruina
Land_Sara_domek_vilka
Land_Sara_domek_zluty_bez
Land_Sara_dum_patr_nizky_prujezd
Land_Sara_dum_podloubi03klaster
Land_Sara_dum_podloubi03rovny
Land_Sara_hasic_zbroj
Land_Sara_stodola
Land_Sara_stodola2
Land_Sara_stodola3
Land_Sara_zluty_statek
Land_townhall
Land_ruiny_3_dvere
Land_ruiny_3_prasklina
Land_ruiny_3_roh
Land_ruiny_3_stenazbor
Land_ruiny_3_stena
Land_ruiny_obvod_3
Land_pumpa
Land_helfenburk
Land_helfenburk_brana
Land_helfenburk_budova2
Land_helfenburk_cimburi
Land_helfenburk_zed
Land_bouda2_vnitrek
Land_bouda_plech
Land_aut_zast
Land_budova4_in
Land_garaz_bez_tanku
Land_garaz_s_tankem
Land_hruzdum
Land_dum_rasovna
Land_ammostore2
Land_hlaska
Land_vez
Land_brana_krat_1_7
Land_Panelak
Land_letistni_hala
Land_KBud
Land_Nasypka
Land_Tovarna1
Land_Tovarna2
Land_Hlidac_budka
Land_Domek_sedy
Land_Sara_domek_sedy
Land_posed
Land_leseni4x
Land_leseni2x
Land_domek_zluty
Land_Sara_domek_zluty
Land_Vysilac_FM
Land_vysilac_FM2
Land_radar
Land_watertower1
Land_telek1
Land_zluty_statek_in
Land_Sara_zluty_statek_in
Land_domek_radnice
Land_Panelak2
Land_Panelak3
Land_Hotel
Land_dum_mesto2
Land_nabrezi
Land_nabrezi_najezd
Land_trafostanica_velka
Land_trafostanica_mala
Land_komin
Land_invisible_house
Land_hotel_riviera1
Land_hotel_riviera2
Land_trafostanica_velka_draty
Ruins (links don't work)
Land_AFbarabizna_ruins
Land_AFDum_mesto2_ruins
Land_AFDum_mesto2L_ruins
Land_AFDum_mesto3_ruins
Land_AFHospoda_mesto_ruins
Land_army_hut2_int_ruins
Land_army_hut2_ruins
Land_army_hut3_long_int_ruins
Land_army_hut3_long_ruins
Land_army_hut_int_ruins
Land_army_hut_storrage_ruins
Land_benzina_schnell_ruins
Land_bouda1_ruins
Land_bouda3_ruins
Land_budova1_ruins
Land_budova2_ruins
Land_budova3_ruins
Land_budova4_in_ruins
Land_budova4_ruins
Land_budova5_ruins
Land_Cihlovej_dum_in_ruins
Land_Cihlovej_dum_mini_ruins
Land_Cihlovej_dum_ruins
Land_Deutshe_mini_ruins
Land_Deutshe_ruins
Land_domek_rosa_ruins
Land_drevtank_ruin
Land_Dulni_bs_ruins
Land_dum01_ruins
Land_dum02_ruins
Land_Dum_istan2_01_ruins
Land_Dum_istan2_02_ruins
Land_Dum_istan2_03_ruins
Land_Dum_istan2_03a_ruins
Land_dum_istan2_04a_ruins
Land_dum_istan2_ruins
Land_dum_istan2b_ruins
Land_dum_istan3_hromada2_ruins
Land_dum_istan3_hromada_ruins
Land_dum_istan3_pumpa_ruins
Land_dum_istan3_ruins
Land_dum_istan4_big_inverse_ruins
Land_dum_istan4_big_ruins
Land_dum_istan4_detaily1_ruins
Land_dum_istan4_inverse_ruins
Land_dum_istan4_ruins
Land_Dum_m2_ruins
Land_Dum_mesto2_ruins
Land_Dum_mesto2L_ruins
Land_Dum_mesto3_istan_ruins
Land_Dum_mesto3_ruins
Land_dum_mesto_in_ruins
Land_Dum_mesto_ruins
Land_dum_olez_istan1_ruins
Land_dum_olez_istan2_maly2_ruins
Land_dum_olez_istan2_maly_ruins
Land_dum_olez_istan2_ruins
Land_dum_olezlina_ruins
Land_dum_rasovna_ruins
Land_Dumruina_mini_ruins
Land_Dumruina_ruins
Land_garaz_mala_ruins
Land_garaz_ruins
Land_hangar_2_ruins
Land_Hlidac_budka_ruins
Land_hospital_ruins
Land_hospoda_mesto_ruins
Land_hotel_riviera1_ruins
Land_hotel_riviera2_ruins
Land_Hotel_ruins
Land_house_y_ruins
Land_Hruzdum_ruins
Land_hut_old02_ruins
Land_hut01_ruins
Land_hut02_ruins
Land_hut03_ruins
Land_hut04_ruins
Land_hut06_ruins
Land_kasarna_brana_ruins
Land_kasarna_prujezd_ruins
Land_kasarna_rohova_ruins
Land_kasarna_ruins
Land_Komin_ruins
Land_Kostel2_ruins
Land_kostel3_ruins
Land_kostel_mexico_ruins
Land_kostel_ruins
Land_kostelik_ruins
Land_Letistni_hala_ruins
Land_Majak_ruins
Land_Majak_v_celku_ruins
Land_OrlHot_ruins
Land_Panelak2_ruins
Land_Panelak3_ruins
Land_Panelak_ruins
Land_repair_center_ruins
Land_Ryb_domek_ruins
Land_Sara_domek01_ruins
Land_Sara_domek02_ruins
Land_Sara_domek03_ruins
Land_Sara_domek04_ruins
Land_Sara_domek05_ruins
Land_Sara_domek_hospoda_ruins
Land_Sara_domek_kovarna_ruins
Land_Sara_domek_podhradi_1_ruins
Land_Sara_domek_rosa_ruins
Land_Sara_domek_ruina_ruins
Land_Sara_domek_sedy_BEZ_ruins
Land_Sara_domek_sedy_ruins
Land_sara_domek_vilka_ruins
Land_Sara_domek_zluty_BEZ_ruins
Land_Sara_domek_zluty_ruins
Land_Sara_dum_podloubi03klaster_ruins
Land_Sara_dum_podloubi03rovny_ruins
Land_Sara_Hasic_zbroj_ruins
Land_Sara_stodola2_ruins
Land_Sara_stodola3_ruins
Land_Sara_stodola_ruins
Land_Sara_zluty_statek_in_ruins
Land_Sara_zluty_statek_ruins
Land_skola_ruins
Land_SS_hangar_ruins
Land_SS_hangarD_ruins
Land_stanice_ruins
Land_Statek_hl_bud_ruins
Land_Statek_kulna_old_ruins
Land_Statek_kulna_ruins
Land_stodola_old_open_ruins
Land_stodola_old_ruins
Land_stodola_open_ruins
Land_strazni_vez_ruins
Land_Tovarna1_ruins
Land_tovarna2_ruins
Land_trafostanica_mala_ruins
Land_trafostanica_velka_ruins
Land_zalchata_ruins
Land_leseni2x_ruins
Land_leseni4x_ruins
Land_Statek_brana_open_ruins
Land_Statek_brana_ruins
Land_brana02_ruins
Land_brana02nodoor_ruins
Land_dum_zboreny_ruins
Land_dum_zboreny_total_ruins
Land_kostel_trosky_ruins
Land_posed_ruins
Land_vez_ruins
Land_telek1_ruins
Land_watertower1_ruins
Land_hlaska_ruins
Land_Nasypka_ruins
misc01
Vec03
Fence
FenceWood
FenceWoodPalet
LODy_test
Wire
Fire
FireLit
HeliH
HeliHEmpty
Heli_H_civil
Heli_H_rescue
xxxPhotos
TargetTraining
TargetGrenade
TargetEpopup
Land_VASICore
Land_Runway_PAPI
Land_Runway_PAPI_2
Land_Runway_PAPI_3
Land_Runway_PAPI_4
WireFence
Obstacle_saddle
RampConcrete
HumpsDirt
RoadBarrier_light
RoadBarrier_long
Strategic
Library_WeaponHolder
Land_podlejzacka
Land_prolejzacka
Land_prebehlavka
Land_obihacka
Land_strelecky_post_new
Land_kolotoc
Land_maly_kolotoc
Land_houpacka
Land_kulata_prolezacka
Land_Piskoviste
Land_jezekbeton
Land_fuel_tank_small
Land_Fuel_tank_big
Land_Fuel_tank_stairs
JeepWreck1
JeepWreck2
JeepWreck3
BMP2Wreck
M113Wreck
UralWreck
BlackhawkWreck
Body
datsun01Wreck
datsun02Wreck
hiluxWreck
Vysilacka
FlagCarrierCore
FlagCarrier
FlagCarrierWest
FlagCarrierSouth
FlagCarrierNorth
Danger
DangerWest
DangerEast
DangerGUE
Target
TargetE
ReammoBox
WeaponHolder
AmmoBoxWest
WeaponBoxWest
SpecialBoxWest
AmmoBoxEast
WeaponBoxEast
SpecialBoxEast
AmmoBoxGuer
WeaponBoxGuer
SpecialBoxGuer
Bomb
Fortress1
Fortress2
Shed
ShedSmall
ShedBig
Land_HANGAR
Camp
CampEmpty
CampEast
CampEastC
ACamp
MASH
Grave
GraveCross1
GraveCross2
GraveCrossHelmet
FuelStation
Land_benzina
Land_benzina_schnell
Land_fuelstation
Land_fuelstation_army
Wall
Wall1
Land_zidka_branka
Wallend
Land_zidka03
« To Menu
Thing Class Vehicles:
All
Thing
CATest_Thing
Platform
Obstacle_Cylinder1
Obstacle_Jump1
RoadCone
BarrelHelper
BarrelBase
Barrels
Barrel1
Barrel2
Barrel3
Barrel4
Barrel5
Barrel6
PaletaHelper
PaletaBase
Paleta1
Paleta2
Camera1
Computer
TVStudio
Radio
WallMap
ClutterCutter
ThingEffect
FxExploGround1
FxExploGround2
FxExploArmor1
FxExploArmor2
FxExploArmor3
FxExploArmor4
FxCartridge
FxCartridge_Small
ThingEffectLight
FxWindGrass1
FxWindGrass2
FxWindRock1
FxWindLeaf1
FxWindLeaf2
FxWindLeaf3
ThingEffectFeather
FxWindPollen1
 
Sound Class:
Sound
Owl
Stream
Frog
Frogs
Alarm
BirdSinging
Crickets1
Crickets2
Crickets3
Crickets4
Chicken
Cock
Cow
Crow
Wolf
Dog
BadDog
SorrowDog
LittleDog
Music
 
MineGeneric Class:
MineGeneric
MineMine

--------------------------------------------------------------------------------
« To Menu
TYPES
Types
Index
Any Value
Anything
Anything or If
Array
Boolean
Code
Config
Control
Display
Exception Type
For Type
Group
If Type
Nothing
Number
Number or Nothing
Object
Object or Array
Object or Group
Object or String
Orientation
Script
Side
String
String or Array
String or Code
Structured Text
Switch Type
Target
Text or String
Transformation
Vector
While Type

Any Value
Description:
Any value.

--------------------------------------------------------------------------------
Anything
Description:
Anything, including nothing.

--------------------------------------------------------------------------------
Anything or If
Description:
Anything, or If.

--------------------------------------------------------------------------------
Array
Description:
Array of items, each may be of any type.
Arrays are somewhat different from other variable types.
Arrays are returned by reference.
What does this mean?
It means that the variable name you give to an array (For example myArray, or _units) references an array of values in the computer's memory.
An Example:
Suppose you have two numbers, _num1 and _num2.
You set _num1 to equal 5, and _num2 equal to _num1.
What do you have?
You have two completely separate variables, which store a number each, and which are both currently storing the number 5.

But what happens if you do a similar thing with a pair of arrays?
For Example:
_array1 = [5]
_array2 = _array1
What do you have now?
You have two variables, but each one points to the same data, in this case an array containing a single variable of type number, with the value of 5.
You can understand the difference when you try to change the two variable types around.

Taking our number type variables:
Suppose we set _num2 to zero.
Now we have _num2 equal to zero, but _num1 still equal to 5.

Now take the two arrays.
Supposing we set _array2 to [player].
What does _array1 equal?
_array1 also equals [player].

We have modified the array that both _array1 and _array2 refer to.
Exactly the same thing would happen if we set _array1 to [player] instead of _array2.
Both our variables, _array1 and _array2 are two labels for the same thing.

The difference between = and set.
It is important at this point to recognise the difference between two commands, set and = .
If you think about it, there are two ways we could set _array2 to [player] from it's previous value of [5].
We could say _array2 = [player] or we could say _array2 set [0, player].
The difference is very important.
If you use = to change _array2, you will find that _array1 and _array2 now have different values completely; _array1 is still [5] but _array2 is [player].
If you use set, then both _array1 and _array2 store [player].
The reason for this lies in what you're doing with the equals.
When you say _array2 = [player], you are creating an entirely new array, and assigning _array2 as the variable that points to it.
_array2 is stripped away from the array that it was originally pointing to (but which _array1 still points to).

The equals command has a slighly different meaning; Here is a summary:
_a1 = [1,2,3]
The variable _a1 points to a new array which is created at the end of this statement
_a2 = _a1
No new array is created, but the variable '_a2' now refers to the same array that _a1 refers to.
_a2 = +_a1
A new array is created which is an identical clone of the array that _a1 points to.
_a2 points to this new array.
_a1 points to the old one
_a2 = _a1 + [2]
A new array is created which is the same as array _a1 plus an extra element.
_a2 set [0, player]
The array which _a2 references is modified.
It's zero element is set to 'player'.
All variables referencing this array will return the changed array.

Because arrays are 'returned by reference' (not by value), the equality (==) operator behaves differently.
Testing our two numbers, _num1 and _num2, we know that _num1 == _num2 is true when _num1 and _num2 are storing the same value.
The same is NOT true of arrays.
If we had two separate arrays, and both had identical values e.g. [3,4,2].
_firstArray == _secondArray would return false, even though the values are identical.
When used with arrays, the equality (==) operator compares two references and checks if they point to the same thing.
From our example above, _array1 == _array2 would return true, because both _array1 and _array2 point to the same array.
Another interesting thing is what happens when we delete a variable pointing to an array.
Returning to our two arrays, supposing we do:
_array2 = nil
The array is not deleted.
It helps to think of _array1 and _array2 as labels, or arrows, pointing to a chunk of data (the array).
Deleting _array2 removes one of the arrows, or references, pointing to the array.
_array1, however, still points to the array as per usual.
(An array is normally destroyed, and its memory reclaimed, when there are no more labels pointing to it).
« Top Of Page
--------------------------------------------------------------------------------
Boolean
Description:
Boolean (true or false).

--------------------------------------------------------------------------------
Code
Description:
Functions which are marked as requiring Code accepted String in previous versions.
It was the prefered style to write code in curled braces, but it was not absolutely required.

--------------------------------------------------------------------------------
Config
Description:
Config file entry.

--------------------------------------------------------------------------------
Control
Description:
Control UI object.

--------------------------------------------------------------------------------
Display
Description:
Display UI object.

--------------------------------------------------------------------------------
Exception Type
Description:
A helper type used in try-catch constructs.

--------------------------------------------------------------------------------
For Type
Description:
This type handles for cycles.
Usage of this type:
for "_var" from :expr: to :expr: [step ] do {..code..};
Second usage:
for [":initPhase:",":condition:",":updatePhase:"] do {...code...};
« Top Of Page
--------------------------------------------------------------------------------
Group
Description:
Group.

--------------------------------------------------------------------------------
If Type
Description:
Helper type used in if...then construct.

--------------------------------------------------------------------------------
Nothing
Description:
Nothing - no value.

--------------------------------------------------------------------------------
Number
Description:
Real number.

--------------------------------------------------------------------------------
Number or Nothing
Description:
Number, or Nothing.

--------------------------------------------------------------------------------
Object
Description:
Game object, like soldier, vehicle or building.
« Top Of Page
--------------------------------------------------------------------------------
Object or Array
Description:
Object, or Array.

--------------------------------------------------------------------------------
Object or Group
Description:
Object, or Group.
If you pass Group, leader is considered.
--------------------------------------------------------------------------------
Object or String
Description:
Object, or String.

--------------------------------------------------------------------------------
Orientation
Description:
For future implementation.

--------------------------------------------------------------------------------
Script
Description:
Script handle, used to identify scripts in script operations.
Script is usually started using spawn or execVM.
Scripts use the same syntax as Functions - SQF, but there are a few specialized commands which can be used only in scripts, like sleep or waitUntil.

--------------------------------------------------------------------------------
Side
Description:
Name of side (see west, east, civilian, resistance).
« Top Of Page
--------------------------------------------------------------------------------
String
Description:
ASCII string.

--------------------------------------------------------------------------------
String or Array
Description:
String, or Array.

--------------------------------------------------------------------------------
String or Code
Description:
String, or Code.

--------------------------------------------------------------------------------
Structured Text
Description:
Rich text, is able to include pictures, formating ...
It can be created using XML like syntax, as seen in parseText.

--------------------------------------------------------------------------------
Switch Type
Description:
A helper type used in switch constructs.

--------------------------------------------------------------------------------
Target
Description:
For future implementation.
« Top Of Page
--------------------------------------------------------------------------------
Text or String
Description:
Text, or String.

--------------------------------------------------------------------------------
Transformation
Description:
4x3 matrix (orientation + offset). This is a reserved keyword for future implementations.
In ArmA it is not implemented yet.

--------------------------------------------------------------------------------
Vector
Description:
For future implementation.

--------------------------------------------------------------------------------
While Type
Description:
Helper type used in while...do constructs.
 
< קודם 1 2 3 4 5 הבא >
חשבון משתמש
שלום אורח/ת

התחבר | משתמש חדש
בן כמה אתה