#(JustinS) Forcefully moving an npc in a direction

1 messages · Page 1 of 1 (latest)

violet bone
#

Is it possible to spawn something like a phantom, then make it go straight into the direction the player was looking (when they spawned it), then let it head back for the player after a few seconds? Also, is it then possible to check whether another entity hit the hitbox of that phantom?

What I'm trying to do:
I'm trying to make a lightsaber that players can throw vertically and let it come back after a few seconds. I thought of the above 'solution' but am not sure if it's possible in Denizen, if you have another idea feel free to drop it here.

brittle meadowBOT
#

(JustinS) Forcefully moving an entity in a direction

brittle meadowBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

violet bone
#

I think it might be easier to use an npc and proximity triggers. But then how do I forcefully move an npc in a custom direction then let it shoot back to the player

spark crestBOT
violet bone
#

(JustinS) Forcefully moving an npc in a direction

lost kestrelBOT
#

@violet bone

Thread Close Blocked

Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.

pliant dagger
#

!c push

honest thornBOT
# pliant dagger !c push
Group

entity

Syntax

push [<entity>|...] (origin:<entity>/<location>) (destination:<location>) (speed:<#.#>) (duration:<duration>) (script:<name>) (def:<element>|...) (force_along) (precision:<#>) (no_rotate) (no_damage) (ignore_collision)

Short Description

Pushes entities through the air in a straight line.

Description

Pushes entities through the air in a straight line at a certain speed and for a certain duration,
triggering a script when they hit an obstacle or stop flying.

You must specify an entity to be pushed.

Usually, you should specify the origin and the destination. If unspecified, they will be assumed from contextual data.

You can specify the script to be run with the (script:<name>) argument,
and optionally specify definitions to be available in this script with the (def:<element>|...) argument.
...

pliant dagger
#

or adjust velocity with vectors

gloomy lake
#

reading that second part, it seems like there should be a better way to do this lol

#

im assuming this lightsaber can be thrown in any direction

#

and im also assuming this lightsaber being thrown would work similarly to a boomerang

#

if so that's entirely possible with denizen

lost kestrelBOT
#
Changed to Discussion

Thread is now a Discussion thread. This indicates that the thread is not requesting help in any way, and is just discussing a broad topic openly. If you need help with something, use </helpthread:1028674284870180883> to switch the thread back to a normal help thread.

unkempt junco
#

I would use a "static" no-ai, no-gravity entity like an armor_stand and then rapidly teleport it in the direction and back