Skip to content

Commit

Permalink
Fix an OnImpact error for CZAR depth charges (#6430)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Sep 21, 2024
1 parent 8515d11 commit 96358c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/snippets/fix.6430.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6430) Fix an `OnImpact` error caused by CZAR's depth charges.
1 change: 1 addition & 0 deletions projectiles/AANDepthCharge01/AANDepthCharge01_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ AANDepthCharge01 = ClassProjectile(ADepthChargeProjectile) {

---@param self AANDepthCharge01
OnImpact = function(self, TargetType, TargetEntity)
self.HasImpacted = true
local px, _, pz = self:GetPositionXYZ()
local marker = VisionMarkerOpti({ Owner = self })
marker:UpdatePosition(px, pz)
Expand Down

0 comments on commit 96358c4

Please sign in to comment.