I’ve given my player character a GodMode flag to make them invulnerable for debugging, and I’ve made that flag publicly editable. However, I’m spawning the player from a spawn point, and I don’t know how to ‘inject’ my desired value into the player when they spawn. Any help would be really appreciated!
There are many ways to do this.
You could add an overlap shape to the spawn, and in the begin overlap, set the value.
If you only want to do this on initial spawn, also use a boolean for “was initialized”
Why not set the GodMode variable to “Expose on Spawn” and set it directly when spawning the actor at the spawn point?
You can then connect it to a specific external variable dictated by the spawn process.
If it’s multiplayer then I’m guessing the spawn happens on Event OnPostLogin in Your game mode. So you can probably set it there just before possessing your character.