Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2064
Auto-translated
Here's an example of how it can be used: `
function DefenderCreatureMove(Unit)
if GetCreatureType(Unit)==CREATURE_SNOW_APE then
SummonCreature(DEFENDER, 54, GetCreatureNumber(Unit), 13,8);
end;
end;
What will happen: each time it's the enemy's turn and a Yeti is present, a number of creatures with ID 54 will be summoned, equal to the number of Yetis in the stack. It looks a bit unconventional for a scripting language, but it works.
 

К А
Стикеры GBF в Telegram