I'm trying to create A unit that teleports every 5 seconds to a random target point in range. So once this unit is spawned it starts teleporting everywhere.
iv'e tried many things but can seem to figure it out.
Check out our current progress in OhNoTokyo. "Unrelated to Sc2" https://www.Fourshadowgames.blogspot.com
One way to do it is the ability runs a persistent effect. Within that effect you set the max allowable period count and the period durations+ to 5. Make sure the flags + has random offset ticked and you can add all the periodic offset coordinates relative to the position of the user. Periodic effects + should be the teleport effect which you can look up the stalker's blink.
Current Project: SquadCraft 2
Project PageFeedback ThreadLatest VideoPublished Regions: SEA, NA, EU, KORStatus: Open Beta
Well, if your range is around 1-3 then I suppose you could specify every possible offset point, but larger than that it becomes unnecessary tedious and I don't know any other way in data to pick random point in location.
Therefore the way I would do it -> follow Trievas advice but make pereodic effect apply buff, then make a trigger which reacts to buff being applied and teleports unit to random point around him (Move triggering unit to a random point in region (position of unit, region radius)).
Bomberman for SC2!
Please support this minigame project by contributing a minigame.
Status: floating aimlessly beneath the clouds
Agreed for distances over 4 radius.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
For my public assets look here!
What about creating an invisible placeholder unit that wanders around the "creator"and then make the creator teleport to it?
Well, I know the guys are already helping I just wanted to throw a wild idea for it.
I have a directed, automatic blink in Incomewars, download it here at sc2m.
combine it with the random offset and periodic mentioned by Trieva and it should be no problem
edit: hero - nova has the ability, it is currently caused by a damage response behavior, change that to periodic
A programmer started to cuss
Because getting to sleep was a fuss
As he lay in his bed
Looping 'round in his head
Was: while (!asleep()) sheep++;
Thanks alot You guys are Awesome.
You must login to post a comment. Don't have an account? Register to get one!