#(JustinS) Push = pull??

44 messages · Page 1 of 1 (latest)

compact parcel
#

Im using the push function though it seems more like a pull and push than a push. Are there any alternatives or is there a setting that Im missing because this looks a bit weird.

force_push:
    type: task
    script:
        - define target <player.eye_location.ray_trace_target[ignore=<player>;range=12]||null>
        - if <[target]> != null && (<[target].is_player> || <[target].is_mob>):
           - push <[target]> speed:0.5 duration:0.5```
lost vineBOT
#

(JustinS) Push = pull??

lost vineBOT
#

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.

tardy echo
#

!c push

deep fossilBOT
# tardy echo !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.
...

tardy echo
#

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

#

I'm assuming it's just reading the linked player/location as the origin

#

can try setting the origin to the entity's location itself

compact parcel
#
Error Message: No destination specified!```
tardy echo
#

Can probably just apply the player's yaw & pitch to the entity's location and use forward?

compact parcel
tardy echo
#

What do you mean

compact parcel
#

Whenever I push a player I dont want them facing another direction

#

could be very confusing for the opponent

tardy echo
#

Use velocity then

compact parcel
#

I tried destination:<player.location.forward> and a bunch of other random shit though nothing is giving the desired behaviour

unreal pebbleBOT
compact parcel
#

I saw that in an older post and it sort of works. Downside is it doesnt throw them up slightly

#

I need them to get thrown up too depending on how high the player is looking

tardy echo
#

oh

#

you can still use push

#

!c push

deep fossilBOT
# tardy echo !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.
...

tardy echo
#

Optionally use "no_rotate" to prevent entities being rotated at the start of the push.

#

Not really sure about the velocity math, I don't have enough time to test right now, but I think you can do this with push

compact parcel
#

I just dont know what the destination should be

tardy echo
#

I was trying something like /ex push <player.target> origin:<player.target.location> destination:<player.target.location.with_pose[<player>].forward[2]> no_rotate

#

(while looking at the entity in question)

compact parcel
tardy echo
#

Np

neat plazaBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@compact parcel

compact parcel
#

right mb

neat plazaBOT
#
Resolved

Thread closed as resolved.

neat plazaBOT
#
Thread Reopened

Thread was manually reopened by @toxic kettle.

orchid rapids
#

@toxic kettle please do not reopen threads without a good reason

neat plazaBOT
#
Resolved

Thread closed as resolved.

toxic kettle
#

that was an accident im so sorry 😭

neat plazaBOT
#
Thread Reopened

Thread was manually reopened by @toxic kettle.