Hello everybody !
I try to modding an airfield (object) in dcs, but i have problem with collision of my 3d object...
I have assigned This properties TYPE="renderable|collision_shell";
but When I am less than 2m from the ground, i have my screen which froze and my game bug
...
Do you have an idea??
this is my .lua
mount_vfs_model_path (current_mod_path.."/Shapes/");
mount_vfs_texture_path (current_mod_path.."/Textures/");
GT = {};
GT_t.ws = 0;
set_recursive_metatable(GT, GT_t.generic_stationary)
set_recursive_metatable(GT.chassis, GT_t.CH_t.STATIC);
GT.chassis.life = 5000
GT.visual.shape = "MapVFA20x20";
GT.visual.shape_dstr = "MapVFA20x20";
--Burning after hit
GT.visual.fire_size = 0; --relative burning size
GT.visual.fire_pos = {0,0,0};
GT.visual.fire_time = 0; --burning time (seconds)
GT.time_agony = 1;
--Name Stuff
GT.Name = "MapVFA20x20";
GT.DisplayName = _("MapVFA20x20");
GT.Rate = 1;
GT.DetectionRange = 0;
GT.ThreatRange = 0;
GT.mapclasskey = "P0091000076";
GT.attribute = {wsType_Ground,wsType_Tank,wsType_Gun,wsType_Gener icFort,
"Fortifications",
};
GT.category = "Fortification";
add_surface_unit(GT)
Regards.
PS: yesterday i posted this message in other bad category you can delete it