how to make an attribute the sum of two others?

imacgsimacgs Member, PRO Posts: 9

Hi everybody
I have three game attributes: hits, missed and score.
all three are integers
What I want to do is have the score attribute equal hits minus missed

Is there an easy way to do this?

Thanks
Pete

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Either Change or Constrain Attribute game.score to game.hits - game.missed.

  • imacgsimacgs Member, PRO Posts: 9

    @tatiang said:
    Either Change or Constrain Attribute game.score to game.hits - game.missed.

    Hey thanks the constrain worked perfect
    :)

Sign In or Register to comment.