Zombie baricades

MrCrowley

New Member
Reaction score
17
that is actually a REALLY good idea, ill get started on that and tell you what happens.

edit: IT DIDNT WOORK /headbang

forget it im just going to finish the game with that 1 flaw.
I have alot of balancing to do...lots of other problems
 

Azlier

Old World Ghost
Reaction score
461
Can you show us the zombie movement trigger?

EDIT: Here's some simple movement stuff I used in my map (unreleased, I can't optimize/protect it for some reason.)

JASS:
scope ZombieMovement initializer Init

globals
    private boolexpr True
    private constant group g = CreateGroup()
// vHere are your configurables.v
    private constant rect Area = bj_mapInitialPlayableArea
//  ^This is the area in which the zombies should travel^
    private constant player ZombieOwner = Player(11)
//  ^This is the owner of your zombies. Remember, Player 11 in JASS is Player 12 in GUI.^
endglobals

private constant function TrueFunc takes nothing returns boolean
    return true
endfunction

private function Actions takes nothing returns nothing
    local unit u = GetEnumUnit()
    local real x = GetRandomReal(GetRectMinX(Area),GetRectMaxX(Area))
    local real y = GetRandomReal(GetRectMinY(Area),GetRectMaxY(Area))
    if GetUnitCurrentOrder(u) == OrderId("none") then
        call IssuePointOrder(u,"attack",x,y)
    endif
    set u = null
endfunction

private function Setup takes nothing returns nothing
    call GroupClear(g)
    call GroupEnumUnitsOfPlayer(g,ZombieOwner,True)
    call ForGroup(g,function Actions)
endfunction

private function Init takes nothing returns nothing
    local timer t = CreateTimer()
    set True = Filter(function TrueFunc)
    call TimerStart(t,0.5,true,function Setup)
    //                 ^ ^ Timer frequency.
endfunction

endscope
 

WindexIsBack

New Member
Reaction score
100
As a last resort, you can always do more of a

A unit is attacked
Attacking unit is not equal to [wall]

If then else
if (current target of (attacked unit)) is not equal to (wall) than
order (attacked unit) to target random unit in (walls in 500)
Else
Do nothing

It's sloppy, but it may get the job done.
 
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