[Trigger] X Marks the spot and another relative skill

Level 2
Joined
Dec 8, 2023
Messages
10
Hello!

I was meaning to ask this a long time ago but kept forgetting and remembered just now, so here I am. I think I understand how Kunkka's, from Dota 1, X Marks the spot ability works. It takes a target unit, currently location upon casting, and time delay to make the skill work. But what i do not understand was the skill of one sentinel hero, I forgot his name, and the skill name, but his skills are related to lightning. I think one of his skills, probably the third skill, was a skill where upon casting on a target the target moves back to a point/position from x seconds ago. Can anyone enlighten me about this, please? I kept thinking about and got really curious how exactly the skill works. thanks!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Pick an update period. Divide the warp duration by that update period and convert to an integer. Store that many points per unit constantly rotating out the oldest one adding in the most recent one.

You could store these locations in an array or hashtable but this specific application benefits significantly from a linked list.
 
Top