Jump to content
Sign in to follow this  
Paulus141

How to set hitpoints for players?

Recommended Posts

Hello,

I need some advice on how to set up players hitPoints at the beginning of game.

I know that there is a possibility to set different hitpoints to NPC, via "SET HIT POINTS ENTITY" . But this only works on NPC humans and animals.

Share this post


Link to post
Share on other sites
3 hours ago, TomasGestinger said:

Hey, try setting this basic script on the Spawn logic and let me know if it's enough for what you need.?

Annotation 2020-02-12 105941.png

I think that would set them to half of their hearts, and the HP would regenerate over time, back up to 100.  I don't have access to my game right now, but isn't there a SET MAX tile for hit points?

Share this post


Link to post
Share on other sites

Yes, that is what I wanted to set. I did not use "ON PLAYER SPAWN", but "ON GAME START" and didnt move the "player" variable to SET HP Entity   .... novice...

Děkuji za ponaučení.  ? 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×