can some one put some terrain in my map

megaflame566

New Member
Reaction score
4
im not very good at putting terrain in my map so can some one help me
or help putting in spawn trigger i need help in that to its confusing
(sry if this isnt the right place to put it)
it has terrain i just need some one to make it better
 

ZiggyMcjoney

Data editor?! AAAHHHHH!
Reaction score
95
im not very good at putting terrain in my map so can some one help me
or help putting in spawn trigger i need help in that to its confusing
(sry if this isnt the right place to put it)
it has terrain i just need some one to make it better

What do you mean, spawn trigger? Needs more info ;p.
 

AEK

New Member
Reaction score
0
Do you want the spawning dependant on any buildings or units?

Or just a simple every x seconds spawn y units and order y units to attack z base?
 

AEK

New Member
Reaction score
0
Ok, i'll make the trigger for you then copy paste it here for u in an edit, brb.

Edit: Ok, i think i got it, sorry for taking so long.. Challenged me a bit as i havent worked on my map for a few weeks...

Code:
Megaflames Spawn
    Events
        Time - Every [COLOR="Red"]TIME[/COLOR] seconds of game time
    Conditions
    Actions
        Set tmp_spawn_point = (Center of [COLOR="red"]SPAWNPOINT[/COLOR] <gen>)
        Unit - Create [COLOR="red"]5 Footman for Player 1 (Red)[/COLOR] at tmp_spawn_point facing Default building facing degrees
        Set tmp_unit_group = (Units in [COLOR="red"]SPAWNPOINT[/COLOR] <gen> owned by [COLOR="red"]Player 1 (Red)[/COLOR])
        Unit Group - Pick every unit in (Last created unit group) and do (Actions)
            Loop - Actions
                Set tmp_attack_point = (Center of [COLOR="red"]ATTACKPOINT[/COLOR]<gen>)
                Unit Group - Order tmp_unit_group to Attack-Move To tmp_attack_point
Custom script:   call RemoveLocation (udg_tmp_spawn_point)
Custom script:   call destroyGroup (udg_tmp_unit_group)
Custom script:   call RemoveLocation (udg_tmp_attack_point)

This trigger will cause units to be spawned in the SPAWNPOINT every TIME seconds and order them to move-attack to ATTACKPOINT.

Variables
- tmp_spawn_point - - - Point - - - Set this to the region where u want units to spawn "SPAWNPOINT"
- tmp_unit_group - - - Group - - - This is set to be the units in the "SPAWNPOINT" Region
- tmp_attack_point - - - Point - - - Set this to the region where u want units to attack "ATTACKPOINT"

You can change the code in red to suit your map.

If anyone else can find some leaks in this and fix it or anything, be my guest :p Cause im sure i missed sumthing.....
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top