I made a trigger to create a unit, but I wan't it to create a random unit... What I was thinking was putting a bunch of unit names in a string... But I really don't know what it will do... How could I do it? And what should I put in the string?
Well anyway. The function itself works. The arrays are also working.
There's no bug or anything here. Run the function manually, make sure everything is set etc.
I made a trigger to create a unit, but I wan't it to create a random unit... What I was thinking was putting a bunch of unit names in a string... But I really don't know what it will do... How could I do it? And what should I put in the string?
I'd create a unit type array, filled it with unit types and adress it with random integer function.
Quote from Zolden:
I'd create a unit type array, filled it with unit types and adress it with random integer function.
That worked :P. Thanks
Argh wait, it didn't work... So what happened was the units didn't spawn...
Here's my trigger, help? ):
-Making Units Spawn-
And here's adding the unit types to the unit type array.
You didn't run the action. Simple.
Or your odd points returns 0,0 or -1,-1 and you spawn them outside of the map
Made it two, still nothing, but I wan't them to spawn directly at point.
EDIT:
I switched to that, but it still doesn't work... Here's the whole thing.
Does the function run till the point of create unit?
Well the pan camera is after create unit, and it pans to the side when I press the button, So I guess yeah.
Well anyway. The function itself works. The arrays are also working. There's no bug or anything here. Run the function manually, make sure everything is set etc.
If you don't believe run this
Units have been spawning within cliffs! WOW.... Well this is odd...
EDIT: Hey omg, happy 101 post me, :P
try create without ignoring placement