module Base { template vehicle W460LWB2Windows { part WindowFrontLeft { model windowFLlwb { file = W460LWBwindowfl, } anim ClosedToOpen { anim = window_fl_opening, animate = FALSE, } parent = DoorFrontLeft, area = SeatFrontLeft, itemType = Base.W460SideWindow, table install { requireInstalled = DoorFrontLeft, } table uninstall { requireUninstalled = W460LWBDoorFrontLeftArmor, } } part WindowFrontRight { model windowFRlwb { file = W460LWBwindowfr, } anim ClosedToOpen { anim = window_fr_opening, animate = FALSE, } parent = DoorFrontRight, area = SeatFrontRight, itemType = Base.W460SideWindow, table install { requireInstalled = DoorFrontRight, } table uninstall { requireUninstalled = W460LWBDoorFrontRightArmor, } } part Window* { category = door, mechanicRequireKey = true, window { openable = true, } table install { items { 1 { type = Base.Screwdriver, count = 1, keep = true, equip = primary, } } time = 500, skills = Mechanics:3, recipes = Intermediate Mechanics, test = Vehicles.InstallTest.Default, complete = Vehicles.InstallComplete.Window, } table uninstall { items { 1 { type = Base.Screwdriver, count = 1, keep = true, equip = primary, } } time = 500, skills = Mechanics:3, recipes = Intermediate Mechanics, test = Vehicles.UninstallTest.Default, complete = Vehicles.UninstallComplete.Default, } lua { create = Vehicles.Create.Window, init = Vehicles.Init.Window, } } } }