Blockland Forums > Modification Help

help with projectiles

(1/1)

adel:
so i made some grenades
for some reason their explosion spawns at their last hit location which is really annoying
https://youtu.be/BRL3z1_PnyA
how fix !! ! ! !!

edit: apparently calling projectile.explode(); makes its explosion spawn at its last bounce position
Why.

edit 2: got help on discord - fixed, locking thread
instead of scheduling the explosion directly, i had to make a function that deletes the projectile and then spawn a new one that would explode instantly
so basically this thread is useless  :cookie: :cookie: :cookieMonster: :cookie: :cookieMonster: :cookieMonster: :cookieMonster:

Navigation

[0] Message Index

Go to full version