['UNIT_229'] = {
['Orientation'] = VECTOR3( 0.0, -8.822649, 0.0 ),
['platoon'] = STRING( '' ),
['orders'] = STRING( '' ),
['type'] = STRING( 'uel0201' ),
['Position'] = VECTOR3( 258.240875, 19.442125, 250.59201 )}
Statistics: Posted by Lionhardt — 07 Feb 2018, 20:02
Statistics: Posted by ozonex — 07 Feb 2018, 17:59
-- compensates for differing interfaces of units and markers
-- keyword should be capitalized for this to make sense
function access(container, keyword)
ret = container[keyword]
if ret == nil then
ret = container[string.lower(keyword)]
end
if ret == nil then
except("access error: unkown keys: "..keyword..", "..string.lower(keyword))
end
return ret
end
-- compensates for differing interfaces of units and markers
-- keyword should be capitalized for this to make sense
function insert(container, keyword, value)
if container[keyword] == nil then
if container[string.lower(keyword)] == nil then
except("access error: unkown keys: "..keyword..", "..string.lower(keyword))
else
container[string.lower(keyword)] = value
end
else
container[keyword] = value
end
return container
end
Statistics: Posted by Lionhardt — 07 Feb 2018, 17:35
Statistics: Posted by ozonex — 07 Feb 2018, 17:23
['Mass 1'] = {},
Mass 1 = {},
Statistics: Posted by speed2 — 07 Feb 2018, 17:09
Statistics: Posted by Lionhardt — 07 Feb 2018, 15:54
function VECTOR3(x, y, z)
return {x, y, z}
end
public const string KEY_POSITION = "position";
position = LuaParser.Read.Vector3FromTable(Table, KEY_POSITION);
public const string KEY_POSITION = "Position";
NewUnit.Position = LuaParser.Read.Vector3FromTable(UnitsTables[i], KEY_POSITION);
Statistics: Posted by ozonex — 07 Feb 2018, 15:41
['UNIT_228'] = {
type = 'urb2101',
orders = '',
platoon = '',
Position = { 23.500000, 37.507813, 249.500000 },
Orientation = { 0.000000, -3.141593, 0.000000 }
}
['Mass 16'] = {
['size'] = FLOAT( 1.000000 ),
['resource'] = BOOLEAN( true ),
['amount'] = FLOAT( 100.000000 ),
['color'] = STRING( 'ff808080' ),
['editorIcon'] = STRING( '/textures/editor/marker_mass.bmp' ),
['type'] = STRING( 'Mass' ),
['prop'] = STRING( '/env/common/props/markers/M_Mass_prop.bp' ),
['orientation'] = VECTOR3( 0, -0, 0 ),
['position'] = VECTOR3( 309.5, 28.2969, 347.5 )
}
['UNIT_228'] = {
Position = { 23.500000, 37.507813, 249.500000 },
Orientation = { 0.000000, -3.141593, 0.000000 }
}
['Mass 16'] = {
['orientation'] = VECTOR3( 0, -0, 0 ),
['position'] = VECTOR3( 309.5, 28.2969, 347.5 )
}
function VECTOR3(x, y, z)
return {x, y, z}
end
['position'] = VECTOR3( 309.5, 28.2969, 347.5 )
['position'] = { 309.5, 28.2969, 347.5 }
['UNIT_228'] = {
Position = { 23.500000, 37.507813, 249.500000 },
Orientation = { 0.000000, -3.141593, 0.000000 }
}
['Mass 16'] = {
orientation = { 0, -0, 0 },
position = { 309.5, 28.2969, 347.5 }
}
Statistics: Posted by Lionhardt — 07 Feb 2018, 15:07