module Base { model W460LWBwindowfl { mesh = vehicles/Vehicles_84mercLWB_Body|w460_lwb_window_fl, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fl_bone 1.0, } model W460LWBwindowfr { mesh = vehicles/Vehicles_84mercLWB_Body|w460_lwb_window_fr, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_fr_bone 1.0, } model W460LWBwindowrl { mesh = vehicles/Vehicles_84mercLWB_Body|w460_lwb_window_rl, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_rl_bone 1.0, } model W460LWBwindowrr { mesh = vehicles/Vehicles_84mercLWB_Body|w460_lwb_window_rr, shader = vehicle, static = FALSE, scale = 0.1, boneWeight = window_rr_bone 1.0, } template vehicle W460LWB4Windows { 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 WindowRearLeft { model windowRLlwb { file = W460LWBwindowrl, } anim ClosedToOpen { anim = window_rl_opening, animate = FALSE, rotate = 60 0 0, } parent = DoorRearLeft, area = SeatRearLeft, itemType = Base.W460SideWindow, table install { requireInstalled = DoorRearLeft, } table uninstall { requireUninstalled = W460LWBDoorRearLeftArmor, } } part WindowRearRight { model windowRRlwb { file = W460LWBwindowrr, } anim ClosedToOpen { anim = window_rr_opening, animate = FALSE, } parent = DoorRearRight, area = SeatRearRight, itemType = Base.W460SideWindow, table install { requireInstalled = DoorRearRight, } table uninstall { requireUninstalled = W460LWBDoorRearRightArmor, } } 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, } } } }