ArmA Script Function Infodump


ppEffectCommit(number, number)

Set time when old pars are replaced by last set, if 0 set immediately

C Func: 0x4dc4e0 ScriptInfo: 0x15e5c30

ppEffectCommit(scal, array)

Set time when old pars are replaced by last set, if 0 set immediately

C Func: 0x4dffd0 ScriptInfo: 0x15e5c64

ppEffectForceInNVG(bool, number)

Forces to use PP effect in NVG

C Func: 0x4dc350 ScriptInfo: 0x15e5c98

setName(name, location)

Set which global variable will contain given location.

C Func: 0x6787c0 ScriptInfo: 0x15eb6ec

setText(text, location)

Set a new text attached to given location.

C Func: 0x678870 ScriptInfo: 0x15eb720

setRectangular(rectangular, location)

Set if given location has rectangular shape.

C Func: 0x674970 ScriptInfo: 0x15eb754

attachObject(object, location)

Attach a object to given location.

C Func: 0x6768f0 ScriptInfo: 0x15eb788

setSide(side, location)

Set a new target side of given location.

C Func: 0x6749e0 ScriptInfo: 0x15eb7bc

setVariable([name, value], location)

Set variable to given value in the variable space of given location.

C Func: 0x678920 ScriptInfo: 0x15eb7f0

getVariable(name, location)

Return the value of variable in the variable space of given location.

C Func: 0x678a90 ScriptInfo: 0x15eb824

in(location, position)

Check if the position is inside area defined by the location.

C Func: 0x674a60 ScriptInfo: 0x15eb858

distance(location2, location1)

Computes the distance between two locations or positions.

C Func: 0x674b60 ScriptInfo: 0x15eb88c

distance(pos2, location1)

Computes the distance between two locations or positions.

C Func: 0x674cd0 ScriptInfo: 0x15eb8c0

distance(location2, pos1)

Computes the distance between two locations or positions.

C Func: 0x674cd0 ScriptInfo: 0x15eb8f4

distanceSqr(location2, location1)

Computes the distance square between two locations or positions.

C Func: 0x674d00 ScriptInfo: 0x15eb928

distanceSqr(pos2, location1)

Computes the distance square between two locations or positions.

C Func: 0x674e90 ScriptInfo: 0x15eb95c

distanceSqr(location2, pos1)

Computes the distance square between two locations or positions.

C Func: 0x674e90 ScriptInfo: 0x15eb990

==(location2, location1)

Checks whether two locations are the same. If either of them is null, false is returned.

C Func: 0x674ee0 ScriptInfo: 0x15eb9c4

!=(location2, location1)

Checks whether two locations are different. If either of them is null, true is returned.

C Func: 0x674f70 ScriptInfo: 0x15eb9f8

drawLocation(location, map)

Draw location in the map.

C Func: 0x677350 ScriptInfo: 0x15eba2c

createDiaryRecord([subject, text(, task(, state))] or [subject, [title, text](, task(, state))], person)

Create a new record in a log.

C Func: 0x756520 ScriptInfo: 0x15ed2a4

setTaskState(state, task)

Set a new state of the task.

C Func: 0x751f20 ScriptInfo: 0x15ed2d8

setTaskResult([state, result], task)

Set a result of the task.

C Func: 0x752140 ScriptInfo: 0x15ed30c

sendTaskResult([state, result, sentence], task)

Send a result of the task to the task sender.

C Func: 0x752290 ScriptInfo: 0x15ed340

==(task2, task1)

Checks whether two tasks are equal.

C Func: 0x74aea0 ScriptInfo: 0x15ed374

!=(task2, task1)

Checks whether two tasks are different.

C Func: 0x74af30 ScriptInfo: 0x15ed3a8

getVariable(name, task)

Return the value of variable in the variable space of given task.

C Func: 0x752bb0 ScriptInfo: 0x15ed3dc

setVariable([name, value], task)

Set variable to given value in the variable space of given task.

C Func: 0x752d00 ScriptInfo: 0x15ed410

selectDiarySubject(subject, person)

Select the subject page in a log.

C Func: 0x7518d0 ScriptInfo: 0x15ed444

createSimpleTask([name] or [name, parentTask], person)

Create a new simple task (subtask of parentTask).

C Func: 0x757ab0 ScriptInfo: 0x15ed478

setSimpleTaskDestination(position, task)

Attach a destination to the simple task. Overrides setSimpleTaskTarget.

C Func: 0x74b060 ScriptInfo: 0x15ed4ac

setSimpleTaskTarget([target,precise position], task)

Attach a target to the simple task. Overrides setSimpleTaskDestination.

C Func: 0x74b120 ScriptInfo: 0x15ed4e0

setSimpleTaskDescription([description, descriptionShort, descriptionHUD], task)

Attach descriptions to the simple task.

C Func: 0x752e20 ScriptInfo: 0x15ed514

setCurrentTask(task, person)

Set the task as a current task of the person.

C Func: 0x74afc0 ScriptInfo: 0x15ed548

diarySubjectExists(name, person)

Checks whether given subject is present in the diary of given person.

C Func: 0x751960 ScriptInfo: 0x15ed57c

removeSimpleTask(task, person)

Remove a simple task from the list of simple tasks.

C Func: 0x756b80 ScriptInfo: 0x15ed5b0

setCaptive(captive, person)

Marks the unit as captive. If the unit is a vehicle, the vehicle commander is marked instead. A captive is neutral to everyone. Note: This function does not remove the unit's weapons.

C Func: 0xaf0390 ScriptInfo: 0x1604d80

setIdentity(identity, person)

Sets the identity of a person. Identities are defined in the descripion.ext file of the mission or campaign.

C Func: 0xb25150 ScriptInfo: 0x1604db4

setName(name, person)

Sets the name of a person.

C Func: 0xb256e0 ScriptInfo: 0x1604de8

setNameSound(nameSound, person)

Sets the nameSound of a person.

C Func: 0xb257a0 ScriptInfo: 0x1604e1c

setSpeaker(speaker, person)

Sets the speaker of a person.

C Func: 0xb25860 ScriptInfo: 0x1604e50

setPitch(pitch, person)

Sets the pitch of a persons voice.

C Func: 0xaf4fc0 ScriptInfo: 0x1604e84

setFaceanimation(blink, person)

Sets the facial animation phase (eye blinking). Blink is in the range from 0 to 1.

C Func: 0xaf4840 ScriptInfo: 0x1604eb8

setFace(soldier, person)

Sets the person's face.

C Func: 0xb25950 ScriptInfo: 0x1604eec

setMimic(mimic, person)

Sets a unit's mimic. The following values are recognized: "Default", "Normal", "Smile", "Hurt", "Ironic", "Sad", "Cynic", "Surprised", "Agresive" and "Angry".

C Func: 0xb97010 ScriptInfo: 0x1604f20

setRandomLip(bool, person)

Enables/Disables random lip.

C Func: 0xaf5090 ScriptInfo: 0x1604f54

setFlagTexture(texture, flag)

Sets the flag texture. If the texture is "", the flag is not drawn.

C Func: 0xb25a20 ScriptInfo: 0x1604f88

setFlagSide(side, flag)

Sets the flag side.

C Func: 0xaf52e0 ScriptInfo: 0x1604fbc

setFlagOwner(owner, flag)

Sets the flag owner. When the owner is set to objNull, the flag is returned to the flagpole.

C Func: 0xaf5230 ScriptInfo: 0x1604ff0

buildingPos(index, building)

Returns the given indexed position in a building. The returned value is in format Position.

C Func: 0xaf54a0 ScriptInfo: 0x1605024

switchLight(mode, lamppost)

Controls the lamppost mode. Mode may be "ON", "OFF" and "AUTO". "AUTO" is default and means the lampost is only on during nighttime.

C Func: 0xb26240 ScriptInfo: 0x1605058

inflame(burn, fireplace)

Controls fireplace buring. Set to true to inflame the fireplace.

C Func: 0xaf7110 ScriptInfo: 0x160508c

addRating(number, unit)

Adds number to the unit rating. This is usually used to reward for completed mission objectives. The rating for killed enemies and killed friendlies is adjusted automatically. When the rating is lower than zero, a unit is considered "renegade" and is an enemy to everyone.

C Func: 0xaf0540 ScriptInfo: 0x16050c0

addScore(score, unit)

MP only: adds unit score. This is shown in the "I" MP screen as the total score.

C Func: 0xaf0680 ScriptInfo: 0x16050f4

addScoreSide(score, side)

MP only: adds side score. This is shown in the "I" MP screen as the total score.

C Func: 0xacbf30 ScriptInfo: 0x1605128

addLiveStats(score, unit)

Xbox Live MP only: adds score to the Xbox Live Statistics score for the given unit (or the commander unit of the given vehicle).

C Func: 0xaf0770 ScriptInfo: 0x160515c

distance(obj2 or pos2, obj1 or pos1)

Computes the distance between two objects or positions.

C Func: 0xafec20 ScriptInfo: 0x1605190

distanceSqr(obj2 or pos2, obj1 or pos1)

Computes the distance square between two objects or positions.

C Func: 0xafeda0 ScriptInfo: 0x16051c4

setPos(pos, obj)

Sets the object position. The pos array uses the Position format.

C Func: 0xaf32c0 ScriptInfo: 0x16051f8

setPosASL(pos, obj)

Sets the object position. The pos array uses the PositionASL format.

C Func: 0xaf2e60 ScriptInfo: 0x160522c

setPosATL(pos, obj)

Sets the object position. The pos array uses the PositionATL format.

C Func: 0xaf3130 ScriptInfo: 0x1605260

setPosASL2(pos, obj)

Sets the object position. The pos array uses the PositionASL format. The version of the command does not offset based on object center.

C Func: 0xacefb0 ScriptInfo: 0x1605294

setDir(heading, obj)

Sets the object heading. The accepted heading range is from 0 to 360.

C Func: 0xaf34c0 ScriptInfo: 0x16052c8

setVelocity([x, z, y], vehicle)

Sets the velocity (speed vector) of a vehicle.

C Func: 0xaf3850 ScriptInfo: 0x16052fc

setFormDir(heading, group)

Sets the formation heading. The accepted heading range is from 0 to 360. The formation is facing this direction unless an enemy is seen. When the group is moving, this value is overridden by the movement direction.

C Func: 0xaf1940 ScriptInfo: 0x1605330

setDammage(dammage, obj)

Damages / repairs the object. Damage 0 means the object is fully functional, damage 1 means it's completely destroyed / dead.

C Func: 0xaf4620 ScriptInfo: 0x1605364

setDamage(damage, object)

Damages / repairs the object. Damage 0 means the object is fully functional, damage 1 means it's completely destroyed / dead. Note: this function is identical to setDammage. It was introduced to fix a spelling error in the original function name.

C Func: 0xaf46a0 ScriptInfo: 0x1605398

allowDamage(allow, obj)

Obsolete.

C Func: 0xaf46d0 ScriptInfo: 0x16053cc

allowDammage(allow, obj)

Obsolete.

C Func: 0xaf4740 ScriptInfo: 0x1605400

flyInHeight(height, helicopter)

Sets the height level for the helicopter. The accepted range is from 50 to 1000.

C Func: 0xaf3d90 ScriptInfo: 0x1605434

setMarkerPos(pos, markerName)

Moves the marker. The format of pos is Position2D. The marker is modified on all computers in a network session.

C Func: 0xb2d510 ScriptInfo: 0x1605468

setMarkerPosLocal(pos, markerName)

Moves the marker. The format of pos is Position2D. The marker is only modified on the computer where the command is called.

C Func: 0xb2d3c0 ScriptInfo: 0x160549c

setMarkerType(markerType, markerName)

Sets the marker type. Type may be any of: "Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow" or "Empty". The marker is modified on all computers in a network session.

C Func: 0xb2d950 ScriptInfo: 0x16054d0

setMarkerTypeLocal(markerType, markerName)

Sets the marker type. Type may be any of: "Flag", "Flag1", "Dot", "Destroy", "Start", "End", "Warning", "Join", "Pickup", "Unknown", "Marker", "Arrow" or "Empty". The marker is only modified on the computer where the command is called.

C Func: 0xb2d7e0 ScriptInfo: 0x1605504

setMarkerSize(size, marker)

Sets the marker size. Size is in format [a-axis, b-axis]. The marker is modified on all computers in a network session.

C Func: 0xb2e040 ScriptInfo: 0x1605538

setMarkerSizeLocal(size, marker)

Sets the marker size. Size is in format [a-axis, b-axis]. The marker is only modified on the computer where the command is called.

C Func: 0xb2de90 ScriptInfo: 0x160556c

setMarkerColor(color, marker)

Sets the marker color. Color is one of: "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow" or "ColorWhite". The marker is modified on all computers in a network session.

C Func: 0xb2e4d0 ScriptInfo: 0x16055a0

setMarkerColorLocal(color, marker)

Sets the marker color. Color is one of: "Default", "ColorBlack", "ColorRed", "ColorRedAlpha", "ColorGreen", "ColorGreenAlpha", "ColorBlue", "ColorYellow" or "ColorWhite". The marker is only modified on the computer where the command is called.

C Func: 0xb2e360 ScriptInfo: 0x16055d4

setWPPos(position, wapoint)

Sets the waypoint position. Waypoint uses format Waypoint. Position uses format Position2D.

C Func: 0xb66570 ScriptInfo: 0x1605608

in(vehicle, soldier)

Checks whether the soldier is mounted in the vehicle.

C Func: 0xaf0920 ScriptInfo: 0x160563c

ammo(magazine, gunner or vehicle)

Counts how many shots the unit has left for the given magazine type.

C Func: 0xb21210 ScriptInfo: 0x1605670

setAmmo([weapon, count], unit)

Set how many shots the unit has left for the loaded magazine in the given weapon type.

C Func: 0xb214b0 ScriptInfo: 0x16056a4

hasWeapon(weaponName, unit)

Checks whether the unit has the given weapon.

C Func: 0xb21810 ScriptInfo: 0x16056d8

addWeaponGlobal(weaponName, unit)

Adds the weapon to the unit. Note: you may create invalid combinations by using this function, for example by adding two rifles. When doing so, application behaviour is undefined.

C Func: 0xb5b680 ScriptInfo: 0x160570c

removeWeaponGlobal(weaponName, unit)

Removes the weapon from the unit. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb5b7c0 ScriptInfo: 0x1605740

addWeapon(weaponName, unit)

Adds the weapon to the unit. Note: you may create invalid combinations by using this function, for example by adding two rifles. When doing so, application behaviour is undefined.

C Func: 0xb5b200 ScriptInfo: 0x1605774

removeWeapon(weaponName, unit)

Removes the weapon from the unit. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb5b4c0 ScriptInfo: 0x16057a8

addMagazineGlobal(magazineName, unit)

Adds a magazine to the unit. Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined.

C Func: 0xb95db0 ScriptInfo: 0x16057dc

addMagazine(magazineName, unit)

Adds a magazine to the unit. Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined.

C Func: 0xb95c20 ScriptInfo: 0x1605810

addMagazine([magazineName, ammo count], unit)

Adds a magazine to the unit and sets ammo count. Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined.

C Func: 0xb95fc0 ScriptInfo: 0x1605844

addMagazines([magazineName, count], unit)

Adds magazines to the unit.

C Func: 0xb96160 ScriptInfo: 0x1605878

addMagazineTurret([weaponName, turret path], transport)

Adds a magazine to the turret. Use turret path [-1] for driver's turret. Note: you may create invalid combinations by using this function, for example by adding 20 grenades. When doing so, application behaviour is undefined.

C Func: 0xb96320 ScriptInfo: 0x16058ac

removeMagazine(weaponName, unit)

Removes the magazine from the unit. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb96570 ScriptInfo: 0x16058e0

removeMagazineGlobal(weaponName, unit)

Removes the magazine from the unit. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb966e0 ScriptInfo: 0x1605914

removeMagazineTurret([weaponName, turret path], transport)

Removes the magazine from the turret. Use turret path [-1] for driver's turret. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb969c0 ScriptInfo: 0x1605948

removeMagazines(weaponName, unit)

Removes all magazines of the given type from the unit. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb96c00 ScriptInfo: 0x160597c

removeMagazinesTurret([weaponName, turret path], transport)

Removes all magazines of the given type from the unit. Use turret path [-1] for driver's turret. Note: you may create invalid combinations by using this function. When doing so, application behaviour is undefined.

C Func: 0xb96d30 ScriptInfo: 0x16059b0

addBackpack(backpackName, unit)

Adds the backpack to the unit. Note: unit with secondary or two-slot weapon cannot have backpack.

C Func: 0xb21970 ScriptInfo: 0x16059e4

selectWeapon(weapon, unit)

Selects the given weapon. For weapon values see CfgWeapons.

C Func: 0xb1fcf0 ScriptInfo: 0x1605a18

fire(weaponName, unit)

The unit will fire from the given weapon.

C Func: 0xb21b80 ScriptInfo: 0x1605a4c

fire(array, unit)

The unit will fire from the given weapon. The array has format [muzzle, mode, magazine] or [muzzle, mode].

C Func: 0xb21c80 ScriptInfo: 0x1605a80

land(mode, helicopter)

Forces a helicopter landing. The landing mode may be "LAND" (a complete stop), "GET IN" (hovering very low for another unit to get in), "GET OUT" (hovering low for another unit to get out) or "NONE" (cancel landing).

C Func: 0xb2c5c0 ScriptInfo: 0x1605ab4

knowsAbout(target, unit)

Checks whether the unit knows about the target (and how much). If the unit is a vehicle, the vehicle commander is considered instead.

C Func: 0xaf2280 ScriptInfo: 0x1605ae8

say(speechName, unit or [unit, target])

The unit will play the given sound. If the unit is a person, it will also pefrorm the corresponding lipsync effect. The sound is defined in the description.ext file. If target is given, titles will be written to the conversation history.

C Func: 0xb5cf10 ScriptInfo: 0x1605b1c

say(speechName, unit or [unit, target])

The format of speechName is [sound, maxTitlesDistance] or [sound, maxTitlesDistance, speed]. The unit will play the given sound. If the unit is a person, it will also pefrorm the corresponding lipsync effect. If the camera is not withing the given range, the title is not shown. The sound is defined in the description.ext file. If target is given, titles will be written to the conversation history.

C Func: 0xb5cf10 ScriptInfo: 0x1605b50

globalRadio(radioName, unit)

Sends the message to the global radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb273c0 ScriptInfo: 0x1605b84

sideRadio(radioName, unit)

Sends the message to the side radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb27400 ScriptInfo: 0x1605bb8

commandRadio(radioName, unit)

Sends the message to the command radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb275e0 ScriptInfo: 0x1605bec

groupRadio(radioName, unit)

Sends the message to the group radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb277c0 ScriptInfo: 0x1605c20

vehicleRadio(radioName, unit)

Sends the message to the vehicle radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb27810 ScriptInfo: 0x1605c54

directSay(radioName, unit)

Sends the message to the direct channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb27a30 ScriptInfo: 0x1605c88

globalChat(chatText, unit)

Types text to the 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 all of them.

C Func: 0xb27cc0 ScriptInfo: 0x1605cbc

sideChat(chatText, unit)

Types text to the 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 all of them.

C Func: 0xb27d50 ScriptInfo: 0x1605cf0

commandChat(chatText, unit)

Types text to the command 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 all of them.

C Func: 0xb27f90 ScriptInfo: 0x1605d24

groupChat(chatText, unit)

Types text to the 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 all of them.

C Func: 0xb281d0 ScriptInfo: 0x1605d58

vehicleChat(chatText, unit)

Types text to the 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 all of them.

C Func: 0xb28260 ScriptInfo: 0x1605d8c

useAudioTimeForMoves(toggle, soldier)

Switch between elapsed gamet time and audio time being used as animation timer. Used for audio/animation synchronization.

C Func: 0xaf8280 ScriptInfo: 0x1605dc0

playMove(moveName, soldier)

When used on a person, a smooth transition to the given move will be initiated.

C Func: 0xb974c0 ScriptInfo: 0x1605df4

switchMove(moveName, soldier)

When used on a person, the given move is started immediately (there is no transition). Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.

C Func: 0xb97590 ScriptInfo: 0x1605e28

playAction(action, soldier)

When used on a person, a smooth transition to the given action will be initiated.

C Func: 0xb28330 ScriptInfo: 0x1605e5c

switchAction(action, soldier)

When used on a person, the given action is started immediately (there is no transition). Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.

C Func: 0xb28400 ScriptInfo: 0x1605e90

playGesture(moveName, soldier)

When used on a person, a smooth transition to the given move will be initiated.

C Func: 0xb97730 ScriptInfo: 0x1605ec4

switchGesture(moveName, soldier)

When used on a person, the given move is started immediately (there is no transition).

C Func: 0xb97800 ScriptInfo: 0x1605ef8

setRadioMsg(text, index)

Sets the radio message (0, 0, map radio) to the given text. Use "NULL" to disable the radio slot.

C Func: 0xb2bc40 ScriptInfo: 0x1605f2c

==(obj2, obj1)

Checks whether two objects are the same. If either of them is objNull, false is returned.

C Func: 0xaf1390 ScriptInfo: 0x1605f60

!=(obj2, obj1)

Checks whether two objects are different. If either of them is objNull, true is returned.

C Func: 0xaf13e0 ScriptInfo: 0x1605f94

==(grp2, grp1)

Checks whether two groups are the same. If either of them is grpNull, false is returned.

C Func: 0xaf1430 ScriptInfo: 0x1605fc8

!=(grp2, grp1)

Checks whether two groups are different. If either of them is grpNull, true is returned.

C Func: 0xaf1480 ScriptInfo: 0x1605ffc

==(side2, side1)

Checks whether two side values are equal.

C Func: 0xace800 ScriptInfo: 0x1606030

!=(side2, side1)

Checks whether two side values are different.

C Func: 0xace790 ScriptInfo: 0x1606064

==(text2, text1)

Checks whether two structured text values are equal.

C Func: 0xad17f0 ScriptInfo: 0x1606098

!=(text2, text1)

Checks whether two structured text values are different.

C Func: 0xad1fc0 ScriptInfo: 0x16060cc

countEnemy(array, unit)

Counts how many units in the array are considered enemy by the given unit.

C Func: 0xaf1bf0 ScriptInfo: 0x1606100

countFriendly(array, unit)

Counts how many units in the array are considered friendly by the given unit.

C Func: 0xaf1c50 ScriptInfo: 0x1606134

countUnknown(array, unit)

Counts how many units in the array are considered unknown to the given unit.

C Func: 0xaf1cb0 ScriptInfo: 0x1606168

countType(array, typeName)

Counts how many vehicles in the array are of the given type. For types see CfgVehicles.

C Func: 0xb234c0 ScriptInfo: 0x160619c

countSide(array, side)

Checks how many vehicles belong to the given side.

C Func: 0xaf1b80 ScriptInfo: 0x16061d0

allowGetIn(allow, unitArray)

Allows the getting in of vehicles of all units in the list.

C Func: 0xaf1d10 ScriptInfo: 0x1606204

orderGetIn(order, unitArray)

Forces all units in the list to get in their assigned vehicle.

C Func: 0xaf1db0 ScriptInfo: 0x1606238

join(group, unitArray)

Joins all units in the array to the given group. Note: the total number of group members cannot exceed 12. Note: This function is unsupported in MP in version 1.33 and before.

C Func: 0xb89480 ScriptInfo: 0x160626c

move(pos, group)

Creates a move waypoint on the given position (format Position) and makes it the currently active group waypoint.

C Func: 0xaf2170 ScriptInfo: 0x16062a0

setGroupid([nameFomat, nameParam1, ...], group)

Sets the group identity. nameFormat contains strings "%CLASS_NAME" where CLASS_NAME is name of class in CfgWorlds, parameters are names of subclasses of CLASS_NAME with the description of the name subpart.

C Func: 0xb89710 ScriptInfo: 0x16062d4

setBehaviour(behaviour, group)

Sets the group behaviour mode. Behaviour is one of: "CARELESS", "SAFE", "AWARE", "COMBAT" or "STEALTH".

C Func: 0xb22890 ScriptInfo: 0x1606308

setCombatMode(mode, group)

Sets the group's combat mode (engagement rules). Mode can be one of: "BLUE" (Never fire), "GREEN" (Hold fire - defend only), "WHITE" (Hold fire, engage at will), "YELLOW" (Fire at will) or "RED" (Fire at will, engage at will).

C Func: 0xb885c0 ScriptInfo: 0x160633c

setFormation(formation, group)

Sets the group formation. Formation is one of: "COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE" or "LINE".

C Func: 0xb22f20 ScriptInfo: 0x1606370

setSpeedMode(mode, group)

Sets the group speed mode. Mode may be one of: "LIMITED" (half speed), "NORMAL" (full speed, maintain formation) or "FULL" (do not wait for any other units in the formation).

C Func: 0xb23070 ScriptInfo: 0x16063a4

setUnitPos(mode, unit)

Sets the unit position rules. Mode may be one of: "DOWN", "UP" or "AUTO".

C Func: 0xb22aa0 ScriptInfo: 0x16063d8

enableAIFeature(enabled, feature)

Enable/disable given AI feature. Feature may be one of: "AwareFormationSoft", "CombatFormationSoft".

C Func: 0xb22e40 ScriptInfo: 0x160640c

lockWp(lockWP, group)

Disables switching to the next waypoint (the current waypoint will never complete while lockWp is used). This is sometimes used during cut-scenes.

C Func: 0xaf18a0 ScriptInfo: 0x1606440

lock(lock, vehicle)

Locks the vehicle (disables mounting / dismounting) for the player.

C Func: 0xaf9a60 ScriptInfo: 0x1606474

lock(lock, vehicle)

Locks the vehicle (disables mounting / dismounting) for the player. 0 - Unlocked, 1 - Default, 2 - Locked, 3 - Locked for player

C Func: 0xaf9a60 ScriptInfo: 0x16064a8

stop(stop, unit)

Stops an AI unit. This function is obsolete. Use disableAI to get better control over stopping a unit.

C Func: 0xaf9b70 ScriptInfo: 0x16064dc

disableAI(section, unit)

Disables parts of the AI behaviour to get more control over a unit. Section is one of "TARGET" (disables watching assigned targets), "AUTOTARGET" (disables independed target assigning and watching of unknown targets) or "MOVE" (disables movement).

C Func: 0xb2c3c0 ScriptInfo: 0x1606510

enableAI(section, unit)

Enables parts of the AI behaviour. Section is one of "TARGET" (enables watching assigned targets), "AUTOTARGET" (enables independed target assigning and watching of unknown targets) or "MOVE" (enables movement).

C Func: 0xb2c4c0 ScriptInfo: 0x1606544

assignAsCommander(vehicle, soldier)

Assigns the soldier as commander of the given vehicle.

C Func: 0xaf9ec0 ScriptInfo: 0x1606578

assignAsDriver(vehicle, soldier)

Assigns the soldier as driver of the given vehicle.

C Func: 0xaf9f30 ScriptInfo: 0x16065ac

assignAsGunner(vehicle, soldier)

Assigns the soldier as gunner of the given vehicle.

C Func: 0xaf9fa0 ScriptInfo: 0x16065e0

assignAsTurret([vehicle, [turretPath]], unit)

Assigns the soldier to turret.

C Func: 0xb60270 ScriptInfo: 0x1606614

assignAsCargo(vehicle, soldier)

Assigns the soldier to the cargo / passenger space of the given vehicle.

C Func: 0xb60380 ScriptInfo: 0x1606648

assignAsCargoIndex([vehicle, index], soldier)

Assigns the character to a specific cargo / passenger index of the given vehicle.

C Func: 0xb604f0 ScriptInfo: 0x160667c

leaveVehicle(vehicle, group)

Ceases the using of the vehicle in the group. It unassigns all grouped units from the vehicle.

C Func: 0xafa060 ScriptInfo: 0x16066b0

leaveVehicle(vehicle, group)

Ceases the using of the vehicle in the group. It unassigns all grouped units from the vehicle.

C Func: 0xafa060 ScriptInfo: 0x16066e4

moveInCommander(vehicle, soldier)

Moves the soldier into the vehicle's commander position. (Immediatetely, without animation).

C Func: 0xafa170 ScriptInfo: 0x1606718

moveInDriver(vehicle, soldier)

Moves the soldier into the vehicle's driver position. (Immediately, without animation).

C Func: 0xafa2e0 ScriptInfo: 0x160674c

moveInGunner(vehicle, soldier)

Moves the soldier into the vehicle's gunner position. (Immediately, without animation).

C Func: 0xafa490 ScriptInfo: 0x1606780

moveInCargo(vehicle, soldier)

Moves the soldier into the vehicle's cargo position. (Immediately, without animation).

C Func: 0xafa640 ScriptInfo: 0x16067b4

moveInCargo([vehicle, CargoIndex], soldier)

Moves the soldier into a vehicle's specified cargo position. (Immediately, without animation).

C Func: 0xafa8e0 ScriptInfo: 0x16067e8

moveInTurret([vehicle, turret path], soldier)

Moves the soldier into the vehicle's turret. (Immediately, without animation).

C Func: 0xb60690 ScriptInfo: 0x160681c

weaponAccessories(weapon, vehicle)

Get array with all items linked to a given weapon.

C Func: 0xb5a4e0 ScriptInfo: 0x1606850

setVelocityTransformation([position1, position2, velocity1, velocity2, direction1, direction2, up1, up2, time], soldier)

interpolates and sets vectors. Time has to be from <0,1>.

C Func: 0xaf3e90 ScriptInfo: 0x1606884

allowFleeing(courage, unit)

Sets the group courage. The less courage, the sooner the group will start fleeing. 0 means maximum courage, while 1 means always fleeing.

C Func: 0xafad60 ScriptInfo: 0x16068b8

objStatus(status, objective)

Sets the briefing objective status. Status may be one of: "ACTIVE", "FAILED", "DONE" or "HIDDEN".

C Func: 0xb2b7d0 ScriptInfo: 0x16068ec

exec(script, argument)

Executes a script. Argument is passed to the script as local variable _this. The script is first searched in the mission folder, then in the campaign scripts subfolder and finally in the global scripts folder.

C Func: 0xb3ca30 ScriptInfo: 0x1606920

spawn(script, arguments)

Executes a script. Argument is passed to the script as local variable _this.

C Func: 0xae0b50 ScriptInfo: 0x1606954

setOvercast(overcast, time)

Changes the overcast level to the given value smoothly during the given time (in seconds). A time of zero means an immediate change. An overcast level of zero means clear (sunny) weather and with an overcast level of one, storms and showers are very likely.

C Func: 0xacd5c0 ScriptInfo: 0x1606988

setFog(fog, time)

Changes the fog value smoothly during the given time (in seconds). A time of zero means there will be an immediate change. Fog can be either a single value indicating fog density or an array [fog, decay, base]: fog - indicates fog density, 0 - no fog, 1 - maximum fog; decay - indicates density falloff with altitude; base - indicates altitude at which fog will have its nominal density.

C Func: 0xacd6d0 ScriptInfo: 0x16069bc

setWindForce(wind, time)

Set max. wind overall wind changes in time. A time of zero means there will be an immediate change. A wind level of zero is minimal changes and a wind level of one means that wind can chage rapidly and max. wind speed i 35m/s.

C Func: 0xacd930 ScriptInfo: 0x16069f0

setRain(rainDensity, time)

Changes the rain density smoothly during the given time (in seconds). A time of zero means an immediate change. A rain level of zero is no rain and a rain level of one is maximum rain. Rain is not possible when overcast is smaller than 0.7.

C Func: 0xacd650 ScriptInfo: 0x1606a24

setFuel(amount, vehicle)

Sets the fuel amount. A fuel level of one is a full gas tank.

C Func: 0xaef2e0 ScriptInfo: 0x1606a58

setFuelCargo(amount, vehicle)

Sets the fuel amount in the cargo space of a refuelling vehicle. A fuel level of one is a full gas tank.

C Func: 0xaef430 ScriptInfo: 0x1606a8c

setRepairCargo(amount, vehicle)

Sets the amount or repair resources in the cargo space of a repair vehicle. An amount of one is a full cargo space.

C Func: 0xaef500 ScriptInfo: 0x1606ac0

setAmmoCargo(ammoCargo, vehicle)

Sets the amount of ammo resources in the cargo space of a repair vehicle. Ammo resources are used to resupply vehicles; soldiers use individual magazines instead. An amount of one indicates a full cargo.

C Func: 0xaef5d0 ScriptInfo: 0x1606af4

addWeaponCargo(weapons, unit)

Adds weapons to the weapon cargo space. This is used for infantry weapons. The format of weapons is [weaponName, count]. For weaponName values see CfgWeapons.

C Func: 0xb58b70 ScriptInfo: 0x1606b28

linkItem(item, unit)

Create and assign new item to the soldier's body.(NVG, radio, ...)

C Func: 0xb1de60 ScriptInfo: 0x1606b5c

assignItem(item, unit)

Assigns existing item from inventory (uniform, vest, backpack) to a correct slot.

C Func: 0xb85780 ScriptInfo: 0x1606b90

unassignItem(item, unit)

Unassign existing item to the soldier's containers.

C Func: 0xb59070 ScriptInfo: 0x1606bc4

unlinkItem(item, unit)

Unlink and remove existing linked item from soldier

C Func: 0xb590a0 ScriptInfo: 0x1606bf8

addItem(item, unit)

Create new item and store it to to the inventory.

C Func: 0xb59fa0 ScriptInfo: 0x1606c2c

addItemToUniform(item, unit)

Create new item and store it to soldier's uniform

C Func: 0xb59fd0 ScriptInfo: 0x1606c60

addItemToVest(item, unit)

Create new item and store it to soldier's vest

C Func: 0xb5a000 ScriptInfo: 0x1606c94

addItemToBackpack(item, unit)

Create new item and store it to soldier's backpack

C Func: 0xb5a030 ScriptInfo: 0x1606cc8

canAdd(item, unit)

Check if given object can be stored into target entity

C Func: 0xb1f690 ScriptInfo: 0x1606cfc

canAddItemToUniform(item, unit)

Check if given object can be stored into soldier's uniform

C Func: 0xb1f6c0 ScriptInfo: 0x1606d30

canAddItemToVest(item, unit)

Check if given object can be stored into soldier's uniform

C Func: 0xb1f6f0 ScriptInfo: 0x1606d64

canAddItemToBackpack(item, unit)

Check if given object can be stored into soldier's uniform

C Func: 0xb1f720 ScriptInfo: 0x1606d98

removeItem(item, unit)

Remove item from the inventory.

C Func: 0xb59b30 ScriptInfo: 0x1606dcc

removeItemFromUniform(item, unit)

Remove item from soldier's uniform.

C Func: 0xb59b60 ScriptInfo: 0x1606e00

removeItemFromVest(item, unit)

Remove item from soldier's uniform.

C Func: 0xb59b90 ScriptInfo: 0x1606e34

removeItemFromBackpack(item, unit)

Remove item from soldier's uniform.

C Func: 0xb59bc0 ScriptInfo: 0x1606e68

removeItems(item, unit)

Remove all items with given template from the inventory.

C Func: 0xb59bf0 ScriptInfo: 0x1606e9c

addVest(type, unit)

Create a new vest and try to link it into vest slot.

C Func: 0xb1e790 ScriptInfo: 0x1606ed0

isFlashlightOn(weapon, unit)

Return if there is a linked and enabled flashlight on a given weapon.

C Func: 0xb1e760 ScriptInfo: 0x1606f04

isIRLaserOn(weapon, unit)

C Func: 0xb1e730 ScriptInfo: 0x1606f38

addUniform(type, unit)

Create a new uniform and try to link it into uniform slot.

C Func: 0xb1e7c0 ScriptInfo: 0x1606f6c

addHeadgear(weapons, unit)

Create a new item and try to link them into headgear slot

C Func: 0xb1e7f0 ScriptInfo: 0x1606fa0

addGoggles(type, unit)

Create a new item and try to link them into goggles slot.

C Func: 0xb1e820 ScriptInfo: 0x1606fd4

addPrimaryWeaponItem(item, unit)

Adds item to the weapon cargo space of primary weapon.

C Func: 0xb7c9f0 ScriptInfo: 0x1607008

addSecondaryWeaponItem(item, unit)

Adds item to the weapon cargo space of secondary weapon.

C Func: 0xb7ca20 ScriptInfo: 0x160703c

addHandgunItem(item, unit)

Adds item to the weapon cargo space. This is used for infantry weapons.

C Func: 0xb7ca50 ScriptInfo: 0x1607070

removePrimaryWeaponItem(item, unit)

Removes given item from the weapon cargo space.

C Func: 0xb59740 ScriptInfo: 0x16070a4

removeHandgunItem(item, unit)

Removes given item from the weapon cargo space.

C Func: 0xb59770 ScriptInfo: 0x16070d8

addMagazineCargo(magazines, unit)

Adds magazines to the weapon cargo space. This is used for infantry weapons. The format of magazines is [magazineName, count]. For magazineName values see CfgWeapons.

C Func: 0xb597a0 ScriptInfo: 0x160710c

addItemCargo([item, count], unit)

Create new items and store them to the weapon holder.

C Func: 0xb1e850 ScriptInfo: 0x1607140

addBackpackCargo(backpacks, unit)

Adds bacpacks to the cargo space. The format of backpacks is [backpacksName, count]. For backpacksName values see CfgWeapons.

C Func: 0xb1f750 ScriptInfo: 0x1607174

addWeaponCargoGlobal(weapons, unit)

Adds weapons to the weapon cargo space. This is used for infantry weapons. MP synchronized. The format of weapons is [weaponName, count]. For weaponName values see CfgWeapons.

C Func: 0xb5a060 ScriptInfo: 0x16071a8

addMagazineCargoGlobal(magazines, unit)

Adds magazines to the weapon cargo space. This is used for infantry weapons. MP synchronized. The format of magazines is [magazineName, count]. For magazineName values see CfgWeapons.

C Func: 0xb5a1f0 ScriptInfo: 0x16071dc

addBackpackCargoGlobal(backpacks, unit)

Adds bacpacks to the cargo space. MP synchronized. The format of backpacks is [backpacksName, count]. For backpacksName values see CfgWeapons.

C Func: 0xb1fb00 ScriptInfo: 0x1607210

addItemCargoGlobal([item, count], unit)

Create new items and store them to the weapon holder.

C Func: 0xb1f940 ScriptInfo: 0x1607244

createVehicle(pos, type)

Creates an empty vehicle of the given type. Pos is in format Position. See CfgVehicles for possible type values.

C Func: 0xb7efe0 ScriptInfo: 0x1607278

createSite(pos, type)

Creates a new site.

C Func: 0xb2ccd0 ScriptInfo: 0x16072ac

createUnit(unitInfo, type)

Creates a unit of the given type. The format of unitInfo is: [pos (Position), group (Group), init (String), skill (Number), rank (String)]. Note: init, skill and rank are optional. Their default values are "", 0.5, "PRIVATE".

C Func: 0xb618c0 ScriptInfo: 0x16072e0

preloadObject(object, distance)

Preload all data for given object.

C Func: 0xb60ad0 ScriptInfo: 0x1607314

fadeMusic(volume, time)

Causes a smooth change in the music volume. The change duration is given by time, the target volume by volume. The default music volume is 0.5.

C Func: 0xacc8c0 ScriptInfo: 0x1607348

fadeSound(volume, time)

Causes a smooth change in the master volume. The change duration is given by time, the target volume by volume. The default master volume is 1.0.

C Func: 0xacc960 ScriptInfo: 0x160737c

fadeRadio(volume, time)

Causes a smooth change in the radio volume. The change duration is given by time, the target volume by volume. The default radio volume is 1.0.

C Func: 0xacca60 ScriptInfo: 0x16073b0

cameraEffect(effect, camera)

Switches the camera to the given vehicle / camera. The format of effect is [name, position]. Name is one of: "Internal", "External", "Fixed" or "FixedWithZoom". Position is one of: "TOP", "LEFT", "RIGHT", "FRONT" or "BACK" ("BACK" is normally used).

C Func: 0xb28de0 ScriptInfo: 0x16073e4

camCreate(position, type)

Creates a camera or an actor of the given type on the given initial position (format Position). Its type is one of "CAMERA" or "SEAGULL".

C Func: 0xb29170 ScriptInfo: 0x1607418

camSetPos(position, camera)

Sets the camera position (format Position). It does not automatically commit changes.

C Func: 0xaf8560 ScriptInfo: 0x160744c

camSetRelPos(position, camera)

Sets the camera position relative to the current position of the currect target (see camSetTarget). It does not automatically commit changes.

C Func: 0xaf8830 ScriptInfo: 0x1607480

camSetFov(fieldOfView, camera)

Sets the camera field of view (zoom). It does not automatically commit changes.

C Func: 0xaf88c0 ScriptInfo: 0x16074b4

camSetFocus(focusRange, camera)

focusRange is in format [distance,blur]. Sets the camera focus blur. It does not automatically commit changes.

C Func: 0xaf8950 ScriptInfo: 0x16074e8

camSetFovRange(fovRange, camera)

Sets the camera field of view range for auto zooming. It does not automatically commit changes.

C Func: 0xacefb0 ScriptInfo: 0x160751c

camSetDive(dive, camera)

Sets the camera dive angle. It does not automatically commit changes.

C Func: 0xaf8a90 ScriptInfo: 0x1607550

camSetBank(bank, camera)

Sets the camera bank angle. It does not automatically commit changes.

C Func: 0xaf8a90 ScriptInfo: 0x1607584

camSetDir(direction, camera)

Sets the camera heading. It does not automatically commit changes.

C Func: 0xaf8ac0 ScriptInfo: 0x16075b8

camCommit(time, camera)

Commits the camera changes smoothly over time. A time of zero results in an immediate change.

C Func: 0xaf8dd0 ScriptInfo: 0x16075ec

camSetTarget(target, camera)

Sets the camera target. It does not automatically commit changes.

C Func: 0xaf8bd0 ScriptInfo: 0x1607620

camSetTarget(position, camera)

Sets the camera target to a position (format Position). It does not automatically commit changes.

C Func: 0xaf8d10 ScriptInfo: 0x1607654

camPreparePos(position, camera)

Prepares the camera position (format Position). See also camPreload and camCommitPrepared.

C Func: 0xaf8e40 ScriptInfo: 0x1607688

camPrepareRelPos(position, camera)

Prepares the camera position relative to the current position of the currect target (see camPrepareTarget). See also camPreload and camCommitPrepared.

C Func: 0xaf8f00 ScriptInfo: 0x16076bc

camPrepareFov(fieldOfView, camera)

Prepares the camera field of view (zoom). See also camPreload and camCommitPrepared.

C Func: 0xaf8f90 ScriptInfo: 0x16076f0

camPrepareFocus(focusRange, camera)

focusRange is in format [distance,blur]. Prepares the camera focus blur. See also camPreload and camCommitPrepared.

C Func: 0xaf9000 ScriptInfo: 0x1607724

camPrepareFovRange(fovRange, camera)

Prepares the camera field of view range for auto zooming. See also camPreload and camCommitPrepared.

C Func: 0xacefb0 ScriptInfo: 0x1607758

camPrepareDive(dive, camera)

Prepares the camera dive angle. See also camPreload and camCommitPrepared.

C Func: 0xaf8a90 ScriptInfo: 0x160778c

camPrepareBank(bank, camera)

Prepares the camera bank angle. See also camPreload and camCommitPrepared.

C Func: 0xaf8a90 ScriptInfo: 0x16077c0

camPrepareDir(direction, camera)

Prepares the camera heading. See also camPreload and camCommitPrepared.

C Func: 0xaf8a90 ScriptInfo: 0x16077f4

camCommitPrepared(time, camera)

Commits the prepared camera changes smoothly over time. A time of zero results in an immediate change.

C Func: 0xaf9260 ScriptInfo: 0x1607828

camPreload(time, camera)

Preload the scene for he prepared camera. Time gives timeout, zero means no (infinite) timeout.

C Func: 0xaf92d0 ScriptInfo: 0x160785c

camPrepareTarget(target, camera)

Prepares the camera target. See also camPreload and camCommitPrepared.

C Func: 0xaf9140 ScriptInfo: 0x1607890

camPrepareTarget(position, camera)

Prepares the camera target to a position (format Position). See also camPreload and camCommitPrepared.

C Func: 0xaf91a0 ScriptInfo: 0x16078c4

camCommand(command, camera)

Executes a command on the given camera / actor object. The "manual on" and "manual off" commands are recognized for all types. For the "camera" type, the following commands can be used: "inertia on" and "inertia off". For the "seagull" type it's one of: "landed" and "airborne".

C Func: 0xb29450 ScriptInfo: 0x16078f8

camConstuctionSetParams([[x,y,z],radius, max above land], camera)

Sets construction camera parameters.

C Func: 0xaf8620 ScriptInfo: 0x160792c

switchCamera(mode, unit)

Switches the camera to the given vehicle / camera. Mode is one of: "INTERNAL" (1st person), "GUNNER" (optics / sights), "EXTERNAL" (3rd person) or "GROUP" (group).

C Func: 0xb294a0 ScriptInfo: 0x1607960

commandMove(position, unit)

Orders the unit to move to the given position (format Position) (via the radio).

C Func: 0xb89db0 ScriptInfo: 0x1607994

doMove(position, unit)

Orders the unit to move to the given position (format Position) (silently).

C Func: 0xb89d80 ScriptInfo: 0x16079c8

commandWatch(position, unit)

Orders the unit to watch the given position (format Position) (via the radio).

C Func: 0xb8ad30 ScriptInfo: 0x16079fc

doWatch(position, unit)

Orders the unit to watch the given position (format Position) (silently).

C Func: 0xb8ad00 ScriptInfo: 0x1607a30

commandWatch(target, unit)

Orders the unit to watch the given target (via the radio).

C Func: 0xb8ad30 ScriptInfo: 0x1607a64

doWatch(target, unit)

Orders the unit to watch the given target (silently).

C Func: 0xb8ad00 ScriptInfo: 0x1607a98

commandTarget(position, unit)

Orders the unit to target the given target (via the radio).

C Func: 0xb8ae90 ScriptInfo: 0x1607acc

doTarget(position, unit)

Orders the unit to target the given target (silently).

C Func: 0xb8ae60 ScriptInfo: 0x1607b00

commandFollow(formationLeader, unit)

Orders a unit to follow the given unit (via the radio).

C Func: 0xb8aa10 ScriptInfo: 0x1607b34

doFollow(position, unit)

Orders a unit to follow the given unit (silently).

C Func: 0xb8a9e0 ScriptInfo: 0x1607b68

commandFire(target, unit)

Orders a unit to commence firing on the given target (via the radio). If the target is objNull, the unit is ordered to commence firing on its current target (set using doTarget or commandTarget).

C Func: 0xb89f00 ScriptInfo: 0x1607b9c

doFire(target, unit)

Orders a unit to commence firing on the given target (silently). If the target is objNull, the unit is ordered to commence firing on its current target (set using doTarget or commandTarget).

C Func: 0xb89ed0 ScriptInfo: 0x1607bd0

commandArtilleryFire([position, type, rounds], unit)

Orders a unit to reaload defined magazine commence fire burst on the given position (via the radio).

C Func: 0xb8a510 ScriptInfo: 0x1607c04

doArtilleryFire([position, type, rounds], unit)

Orders a unit to reaload defined magazine commence fire burst on the given position (silently).

C Func: 0xb8a4e0 ScriptInfo: 0x1607c38

action(action, unit)

Makes the unit peform an action. The format of action can be [type, target, param1, param2, param3]. Only type is required, target defaults to unit and param1, param2, param3 are type specific.

C Func: 0xb241a0 ScriptInfo: 0x1607c6c

addAction([action, script filename or code(, arguments, priority, showWindow, hideOnUse, shortcut, condition)], unit)

Creates an action and returns its ID. It uses the following algorithm: the first action added to the given vehicle has ID zero, the next vehicle has ID one, etc.

C Func: 0xb5c310 ScriptInfo: 0x1607ca0

setUserActionText([action index, "text", "textDefault", "textToolTip"], unit)

Change action texts.

C Func: 0xb243b0 ScriptInfo: 0x1607cd4

removeAction(index, unit)

Removes the action with the given id.

C Func: 0xaf2680 ScriptInfo: 0x1607d08

reveal(unit, group)

Reveals the unit to the group. It does not matter whether the group can know about the unit or not.

C Func: 0xaf24c0 ScriptInfo: 0x1607d3c

reveal(unit, group)

Reveals the unit to the group. It does not matter whether the group can know about the unit or not.

C Func: 0xaf24c0 ScriptInfo: 0x1607d70

addEventHandler(handler, object)

The format of handler is [type,command]. Check scripting topic Event handlers for more information. The index of the currently added handler is returned.

C Func: 0xb5c870 ScriptInfo: 0x1607da4

removeEventHandler(handler, object)

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 that the deleted one should be decremented.

C Func: 0xb5c9d0 ScriptInfo: 0x1607dd8

removeAllEventHandlers(handlerType, object)

Removes all event handlers of the given type which were added by addEventHandler.

C Func: 0xb24660 ScriptInfo: 0x1607e0c

addMPEventHandler(handler, object)

The format of handler is [type,command]. Check scripting topic Event handlers for more information. The index of the currently added handler is returned.

C Func: 0xb7d8e0 ScriptInfo: 0x1607e40

removeMPEventHandler(handler, object)

Removes MP event handler added by addMPEventHandler. Format of handler is [type,index]. Index is returned by addMPEventHandler. When any handler is removed, all handler indices higher that the deleted one should be decremented.

C Func: 0xb7da70 ScriptInfo: 0x1607e74

removeAllMPEventHandlers(handlerType, object)

Removes all MP event handlers of the given type which were added by addMPEventHandler.

C Func: 0xb8b180 ScriptInfo: 0x1607ea8

engineOn(on, vehicle)

Switches the vehicle's engine on (true) or off (false).

C Func: 0xafc6b0 ScriptInfo: 0x1607edc

setFriend([side2, value], side1)

Sets how friendly side1 is with side2. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.

C Func: 0xb63f40 ScriptInfo: 0x1607f10

setMarkerText(text, name)

Sets the text label of an existing marker. The marker is modified on all computers in a network session.

C Func: 0xb332a0 ScriptInfo: 0x1607f44

setMarkerTextLocal(text, name)

Sets the text label of an existing marker. The marker is only modified on the computer where the command is called.

C Func: 0xb33170 ScriptInfo: 0x1607f78

setMarkerShape(shape, name)

Selects the shape (type) of the marker. Shape can be "ICON", "RECTANGLE" or "ELLIPSE". The marker is modified on all computers in a network session.

C Func: 0xb337a0 ScriptInfo: 0x1607fac

setMarkerShapeLocal(shape, name)

Selects the shape (type) of the marker. Shape can be "ICON", "RECTANGLE" or "ELLIPSE". The marker is only modified on the computer where the command is called.

C Func: 0xb33650 ScriptInfo: 0x1607fe0

setMarkerBrush(brush, name)

Selects the fill texture for the marker ("RECTANGLE" or "ELLIPSE"). Brush is the name of the subclass in CfgMarkerBrushes. The marker is modified on all computers in a network session.

C Func: 0xb33a80 ScriptInfo: 0x1608014

setMarkerBrushLocal(brush, name)

Selects the fill texture for the marker ("RECTANGLE" or "ELLIPSE"). Brush is the name of the subclass in CfgMarkerBrushes. The marker is only modified on the computer where the command is called.

C Func: 0xb33930 ScriptInfo: 0x1608048

setMarkerDir(angle, name)

Sets the orientation of the marker. Angle is in degrees. The marker is modified on all computers in a network session.

C Func: 0xb33cf0 ScriptInfo: 0x160807c

setMarkerDirLocal(angle, name)

Sets the orientation of the marker. Angle is in degrees. The marker is only modified on the computer where the command is called.

C Func: 0xb33c00 ScriptInfo: 0x16080b0

setTriggerArea([a, b, angle, rectangle], trigger)

Defines the area controlled by the trigger. The area is rectangular or elliptic, the width is 2 * a, the height is 2 * b. It is rotated angle degrees.

C Func: 0xb64310 ScriptInfo: 0x16080e4

setTriggerActivation([by, type, repeating], trigger)

Defines the trigger activation type. The first argument - who activates trigger (side, radio, vehicle or group member): "NONE", "EAST", "WEST", "GUER", "CIV", "LOGIC", "ANY", "ALPHA", "BRAVO", "CHARLIE", "DELTA", "ECHO", "FOXTROT", "GOLF", "HOTEL", "INDIA", "JULIET", "STATIC", "VEHICLE", "GROUP", "LEADER" or "MEMBER". The second argument - when is it activated (presention or detection by the specified side): "PRESENT", "NOT PRESENT", "WEST D", "EAST D", "GUER D" or "CIV D". The third argument - whether the activation is repeating.

C Func: 0xb64460 ScriptInfo: 0x1608118

setTriggerType(action, trigger)

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" or "WIN".

C Func: 0xb34070 ScriptInfo: 0x160814c

setTriggerTimeout([min, mid, max, interruptable], trigger)

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.

C Func: 0xb64630 ScriptInfo: 0x1608180

setTriggerText(text, trigger)

Sets the text label attached to the trigger object. This is used for example as a radio slot label for radio activated triggers.

C Func: 0xb34130 ScriptInfo: 0x16081b4

setTriggerStatements([cond, activ, desactiv], trigger)

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.

C Func: 0xb64780 ScriptInfo: 0x16081e8

triggerAttachObject(objectId, trigger)

Assigns a static object to the trigger. The activation source is changed to "STATIC".

C Func: 0xafd320 ScriptInfo: 0x160821c

triggerAttachVehicle([] or [vehicle], trigger)

If [] is given, the trigger is detached from the assigned vehicle. If the activation source is "VEHICLE", "GROUP", "LEADER" or "MEMBER", it's changed to "NONE". If [vehicle] is given, the trigger is attached to the vehicle or its group. When the source is "GROUP", "LEADER" or "MEMBER", it's attached to the group, otherwise it's attached to the vehicle and the source is changed to "VEHICLE".

C Func: 0xafd3b0 ScriptInfo: 0x1608250

setEffectCondition(statement, trigger or waypoint)

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 was launched. If the result is an object, the effect was launched if the result is the player or the player vehicle. If the result is an array, the effect was launched if the result contains the player or the player vehicle.

C Func: 0xb65640 ScriptInfo: 0x1608284

setSoundEffect([sound, voice, soundEnv, soundDet], trigger or waypoint)

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.

C Func: 0xb656d0 ScriptInfo: 0x16082b8

setMusicEffect(track, trigger or waypoint)

Defines the music track played on activation. Track is a subclass name of CfgMusic. "$NONE$" (no change) or "$STOP$" (stops the current music track).

C Func: 0xb65880 ScriptInfo: 0x16082ec

setTitleEffect([type, effect, text], trigger or waypoint)

Defines the title effect. Type can be "NONE", "OBJECT", "RES" or "TEXT". For "TEXT", the effect defines a subtype: "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" or "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.

C Func: 0xb65910 ScriptInfo: 0x1608320

synchronizeWaypoint([waypoint1, waypoint2, ...], waypoint)

Synchronizes the waypoint with other waypoints. Each waypoint is given as an array [group, index].

C Func: 0xb64df0 ScriptInfo: 0x1608354

synchronizeWaypoint([waypoint1, waypoint2, ...], trigger)

Synchronizes the trigger with waypoints. Each waypoint is given as an array [group, index].

C Func: 0xb649e0 ScriptInfo: 0x1608388

synchronizeTrigger([waypoint1, waypoint2, ...], trigger)

Synchronizes the trigger with waypoints. Each waypoint is given as an array [group, index].

C Func: 0xb64dc0 ScriptInfo: 0x16083bc

addWaypoint([center, radius] or [center, radius, index] or [center, radius, index, name], group)

Adds (or inserts when index is given) a new waypoint to a group. The waypoint is placed randomly in a circle with the given center and radius. The function returns a waypoint with format [group, index].

C Func: 0xb93380 ScriptInfo: 0x16083f0

setWaypointPosition([center, radius], waypoint)

Moves the waypoint to a random position in a circle with the given center and radius.

C Func: 0xb66330 ScriptInfo: 0x1608424

setWaypointType(type, waypoint)

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 "OR".

C Func: 0xb66610 ScriptInfo: 0x1608458

setWaypointName(name, waypoint)

Changes the waypoint name.

C Func: 0xb66770 ScriptInfo: 0x160848c

waypointAttachVehicle(vehicle, waypoint)

Attaches a vehicle to the given waypoint.

C Func: 0xb668e0 ScriptInfo: 0x16084c0

waypointAttachObject(idStatic or object, waypoint)

Attaches a static object to the given waypoint.

C Func: 0xb669d0 ScriptInfo: 0x16084f4

setWaypointHousePosition(pos, waypoint)

For waypoints attached to a house, this defines the target house position.

C Func: 0xb66ab0 ScriptInfo: 0x1608528

setWaypointCombatMode(mode, waypoint)

The group combat mode is switched when the waypoint becomes active. Possible values are: "NO CHANGE", "BLUE", "GREEN", "WHITE", "YELLOW" and "RED".

C Func: 0xb66c70 ScriptInfo: 0x160855c

setWaypointFormation(formation, waypoint)

Switches the group formation when the waypoint becomes active. Possible values are: "NO CHANGE", "COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE" and "LINE".

C Func: 0xb66d70 ScriptInfo: 0x1608590

setWaypointSpeed(mode, waypoint)

Switches the group speed mode when the waypoint becomes active. Possible values are: "UNCHANGED", "LIMITED", "NORMAL" and "FULL".

C Func: 0xb66e70 ScriptInfo: 0x16085c4

setWaypointBehaviour(mode, waypoint)

Switches the unit behaviour when the waypoint becomes active. Possible values are: "UNCHANGED", "CARELESS", "SAFE", "AWARE", "COMBAT" and "STEALTH".

C Func: 0xb66f70 ScriptInfo: 0x16085f8

setWaypointDescription(text, waypoint)

Sets the description shown in the HUD while the waypoint is active.

C Func: 0xb67070 ScriptInfo: 0x160862c

setWaypointStatements([condition, statement], waypoint)

The waypoint is done only when the condition is fulfilled. When the waypoint is done, the statement expression is executed.

C Func: 0xb67140 ScriptInfo: 0x1608660

setWaypointScript(command, waypoint)

Attaches a script to a scripted waypoint. Command consist of a script name and additional script arguments.

C Func: 0xb67300 ScriptInfo: 0x1608694

setWaypointTimeout([min, mid, max], waypoint)

Defines the time between condition satisfaction and waypoint finish (randomly from min to max, with an average value mid).

C Func: 0xb673e0 ScriptInfo: 0x16086c8

setWaypointCompletionRadius(radius, waypoint)

Set the radius around the waypoint where is the waypoint completed.

C Func: 0xb66b60 ScriptInfo: 0x16086fc

setWaypointVisible(visible, waypoint)

Set waypoint's visibility.

C Func: 0xb66bf0 ScriptInfo: 0x1608730

showWaypoint(show, waypoint)

Sets the condition determining when the waypoint is shown. Possible values are: "NEVER", "EASY" and "ALWAYS".

C Func: 0xb67530 ScriptInfo: 0x1608764

hintC(text, title)

Creates a hint dialog with the given title and text.

C Func: 0xb7e2e0 ScriptInfo: 0x1608798

hintC(text, title)

Creates a hint dialog with the given title and text.

C Func: 0xb7e5f0 ScriptInfo: 0x16087cc

hintC([text1, text2, ...], title)

Creates a hint dialog with the given title and text. Texts can be plain or structured.

C Func: 0xb7e5f0 ScriptInfo: 0x1608800

setAttributes([name1, value1, name2, value2, ...], text)

Returns a structured text created by the given structured or plain text by setting attributes to the given values.

C Func: 0xb36a60 ScriptInfo: 0x1608834

assignTeam(team, vehicle)

Assigns the vehicle (specifically its commander unit) to the given team. The possible team values are: "MAIN", "RED", "GREEN", "BLUE" and "YELLOW".

C Func: 0xb36d80 ScriptInfo: 0x1608868

sendSimpleCommand(command, object)

Sends a simple command to the vehicle's driver / gunner.

C Func: 0xb37060 ScriptInfo: 0x160889c

setVehiclePosition([position, markers, placement], object)

Changes the object position. If the markers array contains more than one marker names, 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.

C Func: 0xb34cc0 ScriptInfo: 0x16088d0

setTargetAge(age, object)

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" or "UNKNOWN".

C Func: 0xb34ee0 ScriptInfo: 0x1608904

createUnit([type, position, markers, placement, special], group)

Creates a unit (person) of the given type (type is a name of a subclass of CfgVehicles) and makes it a member of the given group. If the markers array contains several marker names, the position of a random one is used. Otherwise, the given position is used. The unit is placed inside a circle with this position as its center and placement as its radius. Special properties can be: "NONE" and "FORM".

C Func: 0xb7fe40 ScriptInfo: 0x1608938

setVehicleVarName(name, object)

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.

C Func: 0xb350b0 ScriptInfo: 0x160896c

setVehicleArmor(value, object)

Sets the armor (or health for men) state of the vehicle (a value from 0 to 1).

C Func: 0xafe2a0 ScriptInfo: 0x16089a0

setVehicleAmmo(value, object)

Sets how much ammunition (compared to the current stored magazines, but fully loaded) the vehicle has. The value ranges from 0 to 1.

C Func: 0xafe320 ScriptInfo: 0x16089d4

setVehicleAmmoDef(value, unit)

Sets how much ammunition (compared to the current configuration of magazines, but fully loaded) the vehicle has. The value ranges from 0 to 1.

C Func: 0xb35870 ScriptInfo: 0x1608a08

setVehicleId(id, object)

Sets id (integer value) to vehicle. By this id vehicle is referenced by triggers and waypoints.

C Func: 0xb80520 ScriptInfo: 0x1608a3c

setUnitRank(rank, unit)

Sets rank of given unit. Possible values: PRIVATE, CORPORAL, SERGEANT, LIEUTENANT, CAPTAIN, MAJOR or COLONEL.

C Func: 0xb35a20 ScriptInfo: 0x1608a70

setRank(rank, unit)

Sets rank of given unit. Possible values: PRIVATE, CORPORAL, SERGEANT, LIEUTENANT, CAPTAIN, MAJOR or COLONEL.

C Func: 0xb35b20 ScriptInfo: 0x1608aa4

setUnitAbility(skill, unit)

Sets skill of given unit. Skill may vary from 0.2 to 1.0.

C Func: 0xafe420 ScriptInfo: 0x1608ad8

selectLeader(unit, group)

Select group leader.

C Func: 0xafe750 ScriptInfo: 0x1608b0c

setVehicleLock(state, vehicle)

Set how vehicle is locked for player. Possible values: UNLOCKED, DEFAULT or LOCKED.

C Func: 0xb35b50 ScriptInfo: 0x1608b40

respawnVehicle([delay = -1, count = 0], vehicle)

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).

C Func: 0xafe810 ScriptInfo: 0x1608b74

intersect([begin, end], [object, lod name])

Find named selection in object which is in specified lod intersected by given section of a line.

C Func: 0xb9ac10 ScriptInfo: 0x1608ba8

createVehicleLocal(pos, type)

Creates an empty vehicle of the given type. Pos is in format Position. See CfgVehicles for possible type values. Vehicle is not transferred through network in MP games.

C Func: 0xb7f150 ScriptInfo: 0x1608bdc

setParticleParams(array, particleSource)

Set parameters to particle source. Array is in format ParticleArray.

C Func: 0x7db150 ScriptInfo: 0x1608c10

setParticleClass(className, particleSource)

Set parameters from config class. className is name of the class from CfgCloudlets.

C Func: 0x7db2c0 ScriptInfo: 0x1608c44

setParticleRandom([lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}], particleSource)

Set randomization of particle source parameters.

C Func: 0x7d52c0 ScriptInfo: 0x1608c78

setParticleCircle([radius, velocity], particleSource)

Update particle source to create particles on circle with given radius. Velocity is transformed and added to total velocity.

C Func: 0x7d5330 ScriptInfo: 0x1608cac

setDropInterval(interval, particleSource)

Set interval of emitting particles from particle source.

C Func: 0x7d54c0 ScriptInfo: 0x1608ce0

setCameraInterest(interest, entity)

Set camera interest for given entity.

C Func: 0xafb0c0 ScriptInfo: 0x1608d14

setLightColor([r, g, b], light)

Set diffuse color of light.

C Func: 0xb60ec0 ScriptInfo: 0x1608d48

setLightAmbient([r, g, b], light)

Set ambient color of light.

C Func: 0xb61050 ScriptInfo: 0x1608d7c

setLightBrightness(brightness, light)

Set brightness of light.

C Func: 0xafb120 ScriptInfo: 0x1608db0

lightAttachObject([object, position], light)

Attach light to given object (at given position).

C Func: 0xb611e0 ScriptInfo: 0x1608de4

setVectorUp([x, z, y], object)

Set object's up vector. Direction vector will remain unchanged.

C Func: 0xb684c0 ScriptInfo: 0x1608e18

setVectorDir([x, z, y], object)

Set object's direction vector. Up vector will remain unchanged.

C Func: 0xb68710 ScriptInfo: 0x1608e4c

setVectorDirAndUp([[x, z, y],[x, y, z]], object)

Set object's direction and up vector

C Func: 0xb689b0 ScriptInfo: 0x1608e80

weaponDirection(weaponName, vehicle)

Returns direction where is given weapon aiming.

C Func: 0xb372b0 ScriptInfo: 0x1608eb4

moveTo(position, person)

Low level command to person to move to given position.

C Func: 0xaff020 ScriptInfo: 0x1608ee8

nearObjects(radius or [typeName, radius], position)

Find objects in the circle with given radius. If typeName is given, only objects of given type (or its subtype) are listed.

C Func: 0xb68ef0 ScriptInfo: 0x1608f1c

nearSupplies(radius or [typeName, radius], position)

Find objects in the circle with given radius. If typeName is given, only objects of given type (or its subtype) are listed.

C Func: 0xb37550 ScriptInfo: 0x1608f50

selectionPosition(selection name, object)

Search for selection in the object model (first in the memory level, then in other levels). Returns position in model space.

C Func: 0xb380d0 ScriptInfo: 0x1608f84

modelToWorld(modelPos, object)

Converts position from object model space to world space.

C Func: 0xaff570 ScriptInfo: 0x1608fb8

worldToModel(worldPos, object)

Converts position from world space to object model space.

C Func: 0xaff750 ScriptInfo: 0x1608fec

limitSpeed(speed, object)

Limit speed of given vehicle to given value (in km/h).

C Func: 0xaff940 ScriptInfo: 0x1609020

emptyPositions(position, vehicle)

Returns the number of available cargo, driver, gunner or commander positions in the vehicle.

C Func: 0xb1db20 ScriptInfo: 0x1609054

setPiPEffect([effect, optionalParam1, ..., optionalParamN], pipTargetName)

Set a Render Target's visual effect (Picture-in-Picture).

C Func: 0xb5f070 ScriptInfo: 0x1609088

say3D(speechName, unit or [unit, target])

Functionally same as Say, only difference is sound played as 3D allways.

C Func: 0xb5d610 ScriptInfo: 0x16090bc

say3D(speechName, unit or [unit, target])

Functionally same as Say, only difference is sound played as 3D allways.

C Func: 0xb5d610 ScriptInfo: 0x16090f0

say2D(speechName, unit or [unit, target])

Functionally same as Say, only difference is sound played as 2D (mono) allways.

C Func: 0xb5d2a0 ScriptInfo: 0x1609124

say2D(speechName, unit or [unit, target])

Functionally same as Say, only difference is sound played as 2D (mono) allways.

C Func: 0xb5d2a0 ScriptInfo: 0x1609158

setVariable([name, value, public], object)

Set variable to given value in the variable space of given object. If public is true then the value is broadcast to all computers.

C Func: 0xb383e0 ScriptInfo: 0x160918c

getVariable(name, object)

Return the value of variable in the variable space of given object.

C Func: 0xb69490 ScriptInfo: 0x16091c0

getVariable([name, default value], object)

Return the value of variable in the variable space of given object. If not found, default value is returned.

C Func: 0xb69490 ScriptInfo: 0x16091f4

setDestination([position, planningMode, forceReplan], object)

Set the destination for path planning of the pilot.

C Func: 0xb69990 ScriptInfo: 0x1609228

forceSpeed(speed, object)

Force the speed of the given object.

C Func: 0xaffe60 ScriptInfo: 0x160925c

getSpeed(speedMode, object)

Get the speed for the given speed mode. SpeedMode can be: "AUTO","SLOW","NORMAL","FAST".

C Func: 0xb38790 ScriptInfo: 0x1609290

setFormationTask(task, object)

Set the current task of the formation member.

C Func: 0xad1bd0 ScriptInfo: 0x16092c4

findNearestEnemy(position, object)

Find the nearest enemy from the specified position.

C Func: 0xaffee0 ScriptInfo: 0x16092f8

getHideFrom(enemy, object)

Returns the hiding position in format Position. If enemy is null it is the some position in front of the object or enemy position otherwise.

C Func: 0xafffb0 ScriptInfo: 0x160932c

findCover([position, hidePosition, maxDist, minDist, visibilityPosition, ignoreObject], object)

Returns the object where the object should search for cover. The minDist, visibilityPosition and ignoreObject parameters are optional. visibilityPosition is used to select cover that can see a certain position. ignoreObject is an object that is ignored in visibility check.

C Func: 0xb001e0 ScriptInfo: 0x1609360

suppressFor(timeToSuppress, unit)

Makes the unit to apply suppressive fire on known enemies.

C Func: 0xb00460 ScriptInfo: 0x1609394

setHideBehind([objectWhereHide, hidePosition], object)

It sets the data for hiding. ObjectWhereHide can be taken using findCover. HidePosition can be taken using getHideFrom.

C Func: 0xb00510 ScriptInfo: 0x16093c8

enableReload(enable, object)

Enable / disable reload right after magazine is empty.

C Func: 0xb00bf0 ScriptInfo: 0x16093fc

enableAttack(enable, group)

Set if leader can issue attack commands.

C Func: 0xb00d30 ScriptInfo: 0x1609430

setUnitPosWeak(mode, unit)

Equal to setUnitPos, for usage in formation FSM (to avoid collision with setUnitPos used by the mission).

C Func: 0xb22c00 ScriptInfo: 0x1609464

cutText(effect, layer)

Text background - the right argument uses format ["text","type",speed] or ["text","type"]. If speed is not given, it's assumed to be one. Type may be one of: "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" or "WHITE IN". The left argument define layer in which the effect is show, 0 is the back most.

C Func: 0xb2a560 ScriptInfo: 0x1609498

cutRsc(effect, layer)

Resource background - the right argument uses format ["name","type",speed] or ["name","type"]. If speed is not given, it's assumed to be one. The left argument define layer in which the effect is show, 0 is the back most. The resource can be defined in the description.ext file.

C Func: 0xb2a720 ScriptInfo: 0x16094cc

cutObj(effect, layer)

Object background - the right argument uses format ["name","type",speed] or ["name","type"]. If speed is not given, it's assumed to be one. The left argument define layer in which the effect is show, 0 is the back most. The object can be defined in the description.ext file.

C Func: 0xb2a920 ScriptInfo: 0x1609500

cutFadeOut(duration, layer)

Terminate the effect in the given layer and set duration of the fade out phase to the given time.

C Func: 0xaccbd0 ScriptInfo: 0x1609534

addVehicle(vehicle, group)

Tells the group it owns the vehicle now.

C Func: 0xaf93d0 ScriptInfo: 0x1609568

setCurrentWaypoint(waypoint, group)

Switch the group to process the given waypoint.

C Func: 0xb67630 ScriptInfo: 0x160959c

joinSilent(group, unitArray)

Joins all units in the array to the given group. Avoid any radio communication related to joining.

C Func: 0xb894b0 ScriptInfo: 0x16095d0

nearTargets(radius, unit)

Check target database of the unit for all targets in max. distance radius around it. The output is list of items: [position, type, side, subj. cost, object]

C Func: 0xaf23d0 ScriptInfo: 0x1609604

inRangeOfArtillery([[unit1, unit2, ...], magazineType], pos)

Returns true if all given units are able to fire at given position with given magazineType.

C Func: 0xb89a20 ScriptInfo: 0x1609638

getArtilleryETA([position, magazineType], unit)

Get ETA in seconds for given atrillery unit, it's magazineType and target position. Returns negative value if fire is not possible.

C Func: 0xb5c180 ScriptInfo: 0x160966c

isKindOf(typeName2, typeName1)

Checks whether the type typeName1 is inherited from the type typeName1.

C Func: 0xb237a0 ScriptInfo: 0x16096a0

execFSM(filename, argument)

Execute the scripted FSM. Argument is passed to the FSM as local variable _this. The FSM file is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder. Return the FSM handler or 0 when failed.

C Func: 0xba2960 ScriptInfo: 0x16096d4

nearRoads(radius, position or object)

Find the road segments within the circle of given radius.

C Func: 0xb37900 ScriptInfo: 0x1609708

buildingExit(index, building)

Returns the given indexed exit in a building. The returned value is in format Position.

C Func: 0xaf5640 ScriptInfo: 0x160973c

addPublicVariableEventHandler(code, name)

Create an event handler for given variable. The event handler will be executed when some client in MP exports a variable using publicVariable on all clients except the publishing one.

C Func: 0xb3c8e0 ScriptInfo: 0x1609770

enableSimulation(enable, entity)

Enable / disable simulation for given entity.

C Func: 0xafc790 ScriptInfo: 0x16097a4

joinAs([group, id], unit)

Joins the unit to the given group, if position id is available, this one is used.

C Func: 0xb896b0 ScriptInfo: 0x16097d8

joinAsSilent([group, id], unit)

Joins the unit to the given group, if position id is available, this one is used. Avoid any radio communication related to joining.

C Func: 0xb896e0 ScriptInfo: 0x160980c

disableConversation(lock, unit)

Lock / unlock the unit to using conversation. Implemented by the counter, so lock - unlock need to be matched.

C Func: 0xaf1e50 ScriptInfo: 0x1609840

onMapSingleClick(command, parameters)

Defines an action performed when the user clicks on the map. Command receives:

_pos array position
_units array selected units
_shift,_alt bool key state
_this any parameters passed to this function

If the click is processed, command should return true.

C Func: 0xad0540 ScriptInfo: 0x1609874

copyWaypoints(groupFrom, groupTo)

Copy the chain of waypoints from source to target group. The target group will start to process waypoints from the first one.

C Func: 0xafdb70 ScriptInfo: 0x16098a8

setFSMVariable([name, value], FSM handle)

Set variable to given value in the variable space of given FSM. The FSM handle is the number returned by the execFSM command.

C Func: 0xb6c180 ScriptInfo: 0x16098dc

getFSMVariable(name, FSM handle)

Return the value of variable in the variable space of given FSM. The FSM handle is the number returned by the execFSM command.

C Func: 0xb3c740 ScriptInfo: 0x1609910

playMoveNow(moveName, soldier)

When used on a person, a smooth transition to the given move will be initiated, but all previous playAction are discarded.

C Func: 0xb97660 ScriptInfo: 0x1609944

playActionNow(action, soldier)

When used on a person, a smooth transition to the given action will be initiated, but all previous playAction are discarded.

C Func: 0xb284d0 ScriptInfo: 0x1609978

setUnconscious(set, unit)

Set / reset the unconscious life state of the given unit (in MP works only for a local unit).

C Func: 0xacefb0 ScriptInfo: 0x16099ac

setVariable([name, value], group)

Set variable to given value in the variable space of given group. If public is true then the value is broadcast to all computers.

C Func: 0xb385c0 ScriptInfo: 0x16099e0

getVariable(name, group)

Return the value of variable in the variable space of given group.

C Func: 0xb69730 ScriptInfo: 0x1609a14

getVariable([name, dafault value], group)

Return the value of variable in the variable space of given group. If not found, default value is returned.

C Func: 0xb69730 ScriptInfo: 0x1609a48

setMarkerAlpha(alpha, marker)

Sets the marker alpha. The marker is modified on all computers in a network session.

C Func: 0xb2e8b0 ScriptInfo: 0x1609a7c

setMarkerAlphaLocal(alpha, marker)

Sets the marker alpha. The marker is only modified on the computer where the command is called.

C Func: 0xb2e780 ScriptInfo: 0x1609ab0

nearObjectsReady(radius, position)

Check whether all data are loaded to nearObjects will return in reasonable time.

C Func: 0xaff310 ScriptInfo: 0x1609ae4

getFriend(side2, side1)

Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it's friendly.

C Func: 0xad0d20 ScriptInfo: 0x1609b18

ctrlMapCursor(texture names, control)

Changes default cursor texture ("Track", "Move","Array", "Scroll") to custom one. To restore default texture, write empty string. If new texture does not exist, default cursor texture is used.

C Func: 0xb6bfd0 ScriptInfo: 0x1609b4c

hcSetGroup(array, unit)

Add group to unit's high command bar. Array parameters are group, group name and team (teammain, teamred, teamgreen, teamblue, teamyellow) . Group is the only necessary parameter.

C Func: 0xb3caa0 ScriptInfo: 0x1609b80

hcRemoveGroup(group, unit)

Removes group from unit's high command bar.

C Func: 0xb021e0 ScriptInfo: 0x1609bb4

hcGroupParams(group, unit)

Returns parameters describing group in high command bar. Return value is [string,float[4]]

C Func: 0xb02330 ScriptInfo: 0x1609be8

hcSelectGroup(array, unit)

Select given group in HC bar.

C Func: 0xb3d270 ScriptInfo: 0x1609c1c

setGroupIconParams(properties, group)

Set group icons parameters. [color,string,float,bool]

C Func: 0xb6c8e0 ScriptInfo: 0x1609c50

addGroupIcon(properties, group)

Add icon to a group. Returns icon ID

C Func: 0xb9d500 ScriptInfo: 0x1609c84

setGroupIcon(properties, group)

Set group icons properties.

C Func: 0xb9d9b0 ScriptInfo: 0x1609cb8

getGroupIcon(ID, group)

Get group icon properties.

C Func: 0xb93ae0 ScriptInfo: 0x1609cec

removeGroupIcon(icon ID, group)

Remove icon with given ID from group.

C Func: 0xb02790 ScriptInfo: 0x1609d20

setHit([part, damage], object)

Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead.

C Func: 0xb24b10 ScriptInfo: 0x1609d54

setHitPointDamage([part, damage], object)

Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. Use name of hit point.

C Func: 0xb24d80 ScriptInfo: 0x1609d88

lockDriver(lock, vehicle)

Lock the driver position of the vehicle.

C Func: 0xafa970 ScriptInfo: 0x1609dbc

lockTurret([turret path, lock], vehicle)

Lock the gunner position of the vehicle turret.

C Func: 0xb60870 ScriptInfo: 0x1609df0

lockCargo([cargo index, lock], vehicle)

Lock the cargo position of the vehicle.

C Func: 0xb60960 ScriptInfo: 0x1609e24

lockCargo(lock, vehicle)

Lock the all cargo positions of the vehicle.

C Func: 0xafa9e0 ScriptInfo: 0x1609e58

lockedTurret(turret path, vehicle)

Check whether gunner position of the vehicle turret is locked.

C Func: 0xafabc0 ScriptInfo: 0x1609e8c

lockedCargo(cargo index, vehicle)

Check whether cargo position of the vehicle is locked.

C Func: 0xafac30 ScriptInfo: 0x1609ec0

knowsAbout(target, side)

Checks whether the side knows about the target (and how much).

C Func: 0xaf2320 ScriptInfo: 0x1609ef4

findEmptyPosition([radius, maxDistance] or [radius, maxDistance, vehicleType], center)

Search for the position nearest (up to maxDistance) to the center, with the free area (vehicle of the given type can be placed anywhere) of the given radius. When not found, empty array is returned.

C Func: 0xb23d90 ScriptInfo: 0x1609f28

findEmptyPositionReady([radius, maxDistance], center)

Check if findEmptyPosition can be called without waiting for files.

C Func: 0xb5bb10 ScriptInfo: 0x1609f5c

isFlatEmpty([float minDistance,float precizePos,float maxGradient,float gradientRadius,float onWater,bool onShore,object skipobj], position)

Chek if given area is flat and emty.

C Func: 0xaf5d70 ScriptInfo: 0x1609f90

turretUnit(turret path, vehicle)

Returns the unit in the vehicle turret.

C Func: 0xafacd0 ScriptInfo: 0x1609fc4

groupSelectUnit([unit,bool], unit)

Select unit from unit's group.

C Func: 0xaf7600 ScriptInfo: 0x1609ff8

nearEntities(radius or [typeName, radius] or [[typeName1, typeName2, ...], radius], position)

Find entities in the circle with given radius. If typeName(s) is (are) given, only entities of given type (or its subtype) are listed.

C Func: 0xb8ca30 ScriptInfo: 0x160a02c

remoteControl(whom, who)

Switch on remote control of the unit.

C Func: 0xaff440 ScriptInfo: 0x160a060

mapCenterOnCamera(enable, control)

Enable / disable continuous centering the map on the camera position

C Func: 0xade7c0 ScriptInfo: 0x160a094

unitsBelowHeight(height, group)

Return units in group below passed height.

C Func: 0xb3ef80 ScriptInfo: 0x160a0c8

unitsBelowHeight(height, array)

Return units below passed height.

C Func: 0xb3ed70 ScriptInfo: 0x160a0fc

debugFSM(true, FSM handle)

Switch FSM debug log on/off.

C Func: 0xad0710 ScriptInfo: 0x160a130

fireAtTarget([target, weapon], vehicle)

Gunner in unit's vehicle fire at given target. If weapon is not given, current is used.

C Func: 0xb35160 ScriptInfo: 0x160a164

aimedAtTarget([target, weapon], vehicle)

Returns how good is weapon aimed to target.

C Func: 0xb353d0 ScriptInfo: 0x160a198

backpackSpaceFor(weapon or magazine type, backpack)

Returns how much space is in backpack for given weapon or magazine.

C Func: 0xb676a0 ScriptInfo: 0x160a1cc

forceWalk(force walk, player)

Force player to walk.

C Func: 0xafdd40 ScriptInfo: 0x160a200

weaponsTurret(turretPath, vehicle)

Returns all weapons of given turret. Use turret path [-1] for drivers turret.

C Func: 0xb20550 ScriptInfo: 0x160a234

magazinesTurret(turretPath, vehicle)

Returns all magazines of given turret. Use turret path [-1] for drivers turret.

C Func: 0xb5ac10 ScriptInfo: 0x160a268

getHitPointDamage(hitpointName, vehicle)

Return current level of damage for a specific Hit Point (specified by its config class).

C Func: 0xb25000 ScriptInfo: 0x160a29c

isKindOf(typeName, object)

Checks whether the object is of the given type.

C Func: 0xb235e0 ScriptInfo: 0x160a2d0

glanceAt(position, unit(s))

Control what the unit is glancing at (target or position) (format Position)

C Func: 0xb8b0e0 ScriptInfo: 0x160a304

lookAt(position, unit(s))

Control what the unit is looking at (target or position) (format Position)

C Func: 0xb8b110 ScriptInfo: 0x160a338

setAirportSide(side, airportId)

Set owner of the airport

C Func: 0xacc830 ScriptInfo: 0x160a36c

landAt(airportId, airplane)

Order AI airplane to land at given airport

C Func: 0xaf3e00 ScriptInfo: 0x160a3a0

assignToAirport(airportId, airplane)

Set airport to be used by AI on getout

C Func: 0xaf4440 ScriptInfo: 0x160a3d4

hideObject(hidden, object)

Hide object (cannot hide static objects).

C Func: 0xafaeb0 ScriptInfo: 0x160a408

enableIRLasers(enable, group)

Enable/disable using IR lasers for AI

C Func: 0xaf18e0 ScriptInfo: 0x160a43c

enableGunLights(mode, group)

Tells AI units to force the gun light on (forceOn), off (forceOff) or set it automatically when in combat mode (auto)

C Func: 0xb96f70 ScriptInfo: 0x160a470

setCamUseTi(mode index, bool)

Activate camera thermal vision

C Func: 0xad1930 ScriptInfo: 0x160a4a4

setVehicleTiPars(tiParams, vehicle)

Set ti parameters for specified vehicle, pars: engine/body, tracks/wheels, main gun.

C Func: 0xaff160 ScriptInfo: 0x160a4d8

fadeSpeech(volume, time)

Causes a smooth change in the master speech volume. The change duration is given by time, the target volume by volume. The default master volume is 1.0.

C Func: 0xacc9e0 ScriptInfo: 0x160a50c

disableTIEquipment(enable/disable, vehicle)

Enable/disable transport vision modes(Ti)

C Func: 0xaf7d90 ScriptInfo: 0x160a540

setWeaponReloadingTime([gunner unit, weaponName, reloadTime <0-1>], vehicle)

Set phase of weapon reloading. ReloadTime goes from 0 to 1, where 1 is the end of loading procedure. Return values tells if given weapon was found for given gunner

C Func: 0xb26ed0 ScriptInfo: 0x160a574

loadMagazine([[turret path],magazine name], vehicle)

Initiates the loading action on active weapon of the given turret.

C Func: 0xb5e160 ScriptInfo: 0x160a5a8

allowCrewInImmobile(bool, vehicle)

If true, units can be in vehicle with broken tracks/wheels.

C Func: 0xaf7e40 ScriptInfo: 0x160a5dc

enableCopilot(enable, vehicle)

Enables copilot actions.

C Func: 0xaf83b0 ScriptInfo: 0x160a610

disableCollisionWith(vehicle, vehicle)

Disable collision between vehicles.

C Func: 0xafc7f0 ScriptInfo: 0x160a644

enableCollisionWith(vehicle, vehicle)

Enable collision between vehicles.

C Func: 0xafc860 ScriptInfo: 0x160a678

setUnitRecoilCoefficient(coefficient, unit)

Proportionaly increase/decrease unit's recoil.

C Func: 0xaf7ea0 ScriptInfo: 0x160a6ac

setOwner(clientId, object)

On server machine, change the ownership of object to a given client. Returns true if locality was changed.

C Func: 0xafb7a0 ScriptInfo: 0x160a6e0

publicVariableClient(varName, clientId)

Send the variable value to the client computer. Only type Number is supported in versions 1.33 and before. The following types are supported since 1.34: Number, Boolean, Object and Group.

C Func: 0xb2c2e0 ScriptInfo: 0x160a714

forceWeaponFire([weapon, mode], unit)

The unit will be forced to fire from the given weapon.

C Func: 0xb21e80 ScriptInfo: 0x160a748

attachTo([obj,offset,MemPoint], obj)

Attaches an object to another object. The offset is applied to the object center unless a memory point is provided.

C Func: 0xb5e6f0 ScriptInfo: 0x160a77c

>>(name, config)

Returns subentry of config entry with given name.

C Func: 0xb91d20 ScriptInfo: 0x160a7b0

/(name, config)

Returns subentry of config entry with given name (alias for >>).

C Func: 0xb92080 ScriptInfo: 0x160a7e4

select(index, config)

Returns subentry with given index.

C Func: 0xb92250 ScriptInfo: 0x160a818

==(config2, config1)

Checks whether two config entries are equal.

C Func: 0xad17f0 ScriptInfo: 0x160a84c

!=(config2, config1)

Checks whether two config entries are different.

C Func: 0xad1fc0 ScriptInfo: 0x160a880

kbAddDatabase(filename, person)

Register knowledge base database to given person.

C Func: 0xad2160 ScriptInfo: 0x160a8b4

kbAddDatabaseTargets(filename, person)

Register target list knowledge base database to given person.

C Func: 0xad2160 ScriptInfo: 0x160a8e8

kbAddTopic([name, filename(, task type(, player event handler))], person)

Register conversation topic to given person.

C Func: 0xb69b50 ScriptInfo: 0x160a91c

kbRemoveTopic(name, person)

Unregister conversation topic from given person.

C Func: 0xb392c0 ScriptInfo: 0x160a950

kbTell([receiver, topic, sentence id, [argument name, argument value, argument text, argument speech], ...], person)

Make the person tell to the receiver the sentence. Last parameter can be false/true to force radio channel selection, or number 1..10 to force possible CustomChannel, or radio channel name 'GLOBAL','SIDE','GROUP','VEHICLE','DIRECT','COMMAND'.

C Func: 0xb6a400 ScriptInfo: 0x160a984

kbReact([receiver, topic, sentence id, [argument name, argument value, argument text, argument speech], ...], person)

Pass a non-verbal communication to the receiver.

C Func: 0xb69fa0 ScriptInfo: 0x160a9b8

kbWasSaid([receiver, topic, sentence id, max. age], person)

Check if given item was said by person to someone.

C Func: 0xb39320 ScriptInfo: 0x160a9ec

kbHasTopic(name, person)

Check if conversation topic was registered to given person.

C Func: 0xb39480 ScriptInfo: 0x160aa20

drawIcon([texture, color, position, width, height, angle, text, shadow, textSize, font, align], map)

Draw icon in map.

C Func: 0xb9c480 ScriptInfo: 0x160aa54

drawLine([position1, position2, color], map)

Draw line in map.

C Func: 0xb01480 ScriptInfo: 0x160aa88

drawArrow([position1, position2, color], map)

Draw arrow in map.

C Func: 0xb01500 ScriptInfo: 0x160aabc

drawEllipse([center, a, b, angle, color, fill], map)

Draw ellipse in map.

C Func: 0xb9c660 ScriptInfo: 0x160aaf0

drawRectangle([center, a, b, angle, color, fill], map)

Draw rectangle in map.

C Func: 0xb9c940 ScriptInfo: 0x160ab24

posScreenToWorld([x, y], map)

Convert screen coordinates in map to world coordinates.

C Func: 0xb6a9a0 ScriptInfo: 0x160ab58

posWorldToScreen(position, map)

Convert world coordinates to screen coordinates in map.

C Func: 0xb015f0 ScriptInfo: 0x160ab8c

ctrlEnable(enable, control)

Enable / disable given control.

C Func: 0xade910 ScriptInfo: 0x160abc0

ctrlShow(show, control)

Show / hide given control.

C Func: 0xade960 ScriptInfo: 0x160abf4

ctrlSetText(text, control)

Sets the text that will be shown in given control.

C Func: 0xb39d10 ScriptInfo: 0x160ac28

ctrlSetFont(name, control)

Sets the main font of given control.

C Func: 0xb39db0 ScriptInfo: 0x160ac5c

ctrlSetFontHeight(height, control)

Sets the main font size of given control.

C Func: 0xadea30 ScriptInfo: 0x160ac90

ctrlSetFontH1(name, control)

Sets H1 font of given HTML control.

C Func: 0xb39e40 ScriptInfo: 0x160acc4

ctrlSetFontH2(name, control)

Sets H2 font of given HTML control.

C Func: 0xb39f00 ScriptInfo: 0x160acf8

ctrlSetFontH3(name, control)

Sets H3 font of given HTML control.

C Func: 0xb39fc0 ScriptInfo: 0x160ad2c

ctrlSetFontH4(name, control)

Sets H4 font of given HTML control.

C Func: 0xb3a080 ScriptInfo: 0x160ad60

ctrlSetFontH5(name, control)

Sets H5 font of given HTML control.

C Func: 0xb3a140 ScriptInfo: 0x160ad94

ctrlSetFontH6(name, control)

Sets H5 font of given HTML control.

C Func: 0xb3a200 ScriptInfo: 0x160adc8

ctrlSetFontP(name, control)

Sets P font of given HTML control.

C Func: 0xb3a2c0 ScriptInfo: 0x160adfc

ctrlSetFontH1B(name, control)

Sets H1 bold font of given HTML control.

C Func: 0xb3a380 ScriptInfo: 0x160ae30

ctrlSetFontH2B(name, control)

Sets H2 bold font of given HTML control.

C Func: 0xb3a440 ScriptInfo: 0x160ae64

ctrlSetFontH3B(name, control)

Sets H3 bold font of given HTML control.

C Func: 0xb3a500 ScriptInfo: 0x160ae98

ctrlSetFontH4B(name, control)

Sets H4 bold font of given HTML control.

C Func: 0xb3a5c0 ScriptInfo: 0x160aecc

ctrlSetFontH5B(name, control)

Sets H5 bold font of given HTML control.

C Func: 0xb3a680 ScriptInfo: 0x160af00

ctrlSetFontH6B(name, control)

Sets H6 bold font of given HTML control.

C Func: 0xb3a740 ScriptInfo: 0x160af34

ctrlSetFontPB(name, control)

Sets P bold font of given HTML control.

C Func: 0xb3a800 ScriptInfo: 0x160af68

ctrlSetFontHeightH1(height, control)

Sets H1 font size of given HTML control.

C Func: 0xadeb00 ScriptInfo: 0x160af9c

ctrlSetFontHeightH2(height, control)

Sets H2 font size of given HTML control.

C Func: 0xadeb70 ScriptInfo: 0x160afd0

ctrlSetFontHeightH3(height, control)

Sets H3 font size of given HTML control.

C Func: 0xadebe0 ScriptInfo: 0x160b004

ctrlSetFontHeightH4(height, control)

Sets H4 font size of given HTML control.

C Func: 0xadec50 ScriptInfo: 0x160b038

ctrlSetFontHeightH5(height, control)

Sets H5 font size of given HTML control.

C Func: 0xadecb0 ScriptInfo: 0x160b06c

ctrlSetFontHeightH6(height, control)

Sets H6 font size of given HTML control.

C Func: 0xaded10 ScriptInfo: 0x160b0a0

ctrlSetFontP(height, control)

Sets P font size of given HTML control.

C Func: 0xaded70 ScriptInfo: 0x160b0d4

ctrlSetPosition([x, y, w, h], control)

Sets wanted position and size for control animation. Width and height are optional.

C Func: 0xadf160 ScriptInfo: 0x160b108

ctrlSetScale(scale, control)

Sets wanted scale for control animation. Top left corner remains same.

C Func: 0xadf330 ScriptInfo: 0x160b13c

ctrlSetAutoScrollSpeed(speed, control)

Sets number of second required to scroll to next line. If speed smaller than 0, auto-scroll is disabled.

C Func: 0xadf3a0 ScriptInfo: 0x160b170

ctrlSetAutoScrollDelay(delay, control)

Sets number of second before auto-scroll starts.

C Func: 0xadf4f0 ScriptInfo: 0x160b1a4

ctrlSetAutoScrollRewind(delay, control)

Defines if scroll should rewind when auto-scroll reach end.

C Func: 0xadf630 ScriptInfo: 0x160b1d8

ctrlSetFade(fade, control)

Sets wanted transparency for control animation.

C Func: 0xadf6f0 ScriptInfo: 0x160b20c

ctrlCommit(time, control)

Commit control animation.

C Func: 0xadf770 ScriptInfo: 0x160b240

displayCtrl(idc, display)

Return child control with specified idc.

C Func: 0xaebc00 ScriptInfo: 0x160b274

ctrlSetBackgroundColor(color, display)

Sets background color of given control. Color is in format Color.

C Func: 0xb6af30 ScriptInfo: 0x160b2a8

ctrlSetForegroundColor(color, display)

Sets background color of given control. Color is in format Color.

C Func: 0xb6af80 ScriptInfo: 0x160b2dc

ctrlSetTextColor(color, display)

Sets text color of given control. Color is in format Color.

C Func: 0xb6afd0 ScriptInfo: 0x160b310

ctrlSetActiveColor(color, display)

Sets text color of given control when control is selected. Color is in format Color.

C Func: 0xb6b020 ScriptInfo: 0x160b344

ctrlSetTooltip(text, display)

Sets tooltip text of given control.

C Func: 0xb3a8c0 ScriptInfo: 0x160b378

ctrlSetTooltipColorText(color, display)

Sets tooltip text color of given control. Color is in format Color.

C Func: 0xb6b070 ScriptInfo: 0x160b3ac

ctrlSetTooltipColorBox(color, display)

Sets tooltip border color of given control. Color is in format Color.

C Func: 0xb6b0c0 ScriptInfo: 0x160b3e0

ctrlSetTooltipColorShade(color, display)

Sets tooltip background color of given control. Color is in format Color.

C Func: 0xb6b110 ScriptInfo: 0x160b414

ctrlSetChecked(enabled, control)

Sets checked state of checkbox.

C Func: 0xadf880 ScriptInfo: 0x160b448

==(display2, display1)

Checks whether two displays are equal.

C Func: 0xad2530 ScriptInfo: 0x160b47c

!=(display2, display1)

Checks whether two displays are different.

C Func: 0xad25f0 ScriptInfo: 0x160b4b0

==(control2, control1)

Checks whether two controls are equal.

C Func: 0xae0780 ScriptInfo: 0x160b4e4

!=(control2, control1)

Checks whether two controls are different.

C Func: 0xae07d0 ScriptInfo: 0x160b518

createDisplay(name, parent)

Create child display of given display and load from resource "name".

C Func: 0xb3bed0 ScriptInfo: 0x160b54c

closeDisplay(exitcode, display)

Close given display.

C Func: 0xad26b0 ScriptInfo: 0x160b580

htmlLoad(filename, control)

Load HTML from file to given control.

C Func: 0xb3a970 ScriptInfo: 0x160b5b4

ctrlSetStructuredText(structured text, control)

Set the structured text which will be displayed in structured text control.

C Func: 0xb3aa30 ScriptInfo: 0x160b5e8

ctrlSetEventHandler([handler name, function], control)

Sets given event handler of given control

C Func: 0xb6b160 ScriptInfo: 0x160b61c

displaySetEventHandler([handler name, function], display)

Sets given event handler of given display.

C Func: 0xb6b320 ScriptInfo: 0x160b650

commandFSM([fsm name, position, target], unit(s))

Orders a unit to process command defined by FSM file (via the radio).

C Func: 0xb8d220 ScriptInfo: 0x160b684

doFSM([fsm name, position, target], unit(s))

Orders a unit to process command defined by FSM file (silently).

C Func: 0xb8d1f0 ScriptInfo: 0x160b6b8

execVM(filename, argument)

Compile and execute function (sqf). Argument is passed to the script as local variable _this. The function is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder.

C Func: 0xb3c5f0 ScriptInfo: 0x160b6ec

skill(type, vehicle)

Returns skill of given type of person (commander unit). Value of skill may vary from 0 to 1.

C Func: 0xb3c920 ScriptInfo: 0x160b720

setSkill([type, skill], vehicle)

Sets skill of given type of person (commander unit). Value of skill may vary from 0 to 1.

C Func: 0xb6c2f0 ScriptInfo: 0x160b754

setFatigue(value, unit)

Sets the person's fatigue.

C Func: 0xb02050 ScriptInfo: 0x160b788

enableFatigue(bool, unit)

Enables/Disables the person's fatigue.

C Func: 0xb020d0 ScriptInfo: 0x160b7bc

lbSetCurSel(index, control)

Selects the item with the given index of the given listbox or combobox.

C Func: 0xadfb10 ScriptInfo: 0x160b7f0

lbAdd(text, control)

Adds an item with the given text to the given listbox or combobox. It returns the index of the newly added item.

C Func: 0xb3acf0 ScriptInfo: 0x160b824

lbDelete(index, control)

Removes the item with the given index from the given listbox or combobox.

C Func: 0xadfc40 ScriptInfo: 0x160b858

lbText(index, control)

Returns the shown text in the item with the given index of the given listbox or combobox.

C Func: 0xb3ad60 ScriptInfo: 0x160b88c

lbData(index, control)

Returns the additional text (invisible) in an item with the given index of the given listbox or combobox.

C Func: 0xb3adf0 ScriptInfo: 0x160b8c0

lbSetData([index, data], control)

Sets the additional text (invisible) in the item with the given index of the given listbox or combobox to the given data.

C Func: 0xb6b570 ScriptInfo: 0x160b8f4

lbValue(index, control)

Returns the additional integer value in the item with the given index of the given listbox or combobox.

C Func: 0xadfd20 ScriptInfo: 0x160b928

lbSetValue([index, value], control)

Sets the additional integer value in the item with the given index of the given listbox or combobox to the given value.

C Func: 0xb6b5d0 ScriptInfo: 0x160b95c

lbPicture(index, control)

Returns the picture name of the item with the given index of the given listbox or combobox.

C Func: 0xb3ae80 ScriptInfo: 0x160b990

lbSetPicture([index, name], control)

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 in the mission directory, the dtaExt subdirectory of the campaign directory and the dtaExt directory and the data bank (or directory).

C Func: 0xb9cc10 ScriptInfo: 0x160b9c4

lbColor(index, control)

Returns the text color of the item with the given index of the given listbox or combobox.

C Func: 0xb3afc0 ScriptInfo: 0x160b9f8

lbSetColor([index, color], control)

Sets the text color of the item with the given index of the given listbox or combobox. Color is in format Color.

C Func: 0xb6b750 ScriptInfo: 0x160ba2c

lbIsSelected(index, control)

Check whether given row of the given listbox is selected.

C Func: 0xadfdb0 ScriptInfo: 0x160ba60

lbSetSelected([index, selected], control)

Set the selection state of the given row of the given listbox. Listbox must support multiple selection

C Func: 0xb6b8a0 ScriptInfo: 0x160ba94

lnbSetCurSelRow(row, control)

Selects the item with the given index of the given listbox or combobox.

C Func: 0xadfef0 ScriptInfo: 0x160bac8

lnbSetColumnsPos([pos1,pos2,...], control)

Set position of 2d listbox columns.

C Func: 0xaebe00 ScriptInfo: 0x160bafc

lnbAddColumn(position, control)

Adds an item with the given text to the given listbox or combobox. It returns the index of the newly added item.

C Func: 0xae0000 ScriptInfo: 0x160bb30

lnbDeleteColumn(index, control)

Removes the item with the given index from the given listbox or combobox.

C Func: 0xae0090 ScriptInfo: 0x160bb64

lnbAddRow([text1,text2,...], control)

Adds an row to the end od 2d listbox . It returns the index of the newly added row.

C Func: 0xb8ce80 ScriptInfo: 0x160bb98

lnbDeleteRow(row, control)

Removes row with the given index from the given listbox or combobox.

C Func: 0xadff80 ScriptInfo: 0x160bbcc

lnbText([row, column], control)

Returns the shown text in the item with the given position of the given 2D listbox.

C Func: 0xb01a60 ScriptInfo: 0x160bc00

lnbSetText([[row, column], text], control)

Sets the additional text (invisible) in the item with the given index of the given 2D listbox to the given data.

C Func: 0xb3b470 ScriptInfo: 0x160bc34

lnbData([row, column], control)

Returns the additional text (invisible) in an item with the given position of the given 2D listbox.

C Func: 0xb01b80 ScriptInfo: 0x160bc68

lnbSetData([[row, column], data], control)

Sets the additional text (invisible) in the item with the given position of the given 2D listbox to the given data.

C Func: 0xb3b620 ScriptInfo: 0x160bc9c

lnbValue([row, column], control)

Returns the additional integer value in the item with the given position of the given 2D listbox.

C Func: 0xae0110 ScriptInfo: 0x160bcd0

lnbSetValue([[row, column], value], control)

Sets the additional integer value in the item with the given position of the given 2D listbox to the given value.

C Func: 0xae02a0 ScriptInfo: 0x160bd04

lnbPicture([row, column], control)

Returns the picture name of the item with the given position of the given listbox or combobox.

C Func: 0xb9cdc0 ScriptInfo: 0x160bd38

lnbSetPicture([[row, column], name], control)

Sets the picture in the item with the given position of the given 2D listbox. Name is the picture name. The picture is searched in the mission directory, the dtaExt subdirectory of the campaign directory and the dtaExt directory and the data bank (or directory).

C Func: 0xb9cf40 ScriptInfo: 0x160bd6c

lnbColor([row, column], control)

Returns the text color of the item with the given position of the given 2D listbox.

C Func: 0xb3b2a0 ScriptInfo: 0x160bda0

lnbSetColor([[row, column], color], control)

Sets the text color of the item with the given position of the given 2D listbox . Color is in format Color.

C Func: 0xb6ba10 ScriptInfo: 0x160bdd4

tvAdd([[path], text], control)

Adds an item with given text to Tree View under specified path (zero based).

C Func: 0xb62ca0 ScriptInfo: 0x160be08

tvDelete([path], control)

Deletes item in given path.

C Func: 0xb7f4c0 ScriptInfo: 0x160be3c

tvText([path], control)

Gets text from given path

C Func: 0xb62e50 ScriptInfo: 0x160be70

tvSetData([[path], text], control)

Sets data to given path.

C Func: 0xb62f20 ScriptInfo: 0x160bea4

tvData([path], control)

Returns string from given path.

C Func: 0xb63050 ScriptInfo: 0x160bed8

tvSetValue([[path], val], control)

Sets value to given path.

C Func: 0xb63120 ScriptInfo: 0x160bf0c

tvValue([path], control)

Reads value from given path.

C Func: 0xb63280 ScriptInfo: 0x160bf40

tvCount([path], control)

Returns count of items in given path.

C Func: 0xb63360 ScriptInfo: 0x160bf74

tvSetCurSel([path], control)

Sets cursor to given path.

C Func: 0xb63440 ScriptInfo: 0x160bfa8

tvSort([[path], reversed], control)

Sorts childrens of given item by data.

C Func: 0xb63510 ScriptInfo: 0x160bfdc

tvSortByValue([[path], reversed], control)

Sorts childrens of given item by value.

C Func: 0xb636f0 ScriptInfo: 0x160c010

tvSetPicture([[path], name], control)

Sets picture to item selected by path.

C Func: 0xb9a0b0 ScriptInfo: 0x160c044

tvPicture([path], control)

Returns picture on given path of tree.

C Func: 0xb9a1e0 ScriptInfo: 0x160c078

tvExpand([path], control)

Expands given path.

C Func: 0xb638d0 ScriptInfo: 0x160c0ac

tvCollapse([path], control)

Collapses given path.

C Func: 0xb639a0 ScriptInfo: 0x160c0e0

buttonSetAction(action, control)

Assigns an action to the given button or active text. Action is any expression in this scripting language.

C Func: 0xb3ba40 ScriptInfo: 0x160c114

sliderSetPosition(pos, control)

Sets the current thumb position of the given slider.

C Func: 0xae04f0 ScriptInfo: 0x160c148

sliderSetRange([min, max], control)

Sets the limits of the slider with id idc of the given slider.

C Func: 0xb6bba0 ScriptInfo: 0x160c17c

sliderSetSpeed([line, page], control)

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.

C Func: 0xae05f0 ScriptInfo: 0x160c1b0

ctrlMapAnimAdd(frame, map)

Adds the next frame to the map animation. The format of frame is [time, zoom, position], the format of position is Position2D.

C Func: 0xb01d00 ScriptInfo: 0x160c1e4

ctrlMapScreenToWorld([x, y], map)

Convert position in the map from screen coordinates to world coordinates.

C Func: 0xb6bcf0 ScriptInfo: 0x160c218

ctrlMapWorldToScreen(position, map)

Convert position in the map from world coordinates to screen coordinates.

C Func: 0xb01e70 ScriptInfo: 0x160c24c

createMissionDisplay(root, parent)

Create single missions display as a child of given display. The mission dialog will be set to the directory given as an argument "root".

C Func: 0xb3c0a0 ScriptInfo: 0x160c280

createMissionDisplay([root, missions space], parent)

Create single missions display as a child of given display. The mission dialog will be set to the directory given as an argument "root". Mission space defines container's config class name.

C Func: 0xb3c0a0 ScriptInfo: 0x160c2b4

progressSetPosition(pos, control)

Sets the current position in the progress bar.

C Func: 0xae0ab0 ScriptInfo: 0x160c2e8

ctrlAddEventHandler([handler name, function], control)

Add an event handler to the given control. Returns id of the handler or -1 when failed.

C Func: 0xb6b1e0 ScriptInfo: 0x160c31c

ctrlRemoveEventHandler([handler name, id], control)

Remove a given event handler from the given control.

C Func: 0xb6b270 ScriptInfo: 0x160c350

ctrlRemoveAllEventHandlers(handler name, control)

Remove all even handlers from the given control.

C Func: 0xb3aac0 ScriptInfo: 0x160c384

displayAddEventHandler([handler name, function], display)

Add an event handler to the given display. Returns id of the handler or -1 when failed.

C Func: 0xb6b3d0 ScriptInfo: 0x160c3b8

displayRemoveEventHandler([handler name, id], display)

Remove a given event handler from the given display.

C Func: 0xb6b480 ScriptInfo: 0x160c3ec

displayRemoveAllEventHandlers(handler name, display)

Remove all even handlers from the given display.

C Func: 0xb3ab00 ScriptInfo: 0x160c420

callExtension(functionWithArguments, extension)

Execute an extension function

C Func: 0xb94c50 ScriptInfo: 0x160c454

radioChannelSetLabel(label, chan ix)

Set the custom channel label.

C Func: 0xb3f7f0 ScriptInfo: 0x160c488

radioChannelSetCallSign(callSign, chan ix)

Set the custom channel call sign.

C Func: 0xb3f940 ScriptInfo: 0x160c4bc

radioChannelAdd([units], chan ix)

Add the units to the custom radio channel.

C Func: 0xb03360 ScriptInfo: 0x160c4f0

radioChannelRemove([units], chan ix)

Remove the units from the custom radio channel.

C Func: 0xb3fb50 ScriptInfo: 0x160c524

customRadio([chan ix, string], unit)

Sends the message to the custom radio channel. The message is defined in the description.ext file or radio protocol.

C Func: 0xb278a0 ScriptInfo: 0x160c558

customChat([chan ix, string], unit)

Sends the chat message to the custom radio channel.

C Func: 0xb27ac0 ScriptInfo: 0x160c58c

saveStatus(name, object)

Saves object's properties to objects.sav file in campaign directory as entry name.

C Func: 0xb98370 ScriptInfo: 0x160c5c0

loadStatus(name, object)

Loads object's properties from objects.sav file in campaign directory (from entry name).

C Func: 0xb98880 ScriptInfo: 0x160c5f4

saveIdentity(name, person)

Saves person's identity to objects.sav file in campaign directory as entry name.

C Func: 0xb99100 ScriptInfo: 0x160c628

loadIdentity(name, person)

Loads person's identity from objects.sav file in campaign directory (from entry name).

C Func: 0xb99530 ScriptInfo: 0x160c65c

animate([animation, phase], object)

Process animation on object. Animation is defined in config file. Wanted animation phase is set to phase.

C Func: 0xb31500 ScriptInfo: 0x160c690

animationPhase(animation, object)

Return animation phase of animation on object.

C Func: 0xb316c0 ScriptInfo: 0x160c6c4

setSkill(skill, vehicle)

Sets ability levell of person (commander unit). Value of skill may vary from 0 to 1.

C Func: 0xaf05e0 ScriptInfo: 0x160c6f8

setObjectTexture(texture, object)

C Func: 0xb970e0 ScriptInfo: 0x160c72c

setObjectTextureGlobal([selection,texture], obj)

Set the texture of the given selection on all computers in a network session

C Func: 0xb972a0 ScriptInfo: 0x160c760

setObjectMaterial(material, object)

C Func: 0xba1a80 ScriptInfo: 0x160c794

nearestObject(type, position)

Find object nearest to given position with given type.

C Func: 0xb25ec0 ScriptInfo: 0x160c7c8

nearestObject(id, position)

Find object nearest to given position with given Visitor id.

C Func: 0xaf5bf0 ScriptInfo: 0x160c7fc

addTeamMember(member, team)

Add given member to given team.

C Func: 0xb8d960 ScriptInfo: 0x160c830

removeTeamMember(member, team)

Remove given member from given team.

C Func: 0xb8da20 ScriptInfo: 0x160c864

==(teamMember2, teamMember1)

Checks whether two team members are the same. If either of them is teamMemberNull, false is returned.

C Func: 0xad2a40 ScriptInfo: 0x160c898

!=(teamMember2, teamMember1)

Checks whether two team members are different. If either of them is teamMemberNull, true is returned.

C Func: 0xad2b00 ScriptInfo: 0x160c8cc

addResources([resource1, resource2, ...], teamMember)

Add (register) resources to the team member.

C Func: 0xb80f50 ScriptInfo: 0x160c900

deleteResources([resource1, resource2, ...], teamMember)

Delete (unregister) resources of the team member.

C Func: 0xb8db60 ScriptInfo: 0x160c934

setFormation(formation, team)

Set a new formation to given team.

C Func: 0xb3e430 ScriptInfo: 0x160c968

setFromEditor(fromEditor, teamMember)

Set if given team member was inserted directly from editor.

C Func: 0xad2c30 ScriptInfo: 0x160c99c

setVariable([name, value, public], teamMember)

Set variable to given value in the variable space of given team member. If public is true then the value is broadcast to all computers.

C Func: 0xb3e4b0 ScriptInfo: 0x160c9d0

getVariable(name, teamMember)

Return the value of variable in the variable space of given team member.

C Func: 0xb6cbd0 ScriptInfo: 0x160ca04

getVariable([name, default value], teamMember)

Return the value of variable in the variable space of given team member.

C Func: 0xb6cbd0 ScriptInfo: 0x160ca38

setLeader(leader, team)

Set the leader of given team.

C Func: 0xb028d0 ScriptInfo: 0x160ca6c

forEachMember(team, command)

Executes the given command for each member of the team (recursively).

C Func: 0xb3e840 ScriptInfo: 0x160caa0

forEachMemberTeam(team, command)

Executes the given command for each team member of the team (recursively).

C Func: 0xb3e9a0 ScriptInfo: 0x160cad4

forEachMemberAgent(team, command)

Executes the given command for each agent member of the team (recursively).

C Func: 0xb3eb00 ScriptInfo: 0x160cb08

setCombatMode(mode, teamMember)

Sets the team member's combat mode (engagement rules). Mode can be one of: "BLUE" (Never fire), "GREEN" (Hold fire - defend only), "WHITE" (Hold fire, engage at will), "YELLOW" (Fire at will) or "RED" (Fire at will, engage at will).

C Func: 0xb3db70 ScriptInfo: 0x160cb3c

==(netObj2, netObj1)

Checks whether two objects are the same. If either of them is netObjNull, false is returned.

C Func: 0xaeafd0 ScriptInfo: 0x160cb70

!=(netObj2, netObj1)

Checks whether two objects are different. If either of them is netObjNull, true is returned.

C Func: 0xaeb020 ScriptInfo: 0x160cba4

setDebriefingText([title, description], endType)

Sets debriefing text.

C Func: 0xb24960 ScriptInfo: 0x160cbd8

SwimInDepth(height, unit)

Sets the target depth level for swimming soldier.

C Func: 0xaf3a10 ScriptInfo: 0x160cc0c

setPosASLW(pos, obj)

Sets the object position above sea surface. The pos array uses the PositionASLW format.

C Func: 0xaf2cd0 ScriptInfo: 0x160cc40

setBleedingRemaining(time, obj)

Sets bleeding time remaining.

C Func: 0xaf2bf0 ScriptInfo: 0x160cc74

setOxygenRemaining(oxygen, unit)

Sets oxygen remaining. It has no effect when soldier is not diving.

C Func: 0xaf2c60 ScriptInfo: 0x160cca8

setWindStr(value, time)

Changes the wind strength smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacd9e0 ScriptInfo: 0x160ccdc

setWindDir(azimut, time)

Changes the wind direction smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacda70 ScriptInfo: 0x160cd10

setGusts(gusts, time)

Changes the gusts value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacd490 ScriptInfo: 0x160cd44

setLightnings(value, time)

Changes the lightnings value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacd3d0 ScriptInfo: 0x160cd78

setWaves(waves, time)

Changes the waves value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacdaf0 ScriptInfo: 0x160cdac

setRainbow(rainbow, time)

Changes the rainbow value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

C Func: 0xacdb80 ScriptInfo: 0x160cde0

setLightAttenuation([startAttenuation, constantAttenuation, linearAttenuation, quadraticAttenuation, hardLimitStart, hardLimitEnd], light)

Set attenuation of light.

C Func: 0xafb400 ScriptInfo: 0x160ce14

setLightIntensity(intensity, light)

Set intensity of light.

C Func: 0xafb190 ScriptInfo: 0x160ce48

setLightDayLight(bool, light)

Sets if light can be used during day.

C Func: 0xafb200 ScriptInfo: 0x160ce7c

setLightUseFlare(useFlare, light)

Sets if light should use flare.

C Func: 0xafb280 ScriptInfo: 0x160ceb0

setLightFlareSize(flareSize, light)

Sets relative size of the flare for the light.

C Func: 0xafb300 ScriptInfo: 0x160cee4

setLightFlareMaxDistance(flareMaxDistance, light)

Sets max distance where the flare is visible.

C Func: 0xafb380 ScriptInfo: 0x160cf18

animateDoor([doorname, phase, now], object)

Process animation of door on vehicle. Animation is defined in config file. Wanted animation phase is set to phase.

C Func: 0xb3f450 ScriptInfo: 0x160cf4c

doorPhase(animation, object)

Return animation phase of door on vehicle.

C Func: 0xb3f690 ScriptInfo: 0x160cf80

revealMine(mine, side)

Sets given mine as known to the side.

C Func: 0xb03170 ScriptInfo: 0x160cfb4

synchronizeObjectsAdd([objects], unit/trigger)

Add given objects to the unit/trigger's list of synchronized objects.

C Func: 0xb924f0 ScriptInfo: 0x160cfe8

synchronizeObjectsRemove([objects], unit/trigger)

Remove given objects from the unit/trigger's list of synchronized objects.

C Func: 0xb92620 ScriptInfo: 0x160d01c

setWaypointLoiterRadius(loiter radius, waypoint)

Assignes loiter radius to waypoint

C Func: 0xb6d6c0 ScriptInfo: 0x160d050

setWaypointLoiterType(loiter type, waypoint)

Assignes loiter type to waypoint

C Func: 0xb6d7e0 ScriptInfo: 0x160d084

lbSetTooltip([index, tooltip], control)

Sets tooltip for item with the given index of the given listbox or combobox to the given data.

C Func: 0xb6b5a0 ScriptInfo: 0x160d0b8

connectTerminalToUav(UAV, person)

Connect person with UAV terminal to UAV unit

C Func: 0xb02560 ScriptInfo: 0x160d0ec

setMass(mass or [mass, time], object)

Changes the mass of an object smoothly during the given time (in seconds). A time of zero means an immediate change.

C Func: 0xb02ca0 ScriptInfo: 0x160d120

setCenterOfMass(com or [com, time]; com: vector, object)

Changes the center of mass of an object smoothly during the given time (in seconds). A time of zero means an immediate change.

C Func: 0xb02e30 ScriptInfo: 0x160d154

getObjectArgument([object, argument], map)

Return name of object argument in mission editor.

C Func: 0xd16650 ScriptInfo: 0x1611a0c

findEditorObject([type, name1, value1, ...], map)

Return object of given type with given arguments. Use [type, game value] to search by object reference of a specific editor object type.

C Func: 0xd244e0 ScriptInfo: 0x1611a40

findEditorObject(value, map)

Return object that matches the provided reference.

C Func: 0xd18840 ScriptInfo: 0x1611a74

listObjects(type, map)

Return the list of all objects of given type.

C Func: 0xd18b60 ScriptInfo: 0x1611aa8

addEditorObject([type, [name1, value1, ...], subtype class], map)

Add an object to the editor and assign arguments. Create script is called with _new equal to true. Returns the ID of the new EditorObject. Subtype class is optional.

C Func: 0xd21c80 ScriptInfo: 0x1611adc

insertEditorObject([type, value, [name1, value1, ...], subtype class], map)

Insert an object to the editor and assign arguments. Create script is not called. Returns the ID of the new EditorObject. Subtype class is optional.

C Func: 0xd21a20 ScriptInfo: 0x1611b10

setObjectArguments([object, [name1, value1, ...]], map)

Set object arguments in mission editor.

C Func: 0xd21790 ScriptInfo: 0x1611b44

getObjectProxy(object, map)

Return the proxy object associated with the given editor object.

C Func: 0xd17680 ScriptInfo: 0x1611b78

setObjectProxy([object, proxy object], map)

Set the proxy object associated with the given editor object.

C Func: 0xd17930 ScriptInfo: 0x1611bac

deleteEditorObject(object, map)

Delete the editor object. Requires all editor object links to be removed prior.

C Func: 0xd23f20 ScriptInfo: 0x1611be0

getObjectChildren(object, map)

Return a list of all the children of the specified object.

C Func: 0xd188e0 ScriptInfo: 0x1611c14

execEditorScript([object, script], map)

Execute an editor script for the specified object.

C Func: 0xd181e0 ScriptInfo: 0x1611c48

showNewEditorObject([type, class, side, position], map)

Show the add editor object dialog, type is editor object type, class is class definition to automatically select, side filters by a certain side, pos is position to create the object.

C Func: 0xd35fe0 ScriptInfo: 0x1611c7c

editObject(object, map)

Show the edit object dialog for the given object.

C Func: 0xd18d90 ScriptInfo: 0x1611cb0

onDoubleClick(command, map)

Defines an action performed when the user double clicks on the map. Command receives:

_pos array position
_units array selected units
_shift,_alt bool key state

C Func: 0xd18e30 ScriptInfo: 0x1611ce4

onShowNewObject(command, map)

Defines an action performed when the user right clicks on the map and selects New Object. Set to empty for default behavior. Command receives:

_pos array position

C Func: 0xd18ee0 ScriptInfo: 0x1611d18

selectEditorObject(object, map)

Select an editor object. Does not un-select previously selected objects.

C Func: 0xd17580 ScriptInfo: 0x1611d4c

setEditorObjectScope([objects,editor type,condition,scope,subordinates also], map)

This command defines the level of access a user has to editor objects. objects is an array of either Editor Objects (eg [_unit_0]) or actual Game Objects (eg [player]). If the array is empty then the command will automatically parse all editor objects. editor type is the editor type to effect (eg unit), or for none. condition is an executable string that must evaluate to true or false. If true, the scope of the evaluated editor object will be modified. scope is one of HIDE, VIEW, SELECT, LINKTO, LINKFROM, ALLNODRAG, ALLNOTREE or ALL. subordinates also is a boolean value, if true then subordinates in the editor will be assigned the same scope as the parent.

C Func: 0xd1d2c0 ScriptInfo: 0x1611d80

getEditorObjectScope(object, map)

Returns the editor object scope of the specified editor object.

C Func: 0xd17460 ScriptInfo: 0x1611db4

addMenuItem([menu or index,text,command,priority], map)

Creates a new menu item. Menu can be "file" or "view", index is index as returned from addMenu command. priority is optional and determines where in the menu the item will reside (higher priority items first).

C Func: 0xd25fe0 ScriptInfo: 0x1611de8

updateMenuItem([menu item index,text,command], map)

Sets the text and command for the menu item. index is index as returned from addMenuItem command. command is optional.

C Func: 0xd170d0 ScriptInfo: 0x1611e1c

removeMenuItem(index of menu item to delete, map)

Removes a previously added menu item.

C Func: 0xd20e30 ScriptInfo: 0x1611e50

removeMenuItem(text of menu item to delete, map)

Removes a previously added menu item.

C Func: 0xd20ef0 ScriptInfo: 0x1611e84

nMenuItems(menu index, map)

Returns the total number of user-added menu items belonging to the given menu.

C Func: 0xd16f30 ScriptInfo: 0x1611eb8

setEditorMode(mode, map)

Sets map mode to MAP, 3D or PREVIEW.

C Func: 0xd27900 ScriptInfo: 0x1611eec

editorSetEventHandler([handler name, function], map)

Sets given event handler of given editor.

C Func: 0xd16750 ScriptInfo: 0x1611f20

setVisibleIfTreeCollapsed([object, visible if tree collapsed], map)

Sets whether or not the object is visible even if the tree is collapsed.

C Func: 0xd177c0 ScriptInfo: 0x1611f54

addMenu([text,priority], map)

Adds a new menu button. Priority is optional.

C Func: 0xd1c2b0 ScriptInfo: 0x1611f88

createMenu(index, map)

Creates a previously added menu.

C Func: 0xd1c480 ScriptInfo: 0x1611fbc

newOverlay(config, map)

Creates the new overlay dialog for the specified type of overlay.

C Func: 0xd16890 ScriptInfo: 0x1611ff0

loadOverlay(config, map)

Creates the load overlay dialog for the specified type of overlay.

C Func: 0xd16a10 ScriptInfo: 0x1612024

lookAtPos(position, map)

Center the map on, and point the camera at, the position.

C Func: 0xd07570 ScriptInfo: 0x1612058

drawLink([from, to, param type, line type, color], map)

The editor will draw a line between the two specified editor objects. Line type can be LINE or ARROW.

C Func: 0xd23fc0 ScriptInfo: 0x161208c

removeDrawLinks([from, param type], map)

Remove all drawn links for the given editor object for the given editor object type. Pass an empty string as param type to remove all draw links for an object.

C Func: 0xd20f90 ScriptInfo: 0x16120c0

setDrawIcon([object, texture, color, offset, width, height, maintain size?, angle, string identifier, shadow, is3D, draw line?, priority], map)

Set the icon to be shown in 2D editor for the specified editor object. If maintain size is false, icon will not scale depending on the scale of the map. If maintain size is a number, the icon will maintain size if map scale is below that number. is3D, show line and priority are optional.

C Func: 0xd29ed0 ScriptInfo: 0x16120f4

updateDrawIcon([object, string identifier, color, offset, width, height, maintain size?, angle, shadow], map)

Updates the icon to be shown in 2D editor for the specified editor object. If maintain size is false, icon will not scale depending on the scale of the map. If maintain size is a number, the icon will maintain size if map scale is below that number.

C Func: 0xd17ae0 ScriptInfo: 0x1612128

removeDrawIcon([object, string identifier], map)

Removes an icon for an editor object.

C Func: 0xd18020 ScriptInfo: 0x161215c

moveObjectToEnd(object, map)

Shifts an editor object to the end of the objects array. This means that the object will be drawn last (after all other objects).

C Func: 0xd16580 ScriptInfo: 0x1612190

show3DIcons(bool, map)

Toggle the drawing of 3D icons.

C Func: 0xd07480 ScriptInfo: 0x16121c4

allow3DMode(bool, map)

Allow/dissallow 3D mode.

C Func: 0xd073d0 ScriptInfo: 0x16121f8

allowFileOperations(bool, map)

Allow/dissallow file ops (load/save etc).

C Func: 0xd07320 ScriptInfo: 0x161222c

showLegend(bool, map)

Show/hide map legend.

C Func: 0xd07280 ScriptInfo: 0x1612260

%(b, a)

The remainder of a divided by b. Note that the remainder is calculated in the real domain.

C Func: 0xf90680 ScriptInfo: 0x164087c

mod(b, a)

The remainder of a divided by b. Note that the remainer is calculated in the real domain.

C Func: 0xf90730 ScriptInfo: 0x16408b0

atan2(y, x)

Returns the arctangens of x/y. The returned value is in degrees, in the range from -180 to +180, using the signs of both parameters to determine the quadrant of the returned value.

C Func: 0xf88aa0 ScriptInfo: 0x16408e4

+(b, a)

a plus b

C Func: 0xf87e10 ScriptInfo: 0x1640918

-(b, a)

a minus b

C Func: 0xf87e70 ScriptInfo: 0x164094c

>=(b, a)

a greater or equal than b

C Func: 0xf88270 ScriptInfo: 0x1640980

<=(b, a)

a lesser or equal than b

C Func: 0xf88200 ScriptInfo: 0x16409b4

>(b, a)

a greater than b

C Func: 0xf88180 ScriptInfo: 0x16409e8

<(b, a)

a lesser than b

C Func: 0xf88110 ScriptInfo: 0x1640a1c

==(b, a)

a equal to b

C Func: 0xf88090 ScriptInfo: 0x1640a50

!=(b, a)

a is not equal to b

C Func: 0xf882f0 ScriptInfo: 0x1640a84

==(b, a)

a equal to b (case insensitive)

C Func: 0xf90810 ScriptInfo: 0x1640ab8

!=(b, a)

a is not equal to b (case insensitive)

C Func: 0xf90760 ScriptInfo: 0x1640aec

+(stringB, stringA)

stringA and stringB are concatenated.

C Func: 0xf908c0 ScriptInfo: 0x1640b20

+(arrayB, arrayA)

arrayA and arrayB are concatenated.

C Func: 0xf90c60 ScriptInfo: 0x1640b54

-(arrayB, arrayA)

All elements in arrayB are removed from arrayA.

C Func: 0xf90ec0 ScriptInfo: 0x1640b88

&&(b, a)

a and b

C Func: 0xf88370 ScriptInfo: 0x1640bbc

and(b, a)

a and b

C Func: 0xf88370 ScriptInfo: 0x1640bf0

||(b, a)

a or b

C Func: 0xf883d0 ScriptInfo: 0x1640c24

or(b, a)

a or b

C Func: 0xf883d0 ScriptInfo: 0x1640c58

&&(b, a)

a and b, b evaluated only when a is true

C Func: 0xfa1270 ScriptInfo: 0x1640c8c

and(b, a)

a and b, b evaluated only when a is true

C Func: 0xfa1270 ScriptInfo: 0x1640cc0

||(b, a)

a or b, b evaluated only when a is false

C Func: 0xfa12c0 ScriptInfo: 0x1640cf4

or(b, a)

a or b, b evaluated only when a is false

C Func: 0xfa12c0 ScriptInfo: 0x1640d28

select(index, array)

Selects index element of the array. Index 0 denotes the first element, 1 the second, etc.

C Func: 0xf912d0 ScriptInfo: 0x1640d5c

select(index, array)

If the index is false, this selects the first element of the array. If it is true, it selects the second one.

C Func: 0xf912d0 ScriptInfo: 0x1640d90

set(element, array)

Format of element is [index, value]. Changes an element of the given array. If the element does not exist, index+1 is called to create it.

C Func: 0xf91460 ScriptInfo: 0x1640dc4

resize(count, array)

Changes the array size. This function can be used to add or remove elements from the array.

C Func: 0xf91390 ScriptInfo: 0x1640df8

count(array, condition)

Counts the elements in the array for which the given condition is true. It is calculated as follows: 1) Set the count to 0. 2) For each element in the array assign an element as _x and evaluate the condition expression. If it's true, increase the count.

C Func: 0xfa1980 ScriptInfo: 0x1640e2c

forEach(array, command)

Executes the given command for each element in array. It's executed as follows: for each element of array an element is assigned as _x and the command is executed.

C Func: 0xfa1a40 ScriptInfo: 0x1640e60

in(array, x)

Checks whether x is equal to any element in the array.

C Func: 0xf89150 ScriptInfo: 0x1640e94

find(x, array)

Returns the position of the first array element that matches x, returns -1 if not found.

C Func: 0xf891c0 ScriptInfo: 0x1640ec8

then(codeToExecute, if)

The code is executed when the if condition is met. If the code is executed, the last value calculated in the code is returned. If the code is not executed, nothing is returned.

C Func: 0xfa1630 ScriptInfo: 0x1640efc

then(else, if)

The first or second element of the array is executed depending on the result of the if condition. The result of the executed expression is returned as a result (the result may be nothing).

C Func: 0xfa1720 ScriptInfo: 0x1640f30

else(elseCode, ifCode)

Constructs an array that can be processed by then.

C Func: 0xf916c0 ScriptInfo: 0x1640f64

do(code, while)

Repeats the code while the condition is true. Note: the maximum repeat count for the loop is 10000. If the condition is still true after the loop was repeated 10000 times, the loop will be terminated and an error message is shown.

C Func: 0xfa1550 ScriptInfo: 0x1640f98

do(code, with)

Execute the code inside the given namespace.

C Func: 0xf917e0 ScriptInfo: 0x1640fcc

exitWith(code, if)

if result of condition is true, evaluates code, and current block with result of code

C Func: 0xfa1b00 ScriptInfo: 0x1641000

call(body, pars)

Executes the function body. Argument pars is passed as _this.

C Func: 0xfa1310 ScriptInfo: 0x1641034

from(b, for "_var")

Continue sequence of 'for' command.

C Func: 0xf892b0 ScriptInfo: 0x1641068

to(b, for "_var" from a)

Continue sequence of 'for' command.

C Func: 0xf89330 ScriptInfo: 0x164109c

step(step, for /.../)

Optionaly can set step. If you want to count down, step must be specified, and set negative. Default value is 1.

C Func: 0xf893b0 ScriptInfo: 0x16410d0

do(code, forCommand)

End of for command, starts cycle

C Func: 0xfa3e90 ScriptInfo: 0x1641104

:(b, a)

see switch

C Func: 0xf91c40 ScriptInfo: 0x1641138

do(block, switch)

Switch form

C Func: 0xfa1de0 ScriptInfo: 0x164116c

catch(code, try-Block)

processes code, when exception is thrown in try block

C Func: 0xfa1e90 ScriptInfo: 0x16411a0

min(b, a)

The smaller of a,b

C Func: 0xf87f40 ScriptInfo: 0x16411d4

max(b, a)

The greater of a,b

C Func: 0xf87fb0 ScriptInfo: 0x1641208

setVariable([name, value], namespace)

Set variable to given value in the given namespace.

C Func: 0xf9f710 ScriptInfo: 0x164123c

getVariable(name, namespace)

Return the value of variable in the given namespace.

C Func: 0xf96e10 ScriptInfo: 0x1641270

getVariable([name, default value], namespace)

Return the value of variable in the given namespace. If not found, default value is returned.

C Func: 0xf96e10 ScriptInfo: 0x16412a4

*(expr, val)

Extend expression

C Func: 0xfedc40 ScriptInfo: 0x1642bd4

+(expr2, expr1)

Extend expression

C Func: 0xfedc60 ScriptInfo: 0x1642c08

+(val, expr)

Extend expression

C Func: 0xfedc80 ScriptInfo: 0x1642c3c

+(expr, val)

Extend expression

C Func: 0xfedca0 ScriptInfo: 0x1642c70

-(expr2, expr1)

Extend expression

C Func: 0xfedcc0 ScriptInfo: 0x1642ca4

-(val, expr)

Extend expression

C Func: 0xfedce0 ScriptInfo: 0x1642cd8

-(expr, val)

Extend expression

C Func: 0xfedd00 ScriptInfo: 0x1642d0c

min(expr2, expr1)

Extend expression

C Func: 0xfedd20 ScriptInfo: 0x1642d40

min(val, expr)

Extend expression

C Func: 0xfedd40 ScriptInfo: 0x1642d74

min(expr, val)

Extend expression

C Func: 0xfedd60 ScriptInfo: 0x1642da8

max(expr2, expr1)

Extend expression

C Func: 0xfedd80 ScriptInfo: 0x1642ddc

max(val, expr)

Extend expression

C Func: 0xfedda0 ScriptInfo: 0x1642e10

max(expr, val)

Extend expression

C Func: 0xfeddc0 ScriptInfo: 0x1642e44

factor(val, expr)

Extend expression

C Func: 0xfedde0 ScriptInfo: 0x1642e78

interpolate(val, expr)

Extend expression

C Func: 0xfede10 ScriptInfo: 0x1642eac

surprise, script-based anticheats are a waste of time