#Seeking insight into code structure through example of modifying speed of a live projectile

1 messages · Page 1 of 1 (latest)

floral ivy
#

I'm a complete rookie so probably a pretty basic or even misguided question, feel free to correct me. how do I apply a modifier to the basic attack of a unit(or in general)? let say I wanted to alter the speed of a projectile after it has been launched, would this be achieved with MODIFIER_PROPERTY_PROJECTILE_SPEED_BONUS and LinkLuaModifier? if so, how should I understand their placement for them to behave correctly?

if you know of any resources you think I should be aware of I would be grateful if you could provide them.
tyvm

nimble drift
#

The lua abilities repository is especially useful.
Just look for abilities that do something similar. (applying on-hit effects in your example)

ornate narwhal
#

Altering the speed of a projectile after it has been launched isn't possible as far as I know, but before it is launched is possible with the modifier property you mentioned.

mint gullBOT
sick garnet
#

not sure if the linear projectile one actually work properly, since most linear projectiles are not designed to change directions after being initialized. dont know if that also applies to the speed parameter