criteria humanprefabidentifier works weirdly
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [X] My issue happened while using mods.
What happened?
For some reason criteria humanprefabidentifier work for raptor owner (the only reference in code for it) and not work on characters that are in the player's team
Reproduction steps
Make character prefab (like aunt Dorris) Make event that triggers after you hired the character Add as a criteria humanprefabidentifier:[created character] See that it not finding it for some reason
As you can see from screenshots required character is existing but event won't go further
Bug prevalence
Happens every time I play
Single player or multiplayer?
Happens in both single player and multiplayer
-
No response
Version
v1.2.8.0 (Winter Update hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
It seems the issue here was the NPC lost the reference to the prefab when hired to the crew (in a sense making them no longer instances of that prefab). Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/9114293a1d54f10bfb15db6b06b216ab85da51d4