playMaker

Author Topic: Sum of 3 INTs  (Read 1151 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 169
Sum of 3 INTs
« 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

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Sum of 3 INTs
« Reply #1 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...




« Last Edit: July 05, 2022, 08:44:14 AM by curb47 »

Aaddiction

  • Full Member
  • ***
  • Posts: 169
Re: Sum of 3 INTs
« Reply #2 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.

curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Sum of 3 INTs
« Reply #3 on: July 08, 2022, 10:36:40 AM »
ok.

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
Re: Sum of 3 INTs
« Reply #4 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.