stilesw
Posts: 1497
Joined: 6/26/2014 From: Hansville, WA, USA Status: offline
|
Hmm. Must be doing something wrong. I tried the following: ScenEdit_AddUnit({type = 'Sub', name = 'RedSub', dbid = 392, side = 'Red', Latitude='42.1402502809047', Longitude='-65.1030585970647', altitude = -100, proficiency="4"}) It created the sub however it is at a depth or -66 feet. Also tried altitude = "-100 ft" with the same result. Tried "depth" instead of "altitude" in case such a field existed - no change. The Baloogan Lua on-line reference does say: --AIRCRAFT SPECIFIC --Altitude: Only valid for aircraft, if a number is passed to this function it will assume its in meters, otherwise pass a string in with units; for example: "5000 ft", "2000 m", "40000 ft" --Alt is also a valid way to input altitude What am I doing wrong? Thanks. W. Stiles
|