<aside> 📦 DTADD.acs
</aside>
<aside> ⚡ int DefinePowerAprop(str giver, str powerUp, int property, int factor, int permanent)
</aside>
Defines an Aprop Powerup to multiply the given property of the actor by factor.
giver
: String - the actor name that triggers the AProp PoweruppowerUp
: String - the actor name that is used as the timer for the AProp Powerupproperty
: Int - Which actor property to modify. This function supports the following properties:
APROP_JumpZ
: Jump speedAPROP_Gravity
: Falling speedAPROP_Alpha
: TransparencyAPROP_Speed
: Movement speedAPROP_ScaleX
: Horizontal scaleAPROP_ScaleY
: Vertical scaleAPROP_Friction
: Currently unsupported but reserved for future use.DTADD_CAPROP_AirJumpZ
: Air jump speedDTADD_CAPROP_WallJumpZ
: Wall jump speedfactor
: Fixed - Fixed point number to multiply the actor’s property bypermanent
: bool - Whether the powerup should be considered permanent<aside>
💡 Tip: If an AProp Powerup is marked “permanent,” it’s often a good idea to save the table index so it can be revoked manually. An AProp Powerup marked “permanent” does not become disabled when the powerup leaves your inventory, so it needs to be removed using the script, [core_revokeApropPower](<https://mm8bdm.notion.site/core_revokeApropPower-6da0c05347d74e0c8dc84b0aed99e2d9>)
</aside>