ItsMods

Full Version: getBuildNumber and getBuildVersion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

This is another tutorial of 2 commands I have just found, they are related with game engine (version).

They are: getBuildNumber() and getBuildVersion(). The first one gives the engine build number and the second one the version.

Example of usages:

Code:
self iPrintLnBold( getBuildNumber() + ":" + getBuildVersion() );

Code:
level.versionnumber = getBuildNumber();
level.version = getBuildVersion();

I hope someone finds a use for it, Tongue
IW fails
(03-31-2012, 20:25)JayDi Wrote: [ -> ]IW fails

IW is cool.
FFS,
Code:
if(level.version != "1.3.37a")
{
iprintlnBold("Y U NO ALTERIWNET");
}
also we can get it by dvar, "version"
(03-31-2012, 20:28)JayDi Wrote: [ -> ]FFS,
Code:
if(level.version != "1.3.37a")
{
iprintlnBold("Y U NO ALTERIWNET");
}
also we can get it by dvar, "version"

Using the code from the example I got 69:IW4 on aIW