How to determine the game version

Messed around with this today a fair bit seeing if i could abuse it to solve another problem. Unfortunately it didnt help me much, but the script below does work.

Cheers!

Resin

OnCreate = function(self,builder,layer)
	TWalkingLandUnit.OnCreate(self)			
	local version = GetVersion()
	LOG('OnCreate, get version: ', version )

	local SteamVersion = "1.6.6" -- Note FAFClient = '1.5.3809'
	
	-- Determine which death weapon.lua to use based on FAF Client or Stand-Alone FAF played
	if version == SteamVersion then
		LOG('Stand-Alone FAF')
	else
		LOG('FAF Client')
	end
end,