Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: spicyasian128 on May 06, 2018, 08:13:04 PM

Title: Using fractions/decimal numbers with an int operator
Post by: spicyasian128 on May 06, 2018, 08:13:04 PM
Is it possible to use a decimal number with an int operator? I want to use an operator to multiply one of my values by 1.1 up to 1.5 for use as a damage stat in my game, but it doesn't seem like I can input decimals. Is there a workaround for this outside of dividing a different number to get that point?
Title: Re: Using fractions/decimal numbers with an int operator
Post by: jeanfabre on May 07, 2018, 02:50:57 AM
Hi,

 yes, turn your int into a float using the action ConvertIntToFloat, then you can do float operations.

 Bye,

 Jean