First, we need to improve weapon target tracking up to the max bonus range we wanna do. We need to slighly increase the TrackingRadius at mod loading (Blueprints.lua) for all units (except naval and aircraft of course) (the defaut tracking range is about 15% over weapon range)
When a target is found, then we need to grab the unit height with unit:GetPosition(). After we compare the Target height with the unit height. A temp checking height diff thread (5s beat for ie will be light cpu intensive) may be usefull when the units start moving.
If the target is in the bonus range, we buff the weapon MaxRadiusradius until the target is destroyed or lost or changed (easy to do thanks to callbacks).
There must be another ways to do it.Statistics: Posted by Franck83 — 04 Jun 2017, 16:10
]]>