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:
task: TurretCompound
blackboard:
RotateSpeed: !type:Single
3.141
SoundTargetInLOS: !type:SoundPathSpecifier
path: /Audio/Effects/double_beep.ogg

View File

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