Fix turrets (#18606)

This commit is contained in:
metalgearsloth
2023-08-04 16:07:31 +10:00
committed by GitHub
parent ad47cee7f4
commit b74bd10c32
2 changed files with 6 additions and 1 deletions

View File

@@ -109,6 +109,8 @@
rootTask: rootTask:
task: TurretCompound task: TurretCompound
blackboard: blackboard:
RotateSpeed: !type:Single
3.141
SoundTargetInLOS: !type:SoundPathSpecifier SoundTargetInLOS: !type:SoundPathSpecifier
path: /Audio/Effects/double_beep.ogg path: /Audio/Effects/double_beep.ogg

View File

@@ -5,7 +5,10 @@
id: TurretCompound id: TurretCompound
branches: branches:
- tasks: - tasks:
# Shoot target if in range - !type:HTNPrimitiveTask
operator: !type:UtilityOperator
proto: NearbyGunTargets
- !type:HTNPrimitiveTask - !type:HTNPrimitiveTask
preconditions: preconditions:
- !type:KeyExistsPrecondition - !type:KeyExistsPrecondition