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