FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    How to determine the game version

    Scheduled Pinned Locked Moved Modding & Tools
    1 Posts 1 Posters 77 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Resin_Smoker
      last edited by

      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,
      

      Kykhu Oss https://youtu.be/JUgyGTgeZb8
      Unit Thrower https://youtu.be/iV8YBXVxxeI
      Beam Tentacle https://youtu.be/le5SNwHvC4c
      Blackhole https://www.youtube.com/watch?v=D9NGQC5rr0c
      Resurection https://www.youtube.com/watch?v=WdbIQ4vHkMs

      1 Reply Last reply Reply Quote 0
      • First post
        Last post