Reference ID
5bb150cd-4c18-6de8-aba0-3e8115edd959
Please select what you are reporting on:
Creative
What Type of Bug are you experiencing?
Assets
Summary
I have a scenario where I am using multiple Class Selector devices to allow the player to switch between classes during the game. In some cases the player triggers the device using the built-in collision/overlap, in other cases, I programmatically call the ChangeClass
event on an agent directly.
The problem is that if the Class Selector “Clear Items on Switch” flag is enabled, certain inventory items will always be dropped when switching classes. And if the flag is disabled, certain inventory items will occasionally get dropped when switching classes and once this happens, those same items will not be re-granted if the player switches between another class.
Steps to Reproduce
Test 1:
- Create 2 class designers for Class 1 & 2
- For class 1, add the bandage bazooka to the item list
- For class 2, add the guardian hammer to the item list
- Create 2 class switchers and assign the 2 classes above to them
- Enable the “Clear Items on Switch” flag for both Class Selectors
- Play the game and walk over the 2 class switchers multiple times
Test 2:
- Create 2 class designers for Class 1 & 2
- For class 1, add the bandage bazooka to the item list
- For class 2, add the guardian hammer to the item list
- Create 2 class switchers and assign the 2 classes above to them
- Disable the “Clear Items on Switch” flag for both Class Selectors
- Write some code that references the 2 class switchers and switch the player between classes, it could be as simple as in a loop, some code like this:
loop:
ClassSwitcher1.ChangeClass(TheAgent)
Sleep(10.0)
ClassSwitcher2.ChangeClass(TheAgent)
Sleep(10.0)
- Play the game
Expected Result
Test 1:
The player should switch between classes, items in inventory should be cleared, no items should end up on the ground.
Test 2:
The player should switch between classes, item behavior is unclear because “Clear items on switch” being disabled indicates items should remain in inventory. No items should end up on the ground.
Observed Result
Test 1:
Player is switched to next class but guardian hammer/bandage bazooka are dropped on ground on every class switch.
Test 2:
Player is switched to next class, inventory is cleared, about 15% of the time, an item is dropped on the ground. This item is no longer granted on class switch the next time the class is granted to this agent.
Platform(s)
windows11
Additional Notes
edit
Sorry, the auto-population when selecting bug report from UEFN put this in an odd category. This was supposed to be tagged as a device bug.