How do I Create An Attribute Within An Actor That Is Not Global?

teamepiphanyteamepiphany Member Posts: 3
edited March 2012 in Working with GS (Mac)
Im not sure exactly how to word this but im looking to make enemies that require more then one hit to destroy them. My first thought was to create a attribute related to heath, but then i realized this would effect all enemyies globally. So what im looking for is a way to have each indiviguel enemy have them own health system that doesn't effect all of the same actor but at the same time doesnt require me to make a unique atribute for every enemy on the screen.

Hopefully this make sense

thanks

Comments

  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    Open up an actor prototype (from the actor's list). YOu will see all of its self attributes on the left side. Click the little + sign, and you'll be able to add a new self attribute. Then, when you make rules for this actor, you can reference this self attribute and it'll do what you want.
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    edited March 2012
    Yes, you can make local attributes.

    So make an enemy actor. Make a self attribute HP inside that actor.

    Then each instance of that actor will have it's own HP attribute.
  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291
    edited March 2012
    Comment Removed!
  • teamepiphanyteamepiphany Member Posts: 3
    @LiquidGameworks @HoneyTribeStudios Thanks for the help I got it to work :)


Sign In or Register to comment.