Sawamura Posted September 14, 2015 Posted September 14, 2015 I'm struggling to find a way to get a bunch of ground objects into one mod structure(for the mods/tech folder). So far I have only accomplished to have one mod for 1 single ground object, but want to put them all in one. The following code is from another mod I downloaded, where only 1 object is designated. mount_vfs_model_path (current_mod_path.."/Shapes") mount_vfs_texture_path (current_mod_path.."/Textures") GT = {}; set_recursive_metatable(GT, GT_t.generic_stationary) set_recursive_metatable(GT.chassis, GT_t.CH_t.STATIC); GT.chassis.life = 1 GT.visual.shape = "11sqhangar.EDM" GT.visual.shape_dstr = "" --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 = 180; --Name Stuff GT.Name = "11SQ Barracks" GT.DisplayName = _("11SQ Hangar") GT.Rate = 1 GT.DetectionRange = 0; GT.ThreatRange = 0; GT.mapclasskey = "P0091000076"; GT.attribute = { wsType_Ground,wsType_Tank,wsType_Gun,wsType_GenericTank, }; GT.category = "Civilians"; add_surface_unit(GT) Can someone help me please getting the code right for 14 objects in total? The EDMs are 11sqbarracks.EDM 11sqhangar.EDM 21sqeducation.EDM 21sqhangar1.EDM 21sqhangar2.EDM 21sqoperation.EDM firebarracks.EDM ilsbuilding.EDM minibarracks.EDM oldhangar.EDM radar.EDM rescuehangar.EDM rescueoffice.EDM subtower.EDM All the models are in the 'Shapes' folder and all the textures in 'Textures'. Thanks a lot in advance.
Recommended Posts