오늘 2시부터 만든 맵 날아갔어요.



최악... GG






아래는 이 게임을 만드는 명령어들.
어떤게임이냐구요?


오퍼레이션 플래시포인트..
엔진만 그대로고 모든걸 고칠수 있는듯...

누가 막 따끈따끈하게 개발한 제작툴로 코딩 프로그래밍하는 기분.



________________________________________
- a
Operand types:
    a: Number
Type of returned value:
    Number
Description:
    unary minus: zero minus a

Example:
    - - 3 , result is 3


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

arrayA - arrayB
Operand types:
    arrayA: Array
    arrayB: Array
Type of returned value:
    Array
Description:
    all elements in arrayB removed from arrayA

Example:
    [0, 1, 2, 4, 0, 1, 2, 3, 4, 5] - [1, 2, 3] , result is [0, 4, 0, 4, 5]


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

a - b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Number
Description:
    a minus b

Example:
    counter - 1


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

! a
Operand types:
    a: Boolean
Type of returned value:
    Boolean
Description:
    not a

Example:
    !true , result is false


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

side1 != side2
Operand types:
    side1: Side
    side2: Side
Type of returned value:
    Boolean
Description:
    Check if two side values are different.

Example:
    side player != west


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

a != b
Operand types:
    a: String
    b: String
Type of returned value:
    Boolean
Description:
    a not equal to b (case insensitive)

Example:
    nameOfPlayer != "John Doe"


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

obj1 != obj2
Operand types:
    obj1: Object
    obj2: Object
Type of returned value:
    Boolean
Description:
    Check if two objects are different. If any of them is objNull, true is returned.

Example:
    vehicle player != player


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

a != b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a not equal to b

Example:
    counter != 4


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

grp1 != grp2
Operand types:
    grp1: Group
    grp2: Group
Type of returned value:
    Boolean
Description:
    Check if two groups are different. If any of them is grpNull, true is returned.

Example:
    group player != group soldierOne


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

a % 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.

Example:
    4.5 % 3 , result is 1.5


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

a && b
Operand types:
    a: Boolean
    b: Boolean
Type of returned value:
    Boolean
Description:
    a and b

Example:
    alive player && alive leader player


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

a * b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Number
Description:
    a multiplied by b

Example:
    iCounter*3


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

a / b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Number
Description:
    a divided by b

Example:
    enemyStrenght/3


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

a ^ b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Number
Description:
    a raised to the power of b

Example:
    count^4


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

a || b
Operand types:
    a: Boolean
    b: Boolean
Type of returned value:
    Boolean
Description:
    a or b

Example:
    !alive player || !alive leader player


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

a + b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Number
Description:
    a plus b

Example:
    counter + 1


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

arrayA + arrayB
Operand types:
    arrayA: Array
    arrayB: Array
Type of returned value:
    Array
Description:
    arrayA and arrayB concatenated

Example:
    [0, 1, 2] + [1, 2, 3] , result is [0, 1, 2, 1, 2, 3]


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

+ a
Operand types:
    a: Number
Type of returned value:
    Number
Description:
    unary plus: returns a

Example:
    +4 , result is 4


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

+ a
Operand types:
    a: Array
Type of returned value:
    Array
Description:
    unary plus: returns copy of array

Example:
    + [0, 1, 2] , result is [0, 1, 2]


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

stringA + stringB
Operand types:
    stringA: String
    stringB: String
Type of returned value:
    String
Description:
    stringA and stringB concatenated

Example:
    "I" + " am" + " blind" , result is "I am blind"


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

a < b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a lesser than b

Example:
    counter < 4


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

a <= b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a lesser or equal than b

Example:
    player distance redCar <= 100


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

side1 == side2
Operand types:
    side1: Side
    side2: Side
Type of returned value:
    Boolean
Description:
    Check if two side values are equal.

Example:
    side player == west


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

grp1 == grp2
Operand types:
    grp1: Group
    grp2: Group
Type of returned value:
    Boolean
Description:
    Check if two groups are the same one. If any of them is grpNull, false is returned.

Example:
    group player == group soldierOne


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

obj1 == obj2
Operand types:
    obj1: Object
    obj2: Object
Type of returned value:
    Boolean
Description:
    Check if two objects are the same one. If any of them is objNull, false is returned.

Example:
    player == leader player


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

a == b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a equal to b

Example:
    counter == 4


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

a == b
Operand types:
    a: String
    b: String
Type of returned value:
    Boolean
Description:
    a equal to b (case insensitive)

Example:
    nameOfPlayer == "John Doe"


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

a > b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a greater than b

Example:
    counter > 4


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

a >= b
Operand types:
    a: Number
    b: Number
Type of returned value:
    Boolean
Description:
    a greater or equal then b

Example:
    player distance redCar < 100


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

abs x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    absolute value of x

Example:
    abs -3 , result is 3


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

accTime
Type of returned value:
    Number
Description:
    Current time acceleration factor.


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

acos x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    arccosine of x, result in degrees

Example:
    acos 0.5 , result is 60


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

unit action action
Operand types:
    unit: Object
    action: Array
Type of returned value:
    None
Description:
    Make unit to peform action. Format of action may be [type, target, param1, param2, param3]. Only type is required, target defaults to unit, param1, param2, param3 are type specific.

Example:
    soldierOne action ["eject", vehicle soldierOne]


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

unit addAction action
Operand types:
    unit: Object
    action: Array
Compatibility:
    Version 1.1 required.
Type of returned value:
    None
Description:
    Create an action. Action ID should be returned, but due to bug it is not. Action ID should be returned, but due to bug it is not. To determine action ID use following algorithm: first action added to given vehicle has ID zero, next has ID one, etc.

Example:
    player addAction ["Hello", "hello.sqs"]


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

unit addMagazine weaponName
Operand types:
    unit: Object
    weaponName: String
Type of returned value:
    None
Description:
    Add magazine to unit. Note: you may create invalid combinations with this function like 20 grenades. When doing so, application behaviour is undefined.

Example:
    player addMagazine "M16"


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

unit addMagazineCargo magazines
Operand types:
    unit: Object
    magazines: Array
Type of returned value:
    None
Description:
    Add magazines to weapon cargo space. Used for infantry weapons. Format of magazines is [magazineName, count]. For magazineName values see CfgWeapons.

Example:
    rearmTruckOne addMagazineCargo ["M16", 10]


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

unit addRating number
Operand types:
    unit: Object
    number: Number
Type of returned value:
    None
Description:
    Add number to unit rating. This is usually used to reward for completed mission objectives. Rating for killed enemis and killed friendlies is adjusted automatically. When rating is lower than zero, unit is consider "renegade" and is enemy to everyone.

Example:
    player addRating 1000


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

unit addScore score
Operand types:
    unit: Object
    score: Number
Type of returned value:
    None
Description:
    MP only: add unit score. This is shown in the "I" MP screen as total.

Example:
    player addScore 10


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

unit addWeapon weaponName
Operand types:
    unit: Object
    weaponName: String
Type of returned value:
    None
Description:
    Add weapon to unit. Note: you may create invalid combinations with this function like to rifles. When doing so, application behaviour is undefined.

Example:
    player addWeapon "AK74"


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

unit addWeaponCargo weapons
Operand types:
    unit: Object
    weapons: Array
Type of returned value:
    None
Description:
    Add weapons to weapon cargo space. Used for infantry weapons. Format of weapons is [weaponName, count]. For weaponName values see CfgWeapons.

Example:
    rearmTruckOne addWeaponCargo ["M16", 10]


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

alive obj
Operand types:
    obj: Object
Type of returned value:
    Boolean
Description:
    Check if given person, vehicle or building is not dead / destroyed.

Example:
    alive player


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

obj allowDammage allow
Operand types:
    obj: Object
    allow: Boolean
Type of returned value:
    None
Description:
    Obsolete.


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

unit allowFleeing courage
Operand types:
    unit: Object or Group
    courage: Number
Type of returned value:
    None
Description:
    Set group courage. The less courage, the sooner will group start fleeing. 0 means maximum courage, 1 means always fleeing.

Example:
    soldierOne allowFleeing 0


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

unitArray allowGetIn allow
Operand types:
    unitArray: Array
    allow: Boolean
Type of returned value:
    None
Description:
    Allow getting in vehicles to all units in the list.

Example:
    [unitOne, unitTwo] allowGetIn false


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

unit ammo magazine
Operand types:
    unit: Object
    magazine: String
Type of returned value:
    Number
Description:
    Count how many shots are left for given magazine type.

Example:
    player ammo "M16"


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

a and b
Operand types:
    a: Boolean
    b: Boolean
Type of returned value:
    Boolean
Description:
    a and b

Example:
    alive player and alive leader player


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

asin x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    arcsine of x, result in degrees

Example:
    asin 0.5 , result is 30


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

soldier assignAsCargo vehicle
Operand types:
    soldier: Object
    vehicle: Object
Type of returned value:
    None
Description:
    Assign soldier into cargo / passanger space of given vehicle.

Example:
    player assignAsCargo tankOne


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

soldier assignAsCommander vehicle
Operand types:
    soldier: Object
    vehicle: Object
Type of returned value:
    None
Description:
    Assign soldier as commander of given vehicle.

Example:
    player assignAsCommander tankOne


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

soldier assignAsDriver vehicle
Operand types:
    soldier: Object
    vehicle: Object
Type of returned value:
    None
Description:
    Assign soldier as driver of given vehicle.

Example:
    player assignAsDriver tankOne


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

soldier assignAsGunner vehicle
Operand types:
    soldier: Object
    vehicle: Object
Type of returned value:
    None
Description:
    Assign soldier as gunner of given vehicle.

Example:
    player assignAsGunner tankOne


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

atan x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    arctangens of x, result in degrees

Example:
    atan 1 , result is 45


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

x atan2 y
Operand types:
    x: Number
    y: Number
Type of returned value:
    Number
Description:
    returns the arctangens of x/y. Returned a value is in degrees, in the range -180 to +180, using the signs of both parameters to determine the quadrant of the return value.

Example:
    5 atan2 3 , result is 59.0362


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

atg x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    arctangens of x, result in degrees

Example:
    atg 1 , result is 45


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

behaviour unit
Operand types:
    unit: Object
Type of returned value:
    String
Description:
    Behaviour mode of given unit ("CARELESS","SAFE","AWARE","COMBAT","STEALTH")

Example:
    behaviour player


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

benchmark
Type of returned value:
    Number
Description:
    Value of "3D performance" in OFP preferences. This can be used to estimate computer performance. This function can be used to create mission that are able to adapt to computer peformance.

Example:
    ? benchmark>2000 : setviewdistance 2000


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

building buildingPos index
Operand types:
    building: Object
    index: Number
Type of returned value:
    Array
Description:
    Returns given indexed position in building, returned value is in format Position

Example:
    buildingPos [building, 1]


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

cadetMode
Type of returned value:
    Boolean
Description:
    True when mission is played in cadet mode, false in veteran mode.


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

camera camCommand command
Operand types:
    camera: Object
    command: String
Type of returned value:
    None
Description:
    Execute command on given camera / actor object. For all types "manual on" and "manual off" commands are recognized. For "camera" type command is one of: "inertia on", "inertia off". For seagull command is one of: "landed", "airborne".

Example:
    _camera camCommand "Manual on"


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

camera camCommit time
Operand types:
    camera: Object
    time: Number
Type of returned value:
    None
Description:
    Commit camera changes smoothly during time. Time zero means immediate change.

Example:
    _camera camCommit 5


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

camCommitted camera
Operand types:
    camera: Object
Type of returned value:
    Boolean
Description:
    Check if camera finished committing.

Example:
    camCommited _camera


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

type camCreate position
Operand types:
    type: String
    position: Array
Type of returned value:
    Object
Description:
    Create camera or actor of given type on given initial position (format Position). Type is one of "CAMERA", "SEAGULL".

Example:
    _camera = camCreate getPos player


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

camDestroy camera
Operand types:
    camera: Object
Type of returned value:
    None
Description:
    Destroy camera.


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

camera cameraEffect effect
Operand types:
    camera: Object
    effect: Array
Type of returned value:
    None
Description:
    Switch camera to given vehicle / camera. Format of effect is [name, position]. Name is one of: "Internal", "External", "Fixed", "FixedWithZoom". Position is one of: "TOP", "LEFT", "RIGHT", "FRONT", "BACK" ("BACK" is normally used).

Example:
    cameraEffect ["External", "Back"]


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

camera camSetBank bank
Operand types:
    camera: Object
    bank: Number
Type of returned value:
    None
Description:
    Set camera bank angle. Does not commit changes.

Example:
    _camera setSetBank -0.1


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

camera camSetDir direction
Operand types:
    camera: Object
    direction: Number
Type of returned value:
    None
Description:
    Set camera heading. Does not commit changes.

Example:
    _camera setSetDir 150


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

camera camSetDive dive
Operand types:
    camera: Object
    dive: Number
Type of returned value:
    None
Description:
    Set camera dive angle. Does not commit changes.

Example:
    _camera setSetDive -0.1


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

camera camSetFov fieldOfView
Operand types:
    camera: Object
    fieldOfView: Number
Type of returned value:
    None
Description:
    Set camera Field of view (zoom). Does not commit changes.

Example:
    _camera setSetFov 0.1


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

camera camSetFovRange fovRange
Operand types:
    camera: Object
    fovRange: Array
Type of returned value:
    None
Description:
    Set camera field of view range for auto zooming. Does not commit changes.

Example:
    _camera setSetFovRange [0.1, 0.5]


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

camera camSetPos position
Operand types:
    camera: Object
    position: Array
Type of returned value:
    None
Description:
    Set camera position (format Position). Does not commit changes.

Example:
    _camera setSetPos getPos player


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

camera camSetRelPos position
Operand types:
    camera: Object
    position: Array
Type of returned value:
    None
Description:
    Set camera position relative to current position of currect target (see camSetTarget). Does not commit changes.

Example:
    _camera setSetRelPos [10,5]


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

camera camSetTarget target
Operand types:
    camera: Object
    target: Object
Type of returned value:
    None
Description:
    Set camera target. Does not commit changes.

Example:
    _camera camSetTarget player


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

camera camSetTarget position
Operand types:
    camera: Object
    position: Array
Type of returned value:
    None
Description:
    Set camera target as position (format Position). Does not commit changes.

Example:
    _camera camSetTarget getPos player


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

canFire vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Boolean
Description:
    Check if given vehicle is able to fire. Does not check for ammo, only for dammage.

Example:
    canFire vehicle player


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

canMove vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Boolean
Description:
    Check if vehicle is able to move. Does not test for fuel, only dammage status is checked.

Example:
    canMove vehicle player


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

canStand soldier
Operand types:
    soldier: Object
Type of returned value:
    Boolean
Description:
    Check if soldier is able to stand up.

Example:
    canStand player


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

captive unit
Operand types:
    unit: Object
Type of returned value:
    Boolean
Description:
    Check if unit is captive. If unit is vehicle, its commander is checked.

Example:
    captive player


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

civilian
Type of returned value:
    Side
Description:
    Civilian side.


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

clearMagazineCargo unit
Operand types:
    unit: Object
Type of returned value:
    None
Description:
    Remove all magazines from the vehicle cargo space

Example:
    clearMagazineCargo jeepOne


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

clearWeaponCargo unit
Operand types:
    unit: Object
Type of returned value:
    None
Description:
    Remove all weapons from the vehicle cargo space.

Example:
    clearWeaponCargo jeepOne


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

combatMode grp
Operand types:
    grp: Object or Group
Type of returned value:
    String
Description:
    Combat mode of given unit ("BLUE","GREEN","YELLOW","RED")

Example:
    combatMode group player


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

commander vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Object
Description:
    Commander of the vehicle, if vehicle is not vehicle but person, person is returned.

Example:
    commander vehicle player


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

commandFire target
Operand types:
    target: Object
Type of returned value:
    None
Description:
    Order unit do commence fire on given target (via radio). If target is objNull, commence fire to current target (set using dotarget or commandtarget).

Example:
    soldierOne commandFire player


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

commandFollow formationLeader
Operand types:
    formationLeader: Object
Type of returned value:
    None
Description:
    Order unit follow given unit (via radio).

Example:
    soldierOne commandFollow player


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

commandMove position
Operand types:
    position: Array
Type of returned value:
    None
Description:
    Order unit to move to given position (format Position) (via radio).

Example:
    soldierOne commandMove getMarkerPos "MarkerMoveOne"


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

commandStop
Type of returned value:
    None
Description:
    Order unit to stop (via radio). Note: stop command is never finished, unit will never be ready.

Example:
    commandStop unitOne


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

commandTarget position
Operand types:
    position: Object
Type of returned value:
    None
Description:
    Order unit to move to target given target (via radio).

Example:
    soldierOne commandTarget player


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

commandWatch target
Operand types:
    target: Object
Type of returned value:
    None
Description:
    Order unit to move to watch given target (via radio).

Example:
    soldierOne commandWatch player


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

commandWatch position
Operand types:
    position: Array
Type of returned value:
    None
Description:
    Order unit to watch given position (format Position) (via radio).

Example:
    soldierOne commandWatch getMarkerPos "MarkerMoveOne"


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

cos x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    cosine of x, argument in degrees

Example:
    cos 60 , result is 0.5


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

condition count array
Operand types:
    condition: String
    array: Array
Type of returned value:
    Number
Description:
    Counts elements in the array for which given condition is true. It is calculated as follows: 1) Set Count to 0. 2) For each element of array assign element as _x and evaluate condition expression. If true, increease count.

Example:
    "_x > 2" count [0, 1, 1, 2, 3, 3] , result is 2


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

count array
Operand types:
    array: Array
Type of returned value:
    Number
Description:
    number of elements in array

Example:
    count [0,0,1,2] , result is 4


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

unit countEnemy array
Operand types:
    unit: Object
    array: Array
Type of returned value:
    Number
Description:
    Count how many units from the array are considered enemy by unit.

Example:
    player countEnemy list triggerOne


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

unit countFriendly array
Operand types:
    unit: Object
    array: Array
Type of returned value:
    Number
Description:
    Count how many units from the array are considered friendly by unit.

Example:
    player countFriendly list triggerOne


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

side countSide array
Operand types:
    side: Side
    array: Array
Type of returned value:
    Number
Description:
    Check how many vehicle belong to given side.

Example:
    west coundSide list triggerOne


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

typeName countType array
Operand types:
    typeName: String
    array: Array
Type of returned value:
    Number
Description:
    Count how many vehicles in the array are of given type. For type see CfgVehicles.

Example:
    "Tank" countType list triggerOne


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

unit countUnknown array
Operand types:
    unit: Object
    array: Array
Type of returned value:
    Number
Description:
    Count how many units from the array are considered unknown by unit.

Example:
    player countUnknown list triggerOne


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

type createUnit unitInfo
Operand types:
    type: String
    unitInfo: Array
Compatibility:
    Version 1.34 required.
Type of returned value:
    None
Description:
    Create unit of given type . Format of unitInfo is: [pos (Position),group (Group), init (String), skill (Number), rank (String)] Note: init, skill, and rank are optional, default values are "", 0.5, "PRIVATE".

Example:
    "SoldierWB" createUnit [getMarkerPos "barracks", groupAlpha]


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

type createVehicle pos
Operand types:
    type: String
    pos: Array
Compatibility:
    Version 1.34 required.
Type of returned value:
    Object
Description:
    Create empty vehicle of given type. Pos is in format Position. See CfgVehicles for possible type values.

Example:
    _tank = "M1Abrams" createVehicle getmarkerpos "tankFactory"


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

crew vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Array
Description:
    All units mounted in given vehicle. If vehicle is not vehicle, but person, list containing only person is returned.

Example:
    crew vehicle player


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

cutObj effect
Operand types:
    effect: Array
Type of returned value:
    None
Description:
    Object background - argument in format ["name","type", speed] or ["name","type"] If speed is not given, it is assumed one. Object can be defined in description.ext.

Example:
    cutObj ["TVSet", "plain"]


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

cutRsc effect
Operand types:
    effect: Array
Type of returned value:
    None
Description:
    Resource background - argument in format ["name","type", speed] or ["name","type"] If speed is not given, it is assumed one. Resource can be defined in description.ext.

Example:
    cutRsc ["binocular", "PLAIN"]


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

cutText effect
Operand types:
    effect: Array
Type of returned value:
    None
Description:
    Text background - argument in format ["text","type", speed] or ["text","type"] If speed is not given, it is assumed one. Type may be one of: "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT", "WHITE IN".

Example:
    cutText ["", "BLACK OUT"]


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

daytime
Type of returned value:
    Number
Description:
    Time in the world, in hours.


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

debugLog anything
Operand types:
    anything: Any
Type of returned value:
    None
Description:
    Dump argument type and value to debugging output.

Example:
    debugLog player


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

deg x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    convert x from radians to degrees

Example:
    deg 1 , result is 57.295


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

deleteVehicle object
Operand types:
    object: Object
Compatibility:
    Version 1.34 required.
Type of returned value:
    None
Description:
    Delete any unit or vehicle. Only vehicles inserted in editor or created during mission can be deleted. Player unit cannot be deleted.

Example:
    deleteVehicle tank


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

unit disableAI section
Operand types:
    unit: Object
    section: String
Type of returned value:
    None
Description:
    Disable parts of AI behaviour to get fine control over unit. Section is one of "TARGET" (disable watching assinged target), "AUTOTARGET" (disable independed target assigning and watching unknown targets), "MOVE" (disable movement).

Example:
    soldierOne disableAI "Move"


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

disableUserInput disable
Operand types:
    disable: Boolean
Type of returned value:
    None
Description:
    Disable user input.This is normally used in cutscenes to disable players controls.


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

obj1 distance obj2
Operand types:
    obj1: Object
    obj2: Object
Type of returned value:
    Number
Description:
    Compute distance between two objects.

Example:
    player distance leader player


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

doFire target
Operand types:
    target: Object
Type of returned value:
    None
Description:
    Order unit do commence fire on given target (silent). If target is objNull, commence fire to current target (set using dotarget or commandtarget).

Example:
    soldierOne doFire objNull


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

doFollow position
Operand types:
    position: Object
Type of returned value:
    None
Description:
    Order unit follow given unit (silent).

Example:
    soldierOne doFollow player


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

doMove position
Operand types:
    position: Array
Type of returned value:
    None
Description:
    Order unit to move to given position (format Position) (silent).

Example:
    soldierOne doMove getMarkerPos "MarkerMoveOne"


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

doStop
Type of returned value:
    None
Description:
    Order unit to stop (silent). Note: stop command is never finished, unit will never be ready.

Example:
    doStop unitOne


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

doTarget position
Operand types:
    position: Object
Type of returned value:
    None
Description:
    Order unit to move to target given target (silent).

Example:
    soldierOne doTarget player


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

doWatch target
Operand types:
    target: Object
Type of returned value:
    None
Description:
    Order unit to move to watch given target (silent).

Example:
    soldierOne doWatch player


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

doWatch position
Operand types:
    position: Array
Type of returned value:
    None
Description:
    Order unit to watch given position (format Position) (silent).

Example:
    soldierOne doWatch getMarkerPos "MarkerMoveOne"


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

driver vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Object
Description:
    Driver of the vehicle, if vehicle is not vehicle but person, person is returned.

Example:
    driver vehicle player


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

east
Type of returned value:
    Side
Description:
    East side


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

enableEndDialog
Type of returned value:
    None
Description:
    Enable dialog buttons to be shown during OnPlayerKilled script.


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

enableRadio enable
Operand types:
    enable: Boolean
Type of returned value:
    None
Description:
    Enable radio transmissions to be heard and seen on screen.


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

estimatedTimeLeft timeLeft
Operand types:
    timeLeft: Number
Compatibility:
    Version 1.34 required.
Type of returned value:
    None
Description:
    Estimated time left in the game. Using this function designer can provide "time left" estimate that is shown in "Game in progress" screen or in master browser. For missions with hard set limit adjusted via Param1 following example can be used in init.sqs.

Example:
    estimatedTimeLeft Param1


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

argument exec script
Operand types:
    argument: Any
    script: String
Type of returned value:
    None
Description:
    Execute script. Argument is passed to script as local variable _this. Script is first searched in mission folder, then in campaign scripts subfolder, last in global scripts folder.

Example:
    [player, jeepOne] exec "getIn.sqs"


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

exit
Type of returned value:
    None
Description:
    Exit script.


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

exp x
Operand types:
    x: Number
Type of returned value:
    Number
Description:
    exponential value of x

Example:
    exp 1 , result is 2.7182


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

time fadeMusic volume
Operand types:
    time: Number
    volume: Number
Type of returned value:
    None
Description:
    Smooth change in music volume. Change duration is given by time, target volume by volume. Default music volume is 0.5.

Example:
    5 fadeMusic 0


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

time fadeSound volume
Operand types:
    time: Number
    volume: Number
Type of returned value:
    None
Description:
    Smooth change in all sounds volume. Change duration is given by time, target volume by volume. Default sounds volume is 1.0.

Example:
    5 fadeSound 0.1


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

false
Type of returned value:
    Boolean
Description:
    always false


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

unit fire array
Operand types:
    unit: Object
    array: Array
Type of returned value:
    None
Description:
    Unit will fire from given weapon. Argument has format [muzzle, mode, magazine] or [muzzle, mode].

Example:
    soldierOne fire ["throw","SmokeShell","SmokeShell"]


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

unit fire weaponName
Operand types:
    unit: Object
    weaponName: String
Type of returned value:
    None
Description:
    Unit will fire from given weapon.

Example:
    soldierOne fire "HandGrenade"


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

flag unit
Operand types:
    unit: Object
Type of returned value:
    Object
Description:
    If unit has some flag, flag is returned. If not, ObjNull is returned.

Example:
    flag player


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

flagowner flag
Operand types:
    flag: Object
Type of returned value:
    Object
Description:
    When used on flag, returned value is person that has the flag. When used on anything else, ObjNull is returned.

Example:
    flagowner flagOne


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

fleeing unit
Operand types:
    unit: Object
Type of returned value:
    Boolean
Description:
    Check if unit is fleeing. Dead or empty unit returns false.

Example:
    fleeing eastReconGroup


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

helicopter flyInHeight height
Operand types:
    helicopter: Object
    height: Number
Type of returned value:
    None
Description:
    Set flying height level for helicopter. Accepter range is 50 to 1000.

Example:
    cobraOne flyInHeight 150


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

forceEnd
Type of returned value:
    None
Description:
    Force mission termination.


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

forceMap show
Operand types:
    show: Boolean
Compatibility:
    Version 1.27 required.
Type of returned value:
    None
Description:
    Force map display.

Example:
    forceMap true


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

command forEach array
Operand types:
    command: String
    array: Array
Type of returned value:
    None
Description:
    Execute given command for each element of array. It is executed as follows: 2) For each element of array assign element as _x and execute command.

Example:
    "_x setdammage 1" forEach units group player


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

format format
Operand types:
    format: Array
Type of returned value:
    String
Description:
    First argument of array is format string. Format string may contain references to following arguments in form %1, %2, etc. Each %x is replaced by corresponding argument. %x may appear in the format string in any order.

Example:
    format ["%1 - %2 - %1", 1, "text"] , result is "1 - text - 1"


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

formation grp
Operand types:
    grp: Object or Group
Type of returned value:
    String
Description:
    Formation of the group ("COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE", "LINE")

Example:
    formation group player


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

formLeader unit
Operand types:
    unit: Object
Type of returned value:
    Object
Description:
    Formation leader for given unit, for dead units ObjNull. This is often the same as groupleader, but not always.

Example:
    formLeader player != leader player


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

fuel vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Number
Description:
    Check how much fuel is left in the gas tank, in range 0 to 1.

Example:
    fuel vehicle player


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

getDammage obj
Operand types:
    obj: Object
Type of returned value:
    Number
Description:
    Object dammage in range 0 to 1

Example:
    getDammage player


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

getDir obj
Operand types:
    obj: Object
Type of returned value:
    Number
Description:
    Object heading in range 0 to 360.

Example:
    getDir player


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

getMarkerColor marker
Operand types:
    marker: String
Compatibility:
    Version 1.21 required.
Type of returned value:
    String
Description:
    Get marker color. See setMarkerColor.

Example:
    getMarkerColor "MarkerOne"


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

getMarkerPos markerName
Operand types:
    markerName: String
Type of returned value:
    Array
Description:
    Marker positon [x,z,y]

Example:
    getMarkerPos "markerOne"


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

getMarkerSize marker
Operand types:
    marker: String
Compatibility:
    Version 1.21 required.
Type of returned value:
    Array
Description:
    Get marker size. See setMarkerSize.

Example:
    getMarkerSize "MarkerOne"


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

getMarkerType marker
Operand types:
    marker: String
Compatibility:
    Version 1.21 required.
Type of returned value:
    String
Description:
    Get type of marker. See setMarkerType.

Example:
    getMarkerType "MarkerOne"


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

getPos obj
Operand types:
    obj: Object
Type of returned value:
    Array
Description:
    Object position in format Position.

Example:
    getPos player


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

getWPPos waypoint
Operand types:
    waypoint: Array
Compatibility:
    Version 1.21 required.
Type of returned value:
    Array
Description:
    Get waypoint position. Waypoint format is Waypoint.

Example:
    getWPPos [groupOne, 1]


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

unit globalChat chatText
Operand types:
    unit: Object
    chatText: String
Type of returned value:
    None
Description:
    Type text to global 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.

Example:
    soldierOne globalChat "Show this text"


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

unit globalRadio radioName
Operand types:
    unit: Object
    radioName: String
Type of returned value:
    None
Description:
    Send message to global radio channel. Message is defined in description.ext.

Example:
    soldierOne globalRadio "messageOne"


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

goto label
Operand types:
    label: String
Type of returned value:
    None
Description:
    In script only: go to given label. Note: string argument is used here. Be sure to use double quotes around label name in goto.

Example:
    goto "Loop"


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

group obj
Operand types:
    obj: Object
Type of returned value:
    Group
Description:
    Group in which given unit is assigned. For dead units GrpNull.

Example:
    group player == group leader player


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

unit groupChat chatText
Operand types:
    unit: Object
    chatText: String
Type of returned value:
    None
Description:
    Type text to group 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.

Example:
    soldierOne groupChat "Show this text"


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

unit groupRadio radioName
Operand types:
    unit: Object
    radioName: String
Type of returned value:
    None
Description:
    Send message to group radio channel. Message is defined in description.ext.

Example:
    soldierOne groupRadio "messageOne"


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

grpNull
Type of returned value:
    Group
Description:
    non-existing group. This values is not equal to anything, even to itself.

Example:
    group player == objNull , result is false


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

gunner vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Object
Description:
    Gunner of the vehicle, if vehicle is not vehicle but person, person is returned.

Example:
    gunner vehicle player


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

handsHit soldier
Operand types:
    soldier: Object
Type of returned value:
    Number
Description:
    Check if soldiers hand are hit (inaccurate aiming).

Example:
    handsHit leader player


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

unit hasWeapon weaponName
Operand types:
    unit: Object
    weaponName: String
Type of returned value:
    Boolean
Descripti