Spawn problem

Ratata

Member
Reaction score
0
Okay so I am amking my own zombie map and im having some trouble so how do i make them spawn and wonder and attack other players?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
You need to be more specific. In what case are units supposed to spawn? What are the players? Do you have some kinds of variables set up where the player units are saved?
With the given information it is not quite possible to give you a detailed answer.
 

Ratata

Member
Reaction score
0
How do i make the zombies spawn and for the zombies to wonder around the map and attack the player
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Seeing as you're unwilling to give any further information, I guess I can only suggest this:
Trigger:
  • Spawn Zombies
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • Set TempPoint = (Random point in (Playable map area))
          • Unit - Create 1 Zombie for Neutral Hostile at TempPoint facing Default building facing degrees
          • Custom script: call RemoveLocation (udg_TempPoint)
      • Set TempUnitGroup = (Units of type Zombie)
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • Set TempPoint = (Random point in (Playable map area))
          • Unit - Order (Picked unit) to Patrol To TempPoint
          • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_TempUnitGroup)
 

death_knight

Dark is the heart of a corrupted man.
Reaction score
24
Listen, buddy: We need details. The more details you give us, the more we can help you.
I dont understan how am i supposed to make it
isn't a statment we can help with with. I mean, what don't you understand exactly? Is it that you're unsure how to use the trigger editor? Or do you not understand how to write the custom scripts that are being used in KaerfNomekop's solution? Or Are you just unsure about whats going on in KaerfNomekop's trigger?

If you can't help us by giving us the details of what you're trying to do, where you're going wrong and what you don't understand, then we cannot help you.
 

afisakov

You can change this now in User CP.
Reaction score
37
How am i supposed to make that "TempPoint" variable?
world editor, trigger editor, click on variables (yellow X icon along top row), then click new variables (green X icon)
type TempPoint into the name field and scroll down the "Variable type" field to "point"
click OK

Is this what you where looking for?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top