Jump to content

2.7 crashes immediately after setting UserFlag to something different than a number or a boolean


rtyfgv

Recommended Posts

Code

function test(level)
    trigger.action.setUserFlag('1',level)
end

missionCommands.addCommand('test', nil, test, nil) 

 

I know the documentation is clear about the values that can be set to a UserFlag, but a mistake initializing a variable causes a mess and it's hard to debug

I made a mission to test that. The mission has a command menu named test, when you select it, DCS crashes immediately

 

test.miz

And never forget, a pilot greatest virtue is to know when to run.

What's this, a joke? Run away from a fight?

Yes! If you cannot win, you fly away! Fast!

It's a thin line between cowardice and cleverness.

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...