Enemy Health Points, And some other stuff

SomeRandomDudeSomeRandomDude Member Posts: 2
edited November -1 in Working with GS (Mac)
I need to know how to make a enemy actor have health point so he can take more than one hit.
Tried around but cant find a way to fix it.

Another thing, when my mouse is in the screen i want it to look like aim, how do you do that?

And the last thing, i have a gun but when i shoot stuff it dont spawn where i want it to spawn how do i do so it spawn on the tip of the gun.

Comments

  • PPenguinPPenguin Member, PRO Posts: 110
    Easy, just create an integer attribute equal to the number of hits you want the enemy to take.

    Then create a rule that says when the enemy collides with your bullet or whatever, change attribute enemyhealth to enemyhealth-1.

    Create another rule that says when enemyhealth = 0, destroy this actor.

    As for the crosshairs, I don't know if you can change the mouse pointer, but you can have crosshairs follow the mouse around.. Search the wiki on how to make an actor follow something.

    As for your last question, I think when you spawn an actor, there are options for the location offset.. I don't know much about it yet, but I think that's how it works.
Sign In or Register to comment.