Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hemtt utils sqf case

This will recursively correct all capitalization mistakes in SQF commands.

Usage: case <PATH>

Arguments:
  <PATH>  

Options:
  -h, --help  Print help (see more with '--help')

Description

This will recursively correct all capitalization mistakes in SQF commands.

Danger

This command requires manual review. It can have lots of false positives so you are strongly encouraged to check each modified file to ensure it is correct.

Example

private _positionASL = GetPosasl Player;
// becomes
private _positionASL = getPosASL player;

False Positives

This command does not full parse your SQF files.

It will not change words in strings in comments, but it may change words that will break your program

// script_macros.hpp
#define FALSE 0
#define TRUE 1

// fnc_someFunction.sqf
if (getNumber (configFile >> "someClass" >= TRUE)) then {...};
// becomes
if (getNumber (configFile >> "someClass" >= true)) then {...};
private _value = player getVariable [QGVAR(showHud), false];
// becomes
private _value = player getVariable [QGVAR(showHUD), false];

Arguments

<PATH>