Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

FX Off Target

1472594396

Edited 1472594497
Bast L.
API Scripter
Hello. I'm trying to implement some /fx into my character's macros, but the aim is slightly off if the target is at an angle to my character, and it's wildly off if the target is on a horizontal line to the right of my character. The macro text is: /fx LongIceBeam @{selected|token_id} @{target|Foe|token_id} The custom fx is: { "angle": -1, "angleRandom": 0, "duration": 30, "emissionRate": 50, "endColour": [125, 125, 255, 0], "endColourRandom": [0, 0, 0, 0], "lifeSpan": 50, "lifeSpanRandom": 0, "maxParticles": 10000, "size": 8, "sizeRandom": 0, "speed": 30, "speedRandom": 7, "startColour": [90, 90, 175, 1], "startColourRandom": [0, 0, 0, 0.25] } Shooting from Bottom Right: From Top:  From Right: From 45 degree Top Right: From Left:  As you can see, most are close, and from the top, bottom, or right axes, as well as from 45 degree angles off those axes, the aim is correct, but for other angles, it's off, and from exactly left, it just aims up-right at 45 degrees. (edit) I neglected to ask a question: Is this a bug, or is there something I'm doing wrong?
I think it is just imperfect.
1472607615

Edited 1472607803
The Aaron
Roll20 Production Team
API Scripter
(Moved to Bug Reports)
1472608444
The Aaron
Roll20 Production Team
API Scripter
I can reproduce this.  It is only a problem with custom fx (but not all, see below).   This seems to be completely accurate: /fx acid-beam @{selected|token_id} @{target|Foe|token_id} With the standard example beam from the wiki: { "maxParticles": 3000, "size": 15, "sizeRandom": 0, "lifeSpan": 15, "lifeSpanRandom": 0, "emissionRate": 50, "speed": 30, "speedRandom": 7, "angle": -1, "angleRandom": 1, "duration": 25 } There is no problem... If I change your angleRandom to 1 from 0, it fixes it.  That seems to be the problem condition.
Thanks, that does fix the wild shot from the left. The angled shots from non-45 degree angles are still somewhat off though, even with built-in fx.
1472691155

Edited 1472691183
Phil B.
Forum Champion
Sheet Author
When I originally upgraded the FX system it (it being the particle system) was having issues with always being off-target as you got closer to 45 degrees, so I put some math in there to correct it. But, since then it looks like that has magically disappeared, somehow, and I can probably just remove the correction and it will be more accurate. I'll take a quick look at it tomorrow.
1472757153
Phil B.
Forum Champion
Sheet Author
Yup, I don't really know what changed, but the aim correction isn't needed any more. I've committed the fix, but it probably won't go live until some time next week.
Nice, thanks.
1472831379
The Aaron
Pro
API Scripter
Phil, do you know why angleRandom: 0 would break "East" targeted streams?  Something you can fix for maybe?
1472856727
Phil B.
Forum Champion
Sheet Author
Can you give me the FX code for what you're talking about?