Lua ScenEdit_AddUnit issue
Posted: Sat Jun 10, 2017 7:04 pm
I tried to add a downed pilot to a scenario through Lua script, but no matter what I do I end up with the downed pilot and an unknown contact "MOBILE #11" (class unknown, side unknown) on the same location as the downed pilot.
This is the action I use:
I tried different triggers (time, random time, unit enters area...) but no luck.
What am I doing wrong?
This is the action I use:
Code: Select all
ScenEdit_AddUnit({type = 'Land', name = "Pilot #1", dbid = 2046, side = 'NATO', latitude = '22.16', longitude= '-79.70', autodetectable = 'true', holdfire = 'true', proficiency = 4})What am I doing wrong?