Making a Kill Count in my shooter (First time Program)

Hi Everyone,

This is my first time writing a program for an oculus. While a lot of it is intuitive, there are some nuisances that I think a beginner like me wouldn’t understand but are very fundamental for someone who knows what they are doing. This is also my first post to the forum so if my pictures are not helpful or I can do better with next questions please let me know!

As of now I have a first-person shooter where enemies die. I would like to add a counter to this game that displays on the HUD when the user kills a target. For some reason I am getting some pretty serious errors trying to have the enemy death trigger a stat update on the user controller character. Any help would be greatly appreciated and thank you in advance!



I can’t see where you’re trying to use “Character Ref” that’s the cause of the error.

Hi there,

Sorry. Here is the other screen shot of the widget I was attempting to create.

Thanks!

Your CharacterRef probably remains NULL.
Connect some PrintString nodes to the Cast node to see if Casting is successful, and another one after setting CharacterRef to see the name of the CharacterRef.