Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Aaddiction on July 05, 2022, 08:17:43 AM

Title: Sum of 3 INTs
Post by: Aaddiction on July 05, 2022, 08:17:43 AM
I may be missing something but how to get the sum of 3 INTs in a single action. Int operator allows only two ints to be summed.

int a + int b + int c = int d
Title: Re: Sum of 3 INTs
Post by: curb47 on July 05, 2022, 08:34:55 AM
I'm not in front of Unity right now, but I think there's an 'Int Operator Advanced' action on the eco system that does this.

*EDIT*

I just looked on the Ecosystem and surprisingly, there isn't an 'Int Operator Advanced' action.

Why do you need it in one Action? You could just do...

(https://i.postimg.cc/8cty9DTS/int.jpg)


Title: Re: Sum of 3 INTs
Post by: Aaddiction on July 08, 2022, 08:31:58 AM

Why do you need it in one Action? You could just do...


So it's not with two actions. :) It's really strange that such trivial action does not exist.
Title: Re: Sum of 3 INTs
Post by: curb47 on July 08, 2022, 10:36:40 AM
ok.
Title: Re: Sum of 3 INTs
Post by: wetcircuit on July 08, 2022, 02:31:22 PM

So it's not with two actions. :) It's really strange that such trivial action does not exist.

Copy the IntAdd.cs action, and edit it to sum 3 input ints instead of 2.