Jump to content

Farp Lua


Gone1Crazy

Recommended Posts

Is there any other way of mounting the farp luas Dif than this ? 
Any posibilities of mod the spawn point ?? since last patch on custom farps Im exploding on spawn .

Thanks in advance
 

Spoiler

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"    --available: {"BYNORMAL", "ONLYHEIGTH", "BY_XZ", "ADD_HEIGTH"}
            }
        }
        if f.ShapeNameDestr then
            f.shape_table_data[#f.shape_table_data + 1] = 
            {
                name  = f.ShapeName,
                file  = f.ShapeNameDestr,    
            }
        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          =  "TEST",
DisplayName  = _("*TEST"),
ShapeName     =   "TEST",
Life         =  1,
Rate         =  100,
category     =  'Heliport',
subCategory     =  'SeaShelfObject', -- only for ME 
SeaObject    =     true,
isPutToWater =  true,
positioning  =     "NO",
--positioning  =     "NO",
classname    =  "lOilPlatform",
numParking   =  1,
})

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • Recently Browsing   0 members

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