#projecctile issues

1 messages · Page 1 of 1 (latest)

left inlet
#

yo

#

can any1 help

#

im tryna make it not have explosion sound or particles

#

also i want it to run commands on hit cant figuire that out

clear mauve
#

Idk

left inlet
#

wdym

#

u got any idea

#

@clear mauve

#

how to make entity run command on impact

#

prjectile

clear mauve
#

I would think raycasting

left inlet
#

whats that

clear mauve
#

Like shoot a super fast invis projectile

left inlet
#

thats what the projectile is

#

its invis and fast

clear mauve
#

And then shoot the main projectile

left inlet
#

i just need it to run a command on impact with blocks or player

clear mauve
#

And when the main gets near the other run a command

#

I think

left inlet
#

huh

#

what about scripts

#

is that possible

clear mauve
#

But yea look into ray casting

clear mauve
left inlet
#

oh nice

#

any clue how that would work

left inlet
#

pls

slender depot
#

And use run_command
It'll allow you to run a command whenever you projectile hits an object, much simpler than anything like scripts and anything else of the sort

left inlet
#

it doesn’t work tho

#

i made an event

#

if u could take a look at the code and tell me why the event doesn’t work

#

i don’t get it

slender depot
left inlet
#

alr

left inlet
#

@slender depot

#

sorry it was too big to send as a msg

slender depot
#

No problem

#

The format you used is outdated
I've made an example of the correct format for you to use, here's what it looks like

left inlet
#

i thought that’s what i had?

#

so there doesn’t need “target”: “self”?

left inlet
#

also do you know any way to make the particle not play explosion sound or particle even ought to i have exploded component

#

because i’m gonna use on hit events ro play my own sounds and particles

slender depot
slender depot
left inlet
#

i’ll try this once i’m home i’ll let u know how it works out

left inlet
#

i know it can be wind particles instead

#

just wondering if it could be anything else

left inlet
#

@slender depot

#

still doesnt work

#

what am i doing wrong

slender depot
#

Target: self goes inside event_trigger

left inlet
#

uh ok ill try that and let u know

#

does this look good?

#

this is the event

#

still doesnt work

slender depot
#

Try changing the format version to 1.21.10

left inlet
#

still doesnt work

left inlet
#

i cant get this thing to work

slender depot
#

Try adding affect_projectile to definition_event

left inlet
#

didnt work

left inlet
left inlet
#

.