Game scoring question - Multiply two attributes to create another new one
Hello
I am working on my next project and I have a question!
I have two game integer attributes called 'Blips Caught' and 'Blip Shots' - both are just numbers
When a attribute called Blip Caught' is true I want the two above attributes to multiply themselves together and save under a new attribute called 'Stage Score' and then I would like this to be added to the existing 'Main Score'
Can someone please show me how to do this? I have tried - game.Blips Caught*game.Blip Shots in the expression manager but it keeps showing '0'.
I have an invisible actor displaying the 'Stage score' and one also for the 'Main Score'
Any ideas would be great.
Thanks
Anthony @ ZB.
I am working on my next project and I have a question!
I have two game integer attributes called 'Blips Caught' and 'Blip Shots' - both are just numbers
When a attribute called Blip Caught' is true I want the two above attributes to multiply themselves together and save under a new attribute called 'Stage Score' and then I would like this to be added to the existing 'Main Score'
Can someone please show me how to do this? I have tried - game.Blips Caught*game.Blip Shots in the expression manager but it keeps showing '0'.
I have an invisible actor displaying the 'Stage score' and one also for the 'Main Score'
Any ideas would be great.
Thanks
Anthony @ ZB.
It takes a Zombie to know a Zombie!!!
Best Answer
-
tenrdrmer Posts: 9,934
you have to actually select each attribute from the drop down. you cannot just type them in.
you would use change attribute game.stagescore to game.blipscaught*game.blipsshot
Answers
That works a treat...I knew you had to use the drop downs and not type. Turned out I was using the wrong attribute, had one with a similar name.
Thanks again for showing me the right expression.
It takes a Zombie to know a Zombie!!!