forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UAB2205_script.lua
34 lines (29 loc) · 1.27 KB
/
UAB2205_script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--****************************************************************************
--**
--** File : /cdimage/units/UAB2205/UAB2205_script.lua
--** Author(s): John Comes, David Tomandl, Jessica St. Croix, Gordon Duclos
--**
--** Summary : Aeon Heavy Torpedo Launcher Script
--**
--** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
--****************************************************************************
local AStructureUnit = import("/lua/aeonunits.lua").AStructureUnit
local AANChronoTorpedoWeapon = import("/lua/aeonweapons.lua").AANChronoTorpedoWeapon
---@class UAB2205 : AStructureUnit
UAB2205 = ClassUnit(AStructureUnit) {
Weapons = {
Turret01 = ClassWeapon(AANChronoTorpedoWeapon) {},
},
OnCreate = function(self)
AStructureUnit.OnCreate(self)
self.DomeEntity = import("/lua/sim/entity.lua").Entity({Owner = self,})
self.DomeEntity:AttachBoneTo( -1, self, 'UAB2205' )
self.DomeEntity:SetMesh('/effects/Entities/UAB2205_Dome/UAB2205_Dome_mesh')
self.DomeEntity:SetDrawScale(0.45)
self.DomeEntity:SetVizToAllies('Intel')
self.DomeEntity:SetVizToNeutrals('Intel')
self.DomeEntity:SetVizToEnemies('Intel')
self.Trash:Add(self.DomeEntity)
end,
}
TypeClass = UAB2205