#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/map.png) Sparks FX

##

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   11 years 9 months ago [\#441](#441) by Salahmander  *[Sparks FX](https://www.realm667.com/forum/let-us-know/109-sparks-fx#441 "Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.")* was created by *Salahmander*

 Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzEwOS1zcGFya3MtZng=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   11 years 9 months ago [\#444](#444) by Blue Shadow  Replied by *Blue Shadow* on topic *[Sparks FX](https://www.realm667.com/forum/let-us-know/109-sparks-fx#444 "Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.")*

 How are you using it? What arguments are you passing to the spark thing?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzEwOS1zcGFya3MtZng=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   11 years 9 months ago [\#445](#445) by Salahmander  Replied by *Salahmander* on topic *[Sparks FX](https://www.realm667.com/forum/let-us-know/109-sparks-fx#445 "Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.")*

 Downward facing, the thing is near the ceiling, 4 in the second argument, and 0 in the third.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzEwOS1zcGFya3MtZng=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Blue Shadow**
- ![Blue Shadow's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Administrator
- ![Administrator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1131
-
-
-

   11 years 9 months ago [\#446](#446) by Blue Shadow  Replied by *Blue Shadow* on topic *[Sparks FX](https://www.realm667.com/forum/let-us-know/109-sparks-fx#446 "Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.")*

> Salahmander wrote: 4 in the second argument

That's the problem. The documentation says that the second argument's value is divided by 16. So having 4 as the argument's value nets us 0.25 (4 / 16 = 0.25). The engine truncates the decimal part after division, so you'll end up with just 0. This zero is passed to A_Jump as the jump chance. A jump chance of zero means no jump at all, and thus no sparks spawn.

If you want the sparks to have a chance to spawn, the minimum value you should pass is 16 as the second argument, since it will result in 1 for the jump chance.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzEwOS1zcGFya3MtZng=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **Salahmander**
- ![Salahmander's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar1650.png?1601326422) Topic Author
- Wicked
- ![Wicked](https://www.realm667.com/media/kunena/ranks/rank_81_wicked.png)

 Less More- Posts: 213
-
-
-
-

   11 years 9 months ago [\#447](#447) by Salahmander  Replied by *Salahmander* on topic *[Sparks FX](https://www.realm667.com/forum/let-us-know/109-sparks-fx#447 "Anyone know how to work them? I tried what it said on the document but to no avail it didn't work.")*

 Ah that's where I went wrong, thanks very much Blue Shadow. (Y)

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2xldC11cy1rbm93LzEwOS1zcGFya3MtZng=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
