#(talfein) Grab the location of a teleporting display entity.

23 messages · Page 1 of 1 (latest)

empty sorrel
#

Hello again everyone, working off another post to do a similar thing. I'm currently creating a projectile for my magic system by spawning a display entity and then upon a suggestion of a helper, teleporting it with a teleport_duration adjustment. It works wonderfully and looks great, however the issue is I wanted to upgrade my Particle script block to only play the particle exactly where the projectile was currently. The problem was anytime I tried to use the Display Entity's location it would only output the Ending location where it was being teleported. I wanted to cut down on the possible lag since I have the particle and targeting checking every 0.5 between the start point and end point and I know that could possibly be laggy running so often depending on the range of the spell.

Here's the entire script: https://paste.denizenscript.com/View/125656

As always, if it's just not feasible please let me know as this will probably take my whole night working on it otherwise.

PS. I will happily take recommendations to fixing the particle system or targeting itself as I want to change that up as soon as possible since it's supposed to be modular.

ancient quartzBOT
#

(talfein) Grab the location of a teleporting display entity.

ancient quartzBOT
#

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.

novel turtle
#

you'll have to math it out yourself

#

you have point a and point b, and you have the time it takes to get across

#

assuming constant speed, no change in direction and zero acceleration, congrats you have all you need to find out where, using only when as input

empty sorrel
#

Oooh, math. Pain

#

I'll prob just stick with what I have for now then revamp it later. The good ol procrastination. I was given a timeframe of 2 months by the build team so I have plenty of time lol.

#

I was just hoping there was an easy tag to grab it while it was teleporting, but I assume it actually does instantly teleport on the backend.

vocal lightBOT
#
Resolved

Thread closed as resolved.

novel turtle
vocal lightBOT
#
Thread Reopened

Thread was manually reopened by @thorny eagle.

novel turtle
#

in fact just wrote it in little under 20 minutes

novel turtle
novel turtle
#

it's got some redundancy, but it's for the sake of readability and understandability

#

if it aint work tell me and i shall bear the shame

empty sorrel
#

Haha, yeah reading this script while drunk really doesn't help trying to understand math. But I relatively get it. Thank you greatly for the comments. I'll take a look at this when I'm not giving my liver a stab. (I'm not an alcoholic, just very light weight)

vocal lightBOT
#
Changed to Help/Support

Thread is now a Help/Support thread. A helper will check your thread when available.

vocal lightBOT
#
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.)

#

@empty sorrel

empty sorrel
#

Yeah I sadly don't have the time to work on projectiles anymore, stuff is actually ramping up and I have a new project, a regenerating dungeon schematic.