System Spawn Units at Point Over Time (SUPOT)

Discussion in 'Systems and Snippets' started by Prometheus, Aug 7, 2008.

  1. Prometheus

    Prometheus Everything is mutable; nothing is sacred Staff Member

    Ratings:
    +592 / 0 / -0
    6.4

    Fixed up the code a little and make it more GUI friendly for Sevions eGUI
     
  2. TERRYperfect

    TERRYperfect New Member

    Ratings:
    +0 / 0 / -0
    How to spawn the same unit in the different location at the same time?

    for example:

    every 60 seconds, spawn 5 footman(‘hfoo') in the north; spawn 5 footman(‘hfoo') in the south,and spawn 10 footman(‘hfoo') in the center of the map....

    Why doesn't my map spawn units...?
     

    Attached Files:

  3. haxel96

    haxel96 New Member

    Ratings:
    +0 / 0 / -0
    supot

    I got a problem when using supot... I cant "Get last supot instance ID" or stop a supot..
     
  4. Jesus4Lyf

    Jesus4Lyf Good Idea™

    Ratings:
    +394 / 0 / -0
    JASS:
    public function Start takes player p, integer uid, integer number, real interval, real x, real y returns integer

    Store the result of Start to get the instance id. :)
     
    • Like Like x 1
  5. haxel96

    haxel96 New Member

    Ratings:
    +0 / 0 / -0
    the point is, i use EGUI and i don't know JASS, or at least not much of it
     
  6. Executor

    Executor I see you

    Ratings:
    +57 / 0 / -0
    What about a userfunction, to give the created units orders?
     
  7. Prometheus

    Prometheus Everything is mutable; nothing is sacred Staff Member

    Ratings:
    +592 / 0 / -0
    I know I have some code from my Halo Foots which would make them run to the bases' rally point. If you'd like I could dig that up.
     
  8. Executor

    Executor I see you

    Ratings:
    +57 / 0 / -0
    No, I mean sth. like this:

    JASS:
    
    function MoveToBase1 takes unit u returns nothing
       call IssuePointOrder(u,"move", 300, 500)
    endfunction 
    
    call StartSpawn(..., MoveToBase1)
     
  9. Prometheus

    Prometheus Everything is mutable; nothing is sacred Staff Member

    Ratings:
    +592 / 0 / -0
    The functionality for you to set that up is there. I haven't coded in ages, but GetLastSpawned(integer Instance) on a timer or unit enters map event would more then handle that.
     

Share This Page