Skip to content

Commit c0f15da

Browse files
committed
Fix arrest mode
1 parent 027d338 commit c0f15da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lua/background_npcs_core/modules/states/wanted/sv_wanted_actions.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ local function UpdateWantedAndSetReaction(actor, enemy)
172172
actor:SetState(reaction)
173173
end
174174

175-
actor:AddEnemy(enemy)
175+
if reaction == 'arrest' then
176+
actor:AddTarget(enemy)
177+
else
178+
actor:AddEnemy(enemy)
179+
end
176180
end
177181

178182
timer.Create('BGN_Timer_ResetPlayersImpunityLimit', 1, 0, function()

0 commit comments

Comments
 (0)