Skip to content

Conversation

mattyoung-improbable
Copy link
Contributor

@mattyoung-improbable mattyoung-improbable commented Aug 14, 2019

In AGDKCharacter::BeginPlay a callback is registered on the UEquippedComponent::HoldableUpdated. This callback is used to attach the new AHoldable to the player's skeleton.

Blueprint subclasses: BP_Base_Character, and BP_FPS_Character had overridden BeginPlay but not called the Parent function, so the callback was not attached.

This meant that if a weapon was checked out after the character, it would not be attached, and would stay floating where it was spawned.

Tests
Tested in cloud deployment with human + sim players. Saw no floating guns / empty-handed players (which were quite common)

Blueprint Diffs
image
image

@improbable-prow-robot
Copy link

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

1 similar comment
@improbable-prow-robot
Copy link

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

@improbable-prow-robot improbable-prow-robot added jira/UNR size/XS Denotes a PR that changes 0-14 lines, ignoring generated files. labels Aug 14, 2019
@mattyoung-improbable mattyoung-improbable merged commit 89ae276 into 0.6.1-hotfix Aug 14, 2019
@mattyoung-improbable mattyoung-improbable deleted the bugfix/stuck-guns branch August 14, 2019 13:27
oblm added a commit that referenced this pull request Aug 15, 2019
* DOC-1255 Clarify elements of the GDK in readme (#43)

* Clarify elements of the GDK

* Remove duplicate and outdated info

* Changes from review

* Add two_worker_test for tutorial (#44)

* Disable offloading by default (#45)

Offloading workers AIWorker / CrashWorker should not start by default in example project. Disabling offloading should have this effect.

* Add Calls to Parent BeginPlay in Character Classes (#46)

In AGDKCharacter::BeginPlay a callback is registered on the UEquippedComponent::HoldableUpdated. This callback is used to attach the new AHoldable to the player's skeleton.

Blueprint subclasses: BP_Base_Character, and BP_FPS_Character had overridden BeginPlay but not called the Parent function, so the callback was not attached.

This meant that if a weapon was checked out after the character, it would not be attached, and would stay floating where it was spawned.
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.

3 participants