Jump to content

is it yet possible to a a 3d ground object via the mods folder


jib
 Share

Recommended Posts

using the template provide I have managed to add several aircraft using the mods folder.

I want to try and model my own aircraft but I thought I would take baby steps and do a ground building first.

 

I have done the modeling now I need to get it in game.

I know how to add it the old way: http://forums.eagle.ru/showthread.php?t=79509 like this.

 

but I was wondering if anyone knows if it is possible to add a buiding with the mods folder.

 

I need to find the alternative to this command at the end for structures

 

add_aircraft("youaircraft")

 

in "your_mod".lua that is called from the entry.lua

Mods I use: KA-50 JTAC - Better Fire and Smoke - Unchain Rudder from trim KA50 - Sim FFB for G940 - Beczl Rocket Pods Updated!

Processor: Intel Q6600 @ 3.00GHz

GPU: GeForce MSI RTX 2060 6GB

RAM: Crucial 8GB DDR2

HDD: 1TBGB Crucial SSD

OS: Windows 10, 64-bit

Peripherals: Logitech G940 Hotas, TrackiR 5, Voice Activated commands , Sharkoon 5.1 headset. ,Touch Control for iPad, JoyToKey

Link to comment
Share on other sites

Yes. This is the preferred method, rather than replacing things in the default directory.

 

I don't think this is the "correct" setup for a purely static object, but this is the entry lua I'm using for an object of mine. It should be within mods/tech/[name]/.

 

-- FLOLS Mk.8 Fresnel Lens Optical Landing System

mount_vfs_model_path	(current_mod_path.."/Shapes")
mount_vfs_texture_path  (current_mod_path.."/Textures/FLOLS_Mk8.zip")

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 = "flols.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;

GT.Name = "FLOLS"
GT.DisplayName = _("FLOLS Mk.8")
GT.Rate = 1

GT.DetectionRange  = 0;
GT.ThreatRange = 0;
GT.mapclasskey = "P0091000076";
GT.attribute = {wsType_Ground,wsType_Tank,wsType_NoWeapon,wsTypeVAZ,
               };
GT.category = "Civilians";
               
add_surface_unit(GT)

  • Like 1
Link to comment
Share on other sites

Thanks a lot aaron886

 

Thanks a lot aaron886 it works great!

Mods I use: KA-50 JTAC - Better Fire and Smoke - Unchain Rudder from trim KA50 - Sim FFB for G940 - Beczl Rocket Pods Updated!

Processor: Intel Q6600 @ 3.00GHz

GPU: GeForce MSI RTX 2060 6GB

RAM: Crucial 8GB DDR2

HDD: 1TBGB Crucial SSD

OS: Windows 10, 64-bit

Peripherals: Logitech G940 Hotas, TrackiR 5, Voice Activated commands , Sharkoon 5.1 headset. ,Touch Control for iPad, JoyToKey

Link to comment
Share on other sites

  • 3 years later...

Get Thingy.....

 

No idea.

The only way to make sense out of change is to plunge into it, move with it, and join the dance.

"Me, the 13th Duke of Wybourne, here on the ED forums at 3 'o' clock in the morning, with my reputation. Are they mad.."

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...