home *** CD-ROM | disk | FTP | other *** search
- shooterInterval = function()
- {
- var _loc1_ = this;
- if(_loc1_.active)
- {
- _loc1_.shooterIntervalAct = _loc1_.shooterIntervalAct + 1;
- if(_loc1_.shooterIntervalAct >= _loc1_.shooterInterval)
- {
- _loc1_.shooterIntervalAct = 0;
- new _root.CShot({x:_loc1_.x + _loc1_.gfx.hotspot._width * 0.5,y:_loc1_.y + _loc1_.gfx.hotspot._height},Math.vector(_loc1_.shooterVx,_loc1_.shooterVy / 2),_loc1_.shooterLibId ne "" ? _loc1_.shooterLibId : "monsterShot",false,_root.eventPlayerDie,_loc1_.shooterShotMaxAge);
- trace("attach monsterShot");
- }
- }
- };
- shooterIntervalInit = function(mc, engine)
- {
- mc.shooterIntervalAct = 0;
- };
-