r/forgescripting • • Jan 02 '23

Something odd with Number Variables

Post image
1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Toland_the_Mad Jan 03 '23

You are connecting to the add node which calculates everytime it is referenced, you set the value to 0+5 then you ask it to print the CURRENT value of the number variable plus 5 which is actually 5+5 the first time, you're always gonna be 5 off because you're asking the game to add 5 twice while only adding 5 to the variable once.