Page MenuHomeFeedback Tracker

SCR_CaptureArea
Closed, ResolvedPublic

Description

SCR_CaptureArea adds character to m_mOccupants map on every query if character inside area, but remove only 1 when character leave area
so GetOccupantsCount() returns wrong number

At line 157:
if (faction) maybe need change to if (faction && !m_mOccupants[faction].Contains(character))
for make character unique in m_mOccupants map

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Use SCR_CaptureArea class
Set activation type Every query
Enable Periodic queries
Update period 1
Class filter SCR_ChimeraCharacter

Move in to zone and wait some sec, then leave.
GetOccupantsCount(faction) returns wrong number if area is empty

Additional Information

0.9.7.61

Event Timeline

HTom created this task.Jan 22 2023, 10:26 AM
HTom edited Steps To Reproduce. (Show Details)
HTom updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Jan 25 2023, 3:29 PM
Geez changed the task status from Assigned to Confirmed Internally.May 3 2023, 11:11 AM
Geez closed this task as Resolved.Jun 22 2023, 10:01 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Thank you HTom.
The issue ahs been fixed internally and the fix will appear in one of the future updates.