#****************************************************************************
#**
#** File : /cdimage/units/XEB2402/XEB2402_script.lua
#** Author(s): Dru Staltman
#**
#** Summary : UEF Sub Orbital Laser
#**
#** Copyright © 2005 Gas Powered Games, Inc. All rights reserved.
#****************************************************************************
local TStructureUnit = import('/lua/terranunits.lua').TStructureUnit
XEB2402 = Class(TStructureUnit) {
DeathThreadDestructionWaitTime = 8,
OnStopBeingBuilt = function(self)
TStructureUnit.OnStopBeingBuilt(self)
ChangeState( self, self.OpenState )
end,
OpenState = State() {
Main = function(self)
local newSat = not self.Satellite
--># Play open animations. Currently both play after unit finished, but will change
--># to play one while being built and one when finished
--># Can't use PermOpenAnimation because of the satellite
local bp = self:GetBlueprint()
self.AnimManip = CreateAnimator(self)
self.AnimManip:PlayAnim( '/units/XEB2402/XEB2402_aopen.sca' )
self.Trash:Add(self.AnimManip)
self:PlayUnitSound('MoveArms')
WaitFor( self.AnimManip )
Statistics: Posted by A_vehicle — 17 Aug 2014, 03:23