<aside> ⚡ script "core_setactorproperty" (int prop, int mult, int div)

</aside>

Usage


Changes the given actor property of the calling actor to the given amount. This is designed to be used from DECORATE to manipulate the calling actor’s property. For players, you may want to consider using [AProp Powerups](<https://mm8bdm.notion.site/AProp-Powerups-eae6f55089314b51bb15740d05c96fee>) instead, however!

For the parameters mult and div, treat them as a fraction. If you wanted to increase an actor’s speed property to 1.2x, first convert that to a fraction. 1.2 can be represented as 6/5. The resulting call would look like:

ACS_NamedExecuteWithResult("core_setactorproperty", APROP_Speed, 6, 5)

If you don’t know how to convert decimal numbers to fractions, see this article for intel, or this calculator to do it for you. Make sure to convert your whole numbers to fractions as well!

Parameters

See Also


AProp Powerups

core_getactorproperty