When my object is destroyed instead of showing the destruction EDM , the unit just remains as is with a fire effect . The object itself does even dissapear in game , however on map it does
.
Shapes are as follows :
Platform_bridge.EDM
Platform_bridge_coll.EDM
Platform_bridge.lods (to describe collision edm)
Platform_bridge_Destr.EDM
Database :
local function add_structure(f)
if(f) then
f.shape_table_data =
{
{
file = f.ShapeName,
life = f.Life,
username = f.Name,
desrt = f.ShapeNameDestr or "self" ,
classname = f.classname or "lLandVehicle",
positioning = f.positioning or "ONLYHEIGTH"
}
}
if f.ShapeNameDestr then
f.shape_table_data[#f.shape_table_data + 1] =
{
name = f.ShapeName,
file = f.ShapeNameDestr,
fire = { 240, 2};
}
end
f.mapclasskey = "P0091000022";
f.attribute = {wsType_Static, wsType_Standing} -- if 'attribute' == nil then insertion will be aborted
add_surface_unit(f)
GT = nil;
else
error("Can't add helipads")
end;
end
add_structure({
Name = "Platform_bridge",
DisplayName = _("Platform_bridge"),
ShapeName = "Platform_bridge",
ShapeNameDestr = "Platform_bridge_destr",
Life = 10,
Rate = 100,
category = 'Heliport',
subCategory = 'SeaShelfObject',
SeaObject = true,
isPutToWater = true,
positioning = "NO",
classname = "lOilPlatform",
numParking = 1,
} )
Any help appreciated ! Thanks