Hi everyone
A newbie here. Well, being a good (enough) JS dev I decided i would try to make a simple game. A few questions came as i tried.
-
Health system
What is the right approach for creating a health system? I imagine creating a JS component in the base character. Then in the assigned file I’m declaring a variable = 100. Then I create a function to subtract 10 on each hit. -
Calling a JS function from within blueprint
Assuming i have the above, how can i call it, hit play and subtract the health of another player. (having in mind that i created a lobby with a few players and shooting system)