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

Jumpgate and FX

1738676426
Ulti
Pro
Sheet Author
API Scripter
Since Jumpgate has been out of beta for about a month, now, I expected FX to be fully functionnal with the API. But I cannot use the pre-defined missile FX. I use `spawnFxBetweenPointsWithDefinition(p1, p2, 'missile-fire')`, and nothing happens. I do see something if I replace it with `beam-fire`. Does someone have a work-around? Also, I looked at the new functions for custom FX, and I only see `  spawnFxWithDefinition`, which only takes 2 coordinates as first arguments, so it cannot be aimed. How are we suppose to spawn custom aimed FX?
1738681540
The Aaron
Roll20 Production Team
API Scripter
For custom FX, you spawn them by replacing where you have "beam-fire" with the id of the FX object. const custFx = findObj({type:'custfx', name: 'UltiBeam'})[0]; if(custFx) { spawnFxBetweenPoints(pt1, p2, custFx.id , pageid); } I've verified there is an issue with fx on Jumpgate.  It happens on both Default and Experimental.  I'll get this reported to the Devs.
1738687534
Ulti
Pro
Sheet Author
API Scripter
Thank you.