SC2Mapster Forums

Development > Data

(solved)Teleport Every 5 seconds to random target point in range

  • 7 posts
    #1 Nov 21, 2012 at 08:02 UTC - 0 likes

    Hey,

    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.

    thanks

    Check out our current progress in OhNoTokyo. "Unrelated to Sc2" https://www.Fourshadowgames.blogspot.com

    #2 Nov 21, 2012 at 08:25 UTC - 0 likes

    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 Page
    Feedback Thread
    Latest Video
    Published Regions: SEA, NA, EU, KOR
    Status: Open Beta

    #3 Nov 21, 2012 at 12:07 UTC - 0 likes

    @SwarmNerd: Go

    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

    #4 Nov 21, 2012 at 23:23 UTC - 0 likes

    @DuckyTheDuck: Go

    Agreed for distances over 4 radius.

    #5 Nov 21, 2012 at 23:31 UTC - 0 likes

    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.

    #6 Nov 21, 2012 at 23:32 UTC - 0 likes

    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

    Last edited Nov 21, 2012 by b0ne123

    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++;

    twitter.com/SC2IncomeWars
    facebook.com/SC2IncomeWars

    #7 Nov 22, 2012 at 20:03 UTC - 0 likes

    Thanks alot You guys are Awesome.

  • 7 posts

You must login to post a comment. Don't have an account? Register to get one!