/// <summary> Aims one specific turretgroup at a given position </summary> /// <param name="group"> The turretgroup to aim </param> /// <param name="tgtpos"> The target position in world space </param> public void AimOneTurretGroup(TurretGroup group, Vector3 tgtpos) { if (group.Count > 0) { group.ShootSafe(); group.follow_target = false; group.direction = false; Vector3 tgt_dir = tgtpos; group.target_pos = tgt_dir; } }
/// <summary> Fires off one turretgroup </summary> /// <param name="group"> The concerned group </param> /// <param name="safe"> If the group shoul check, if it is aimed right </param> public void ShootOneTurretGroup(TurretGroup group, bool safe = true) { group.ShootSafe(); }