I am setting up an automated animation system, where a PFlow object launches projectiles at a target when the target arrives within a certain distance.
I have an odd issue though. I am using a Float Script controller on the PFlow's rate value, with a script as such:
dependsOn $cannon $target $cannonCPU
if (distance $cannon $target) > $cannonCPU.modifiers[#Attribute_Holder].Custom_Attributes.distance
So when the target is out of the distance, the pflow will not fire, and vice versa. However in pratice, the script oddly stops working around the 200 frame mark (animation length is set from -10 to 350, and I've set the pFlow to be active between -10 to 400.... I've attached the trackview of the rate and .max file. Thanks for any advice!!!