Page MenuHomeFeedback Tracker

Scripting Help: Incorrect or missing command descriptions
Closed, ResolvedPublic

Description

Command: activatedAddons
Description (old): -
Description (new): Returns a list of all activated addons. (DONE)

Command: addMagazineAmmoCargo
Example (old): rearmTruckOne AddMagazineAmmoCargo ["M16", 2,12]
Example (new): rearmTruckOne addMagazineAmmoCargo ["LMG_Mk200_F", 2,12] (DONE)

Command: allowDamage
Description (old): Obsolete.
Description (new): Allow or prevent an object being damaged (or injured, or killed). The command does not prevent object from taking scripted damage such as setHit, setHitIndex, setHitPointDamage or setDamage.
Example (old): -
Example (new): player allowDamage false (DONE)

Command: allowDammage
Description (old): Obsolete.
Description (new): Allow or prevent an object being damaged (or injured, or killed). The command does not prevent object from taking scripted damage such as setHit, setHitIndex, setHitPointDamage or setDamage.
Example (old): -
Example (new): player allowDamage false (DONE)

Command: allowFileOperations
Description (old): Allow/dissallow file ops (load/save etc).
Description (new): Allow/disallow file operations like loading and saving. (DONE)

Command: assignedTeam
Description (old): Checks which team does the vehicle (its commander unit) belong to.
Description (new): Checks which team the vehicle (its commander unit) belongs to. (DONE)

Command: buldozer_EnableRoadDiag
Description (old): -
Description (new): Enables road diagnostics in buldozer. (DONE)

Command: buldozer_IsEnabledRoadDiag
Description (old): Is enabled road diag in buldozer?
Description (new): Returns true if road diag is enabled in buldozer. (DONE)

Command: buldozer_LoadNewRoads
Description (old): -
Description (new): Generates new roads. (From biki) (DONE)

Command: setForceGeneratorRTD (Not documented on the biki and no ingame description)
Description (old): -
Description (new): ??? (NOT DONE)

Command: setObjectMaterial
Description (old): -
Description (new): Sets material of object selection. The selection number is defined through the hiddenselection[]={} array in the vehicle's config (starting with 0). (From biki) (DONE)

Command: setObjectTexture
Description (old): -
Description (new): Textures object selection with texture named in array. (From biki) (DONE)

Command: setParticleFire
Description (old): -
Description (new): Set fire parameters to particle effect. Note: You need to create emitter at first. (From biki) (DONE)

Command: setRotorBrakeRTD
Description (old): -
Description (new): Toggle a helicopter's rotor brake on or off. (From biki) (DONE, but "toggle a helicopter?s.."

Command: pushBack
Description (old): Add and element into the end of a given array.
Description (new): Adds an element to the end of a given array.
Example (old): array push_back "Hello"
Example (new): _array = [1,2,3]; _array pushBack 4; hint str _array; //[1,2,3,4] (DONE)

The commands allDead and allDeadMen have a comma at the end of their description which should be removed. (DONE)

  1. isIRLaserOn command has the description placed in the example section (DONE)
  2. All safeZone command are missing their description (DONE)
    1. safeZoneH
    2. safeZoneW
    3. safeZoneWAbs
    4. safeZoneX
    5. safeZoneXAbs
    6. safeZoneY

Details

Severity
Tweak
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

This list is far from complete. I merely listed the most obvious ones!

If anyone wants to contribute feel free to add your suggestions. Make sure to keep the descriptions and examples compact!

A full list of all commands, their description and examples can be found here (Requires Excel)

https://1drv.ms/x/s!AvgETyKiA6bQlflAnR1hXWLs3SQmRA?e=v76CP9

Additional Information
  • The navigate back button in the GUI has no text. The forward button shows ">".

Event Timeline

R3vo created this task.Dec 11 2020, 10:45 AM
R3vo updated the task description. (Show Details)
R3vo edited Steps To Reproduce. (Show Details)Dec 11 2020, 10:48 AM
R3vo edited Additional Information. (Show Details)Dec 11 2020, 11:57 AM

I think this is wrong too:

createSimpleObject [shapeName / className, position [,local]]

also wrong: forEach. Example shows string as the "command", which should be code.

should be tweaked in 147141

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jan 21 2021, 11:37 AM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
R3vo updated the task description. (Show Details)Feb 15 2021, 7:05 PM
R3vo added a comment.Feb 15 2021, 7:10 PM

I checked all the commands listed above and they are mostly done.

setRotorBrakeRTD - Has a formatting issue (helicopter?s instead of helicopter's)

forEach - Is missing a code example, the current example still uses string

addMagazineAmmoCargo - Either the description is cut off at the right side, or there's a typo, not sure

MP, P covered by scrollbar

R3vo added a comment.Mar 16 2021, 12:39 AM

Fixed/improved

LouMontana closed this task as Resolved.Mar 16 2021, 1:03 AM
LouMontana changed Resolution from Open to Fixed.