This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
MissionScriptsDynamicUtils
Rey edited this page Oct 11, 2017
·
3 revisions
Ver sion |
Utility function Description |
Parameters and types |
Returns |
---|---|---|---|
7000+ | AbsI Returns absolute value of specified integer |
aValue: Integer; | Integer |
7000+ | AbsS Returns absolute value of specified single number |
aValue: Single; | Single |
7000+ | ArrayElementCount Checks how many times specified string comes in requested array |
aElement: AnsiString; aArray: array of String; |
Integer |
7000+ | ArrayElementCountB Checks how many times specified boolean comes in requested array |
aElement: Boolean; aArray: array of Boolean; |
Integer |
7000+ | ArrayElementCountI Checks how many times specified integer comes in requested array |
aElement: Integer; aArray: array of Integer; |
Integer |
7000+ | ArrayElementCountS Checks how many times specified single comes in requested array |
aElement: Single; aArray: array of Single; |
Integer |
7000+ | ArrayHasElement Checks whether requested array has specified string |
aElement: AnsiString; aArray: array of String; |
Boolean |
7000+ | ArrayHasElementB Checks whether requested array has specified boolean |
aElement: Boolean; aArray: array of Boolean; |
Boolean |
7000+ | ArrayHasElementI Checks whether requested array has specified integer |
aElement: Integer; aArray: array of Integer; |
Boolean |
7000+ | ArrayHasElementS Checks whether requested array has specified single number |
aElement: Single; aArray: array of Single; |
Boolean |
7000+ | EnsureRangeI Returns the closest to aValue integer that is in interval [aMin..aMax] |
aValue: Integer; aMin: Integer; aMax: Integer; |
Integer |
7000+ | EnsureRangeS Returns the closest to aValue single number that is in interval [aMin..aMax] |
aValue: Single; aMin: Single; aMax: Single; |
Single |
7000+ | IfThen Checks condition aBool and returns aTrue/aFalse string depending on check result |
aBool: Boolean; aTrue: AnsiString; aFalse: AnsiString; |
AnsiString |
7000+ | IfThenI Checks condition aBool and returns aTrue/aFalse integer depending on check result |
aBool: Boolean; aTrue: Integer; aFalse: Integer; |
Integer |
7000+ | IfThenS Checks condition aBool and returns aTrue/aFalse single number depending on check result |
aBool: Boolean; aTrue: Single; aFalse: Single; |
Single |
7000+ | InAreaI 2D variant of InRange, can be used for unit locs checks |
aX: Integer; aY: Integer; aXMin: Integer; aYMin: Integer; aXMax: Integer; aYMax: Integer; |
Boolean |
7000+ | InAreaS 2D variant of InRange |
aX: Single; aY: Single; aXMin: Single; aYMin: Single; aXMax: Single; aYMax: Single; |
Boolean |
7000+ | InRangeI Checks whether specified aValue is in interval [aMin..aMax] |
aValue: Integer; aMin: Integer; aMax: Integer; |
Boolean |
7000+ | InRangeS Checks whether specified aValue is in interval [aMin..aMax] |
aValue: Single; aMin: Single; aMax: Single; |
Boolean |
7000+ | MaxI Returns max number of two specified |
A: Integer; B: Integer; |
Integer |
7000+ | MaxInArrayI Returns max number of array elements |
aArray: array of Integer; | Integer |
7000+ | MaxInArrayS Returns max number of array elements |
aArray: array of Single; | Single |
7000+ | MaxS Returns max number of two specified |
A: Single; B: Single; |
Single |
7000+ | MinI Returns min number of two specified |
A: Integer; B: Integer; |
Integer |
7000+ | MinInArrayI Returns min number of array elements |
aArray: array of Integer; | Integer |
7000+ | MinInArrayS Returns min number of array elements |
aArray: array of Single; | Single |
7000+ | MinS Returns min number of two specified |
A: Single; B: Single; |
Single |
7000+ | Power Exponentation, returns base "Base" raised to power "Exp". F.e. Power(3, 2) = 3^2 = 9 |
Base: Extended; Exp: Extended; |
Extended |
7000+ | Sqr Returns A^2 = A*A |
A: Extended; | Extended |
7000+ | SumI Returns sum of the elements of requested array |
aArray: array of Integer; | Integer |
7000+ | SumS Returns sum of the elements of requested array |
aArray: array of Single; | Single |
7000+ | TimeToString Converts game ticks count into string: HH:MM:SS Can be used for scripted timers |
aTicks: Integer; | AnsiString |