Skip to content

Conversation

@improbable-danny
Copy link
Contributor

@improbable-danny improbable-danny commented Jan 18, 2021

Game/Content/Blueprints/NPCs/BTTask_UnocupyPatrolPoint.uasset

Modifying this to deal with the case that the object isn't set, which is valid

Before

image

After

image

Game/Content/Blueprints/NPCs/BT_NPC.uasset

Moving Unocupy before finding a new point, this ensures that if it was already assigned to a patrol point it will unassign before finding a new one.

Before

image

After

image

@improbable-prow-robot
Copy link

Corresponding JIRA ticket: https://improbableio.atlassian.net/browse/UNR-4770

@improbable-prow-robot improbable-prow-robot added jira/UNR size/XS Denotes a PR that changes 0-14 lines, ignoring generated files. labels Jan 18, 2021
Copy link
Contributor

@mironec mironec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, but I don't have a lot of context on it. Is it still success if we don't find the next patrol point?
Wouldn't that stop the NPCs patrolling altogether when it happens?

@improbable-danny
Copy link
Contributor Author

improbable-danny commented Jan 18, 2021

Is it still success if we don't find the next patrol point?

This isn't success and returns back to the first step

Wouldn't that stop the NPCs patrolling altogether when it happens?

If that were to happen it would - although it shouldn't happen now that the OccupiedBy is cleared correctly when assigning a new patrol location. Patrol points are is an array of objects which the spawner shuffles and looks for unoccupied ones, so the bug that existed was not clearing this meant that patrol points could not be found eventually

@improbable-danny improbable-danny merged commit c35709e into 0.12.0-rc Jan 19, 2021
MatthewSandfordImprobable pushed a commit that referenced this pull request Feb 3, 2021
* Release candidate for version 0.12.0.

* Upgrade preview 7 (#241)

* Update to preview 7

* update nightly steps

* Revert

* Formatting revert

* Add new line

* [UNR-4795] Reset server movement data on local client possession. (#242)

* Update to preview 8 (#243)

* Prevent values being left in PatrolPoint::OccupiedBy (#246)

* Upgrade to 15.0.0 (#247)

* Upgrade to 15.0.0

* Upgrade DeployGame

* Prepare GDK for Unreal release 0.12.0.

* Update version file

Co-authored-by: MatthewSandfordImprobable <matthewsandford@improbable.io>
Co-authored-by: Nicolas Colombe <nicolascolombe@improbable.io>
Co-authored-by: Danny Birch <danielbirch@improbable.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/UNR size/XS Denotes a PR that changes 0-14 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants