Just trying to do a simple script. It works on lua demo but in game it gives me the following error.
lua :3: unexpected symbol near ','
do
local x = trigger.misc.getUserFlag('2')
triggeraction.outText(x .. " points " .. 70)
end
also tied
do
local x = trigger.misc.getUserFlag('2')
triggeraction.outText(x .. " points " .. , 70)
end
which gives the the error lua :3: unexpected symbol near ',' both in game and in lua demo
Tried trigger.action as well.
Its driving me mad.
Any help would be welcome
Thanks
Edit
Changes I make to my lua script dont take. When I look in the tmp file that dcs uses it completely different. Even if I change the var x to y in my file the temp version still reads x.
Got it working but have to use do script instead of script file which is not ideal