Forum rules - please read before posting.

Enemy HP

Hi Chris,
I am thinking to assign an individual HP var to every enemy in the scene.
In the scene, there are 3 enemies NPC from the same prefab.
So I want to assign an individual HP var to these 3 enemies NPC and I can get any one of the enemy HP var by action: var check.
Can it be done something similar in AC? Thanks for your help.

Comments

  • You can attach a Variables component to the prefab, and define an Integer in it to represent the HP.

    The Variable: Check and Variable: Set Actions can both work with Component variables, allowing you to manipulate each NPC's HP separately.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.