public override void Initialize() { targetHasBeenHit = false; beenHitAnimationIsPlaying = false; targetIsDying = false; dyingAnimationIsPlaying = false; hasCompleted = false; if (this.targetGameEntity != null) { // Plot a straight path from the current player to this game entity MyWeapon.MyAmmo.MyPath = MyBoard.findPointsAlongLine3D(CurrentPlayer, targetGameEntity, 10f); MyWeapon.MyAmmo.setGraphicsMatrices(combatSystem.MyScreen.MyView, combatSystem.MyScreen.MyProjection, combatSystem.MyScreen.MyWorld); MyWeapon.fire(); } }