Jump to content

Recommended Posts

Posted

In a :

declare_loadout({
    category = CAT_PODS,
    CLSID = "Object",
    .../...
})

I define an object that I then attach to a connector via a 'pylon'.

        pylon(5, 0, 2.7, -2.1, -0.62,      -- Y longitudinal, Z élévation, X transversal
            {
               use_full_connector_position = true,
               connector = "pylon5",
               DisplayName = "Object_Name"
            },
            {
                {
                    CLSID = "Object",
                    -- arg = 16,            -- not fonctional
                    -- arg_value = 0.130,    -- not fonctional
                },
            }
        ),

My concern is that the correct form of 'Object' is linked to an arg (16) and its value (0.130), argument of the object and not of aircraft.

I don't know how to set this argument by default

Any help would be appreciated ,
Thanks

 

  • 1 year later...
Posted

AFAIK (and how I have structured my mods):

when you define the pylon, you declare the animation arg in the plane model (ex: animation to have different visible pylon types) and default value, example:

        pylon(5, 0, 2.7, -2.1, -0.62, 

        {
            arg = [YOUR ARG NUMBER] ,arg_value = 0,

Then for specific ordnance, you can change that arg value to something else, example:

{ CLSID = "[YOUR OBJECT]", arg_value = 0.13},

 

Posted
-- External Pylon Data
        Pylons =      {
            -- PYLON EXAMPLE
            -- Pylon(ID, TYPE, Y,Z,X Coords,        
            pylon(1, 0, -2.209,0.02 , -6.78,        
                {use_full_connector_position = true, arg= 308, arg_value = 1.0}, 
                --{use the connector = true/false, Animation Argument #, Default Animation Key Frame / Value            
                {    
                { CLSID = "{6CEB49FC-DED8-4DED-B053-E1F033FF72D3}", connector = "Pylon1", arg_value = 1.0},                                             
                --{ CLSID = "{CLSID-FOR-YOUR-WEAPON}", The Assigned Connector Name = "ConnectorName", The Assigned Animation Key Frame / Value]
                }
            ),  --End Of Pylon Example

 

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

  • Recently Browsing   0 members

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