function NewMobByRect takes integer mob, rect a, rect b returns nothing
local unit u=CreateUnit(Player(udg_mob4Player), mob, GetRectCenterX(a), GetRectCenterY(a), 0.00)
call IssuePointOrder(u, "patrol", GetRectCenterX(b), GetRectCenterY(b))
call GroupAddUnit(udg_monsters, u)
set u = null
endfunction
Name | Type | is_array | initial_value |
AllPlayers | force | No | |
Herbe | terraintype | No | |
HerbeCourte | terraintype | No | |
Hero | unit | Yes | |
Heroes | group | No | |
Line1Int | integer | No | 1 |
Line1Rect | rect | Yes | |
mob4Player | integer | No | 11 |
monsters | group | No | |
PathInt | integer | No | |
Players | integer | No | |
Slide_Hash | hashtable | No | |
SlideGroup | group | No | |
Square1 | rect | Yes | |
Square2 | rect | Yes | |
Square3 | rect | Yes | |
Square4 | rect | Yes | |
TempP | location | No | |
TempP2 | location | No | |
TerrainDeath | terraintype | No | |
Terre | terraintype | No |