Method for identifying TC / AP
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Method for identifying TC / AP
Hey guys, I am looking for a script wise method for identifying, if a game is TC or AP. Is this possible?
... yepp, it is ^^
// edit: shame @ egosoft !! ... since appearance of X3AP there is an error in the TC script editor, they added 2 new weapon instructions, one of those does nothing
Code: Select all
$Game.Is.X3AP = get script engine version
$Game.Is.X3AP = $Game.Is.X3AP >= 50
if $Game.Is.X3AP
... code 4 AP
else
... code 4 TC
end
Last edited by JSDD on Tue, 3. Jun 14, 18:21, edited 1 time in total.
To err is human. To really foul things up you need a computer.
Irren ist menschlich. Aber wenn man richtig Fehler machen will, braucht man einen Computer.
Mission Director Beispiele
Irren ist menschlich. Aber wenn man richtig Fehler machen will, braucht man einen Computer.
Mission Director Beispiele
Thank you very much, JSDD
I modified your code a bit, as 'get script engine version' did not work for me, at least not with X Studio v1.08...
I modified your code a bit, as 'get script engine version' did not work for me, at least not with X Studio v1.08...
Code: Select all
$script.engine.version = script engine version
if $script.engine.version >= 50
... code 4 AP
else
... code 4 TC
end