NullReferenceException (Shooter 2)
If you encounter a NullReferenceException similar to the following after changing a part, preset, color, or bodyshape of your character:
Error: NullReferenceException (GameCreator.Runtime.Shooter.RigShooterHuman.UpdateFK)
Cause
HeroBridge works with Sidekick’s Runtime API, and under the hood it also relies on Game Creator 2’s API, specifically the Change Model method. Whenever you modify a part, color, preset, or bodyshape, HeroBridge triggers a model change using Game Creator’s Change Model method.
However, in Shooter 2, changing the character’s model while a weapon is equipped cause the RigShooterHuman system to lose its references, resulting in the NullReferenceException error.
A bug report has been submitted regarding this issue so it can be addressed in a future update of Game Creator 2.
Last updated