Added after 3 minutes
Here is a link to the topic about its activation Cheat codes for Tribes of the East
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
New here? I'm Roha — want a quick tour?
What does the number 3 represent in the script?
No, I have a really terrible option... To write a separate script for each spitting dragon in the map properties...
By the way, what if I write this script in the object's personal properties? What is the scripting tab for, if we set everything in the map's root?
function TransformBuilding(_, _, hero, building)
if hero == "Pelt" then
RazeBuildingWithEffects(building)
end
end
function RazeBuildingWithEffects( objectName )
local x, y, floor = GetObjectPosition( objectName );
Play2DSound( "/Maps/Scenario/A2C2M1/Siege_WallCrash02sound.xdb#xpointer(/Sound)" );
PlayVisualEffect( "/Effects/_(Effect)/Buildings/Capture/Start_dust_S.xdb#xpointer(/Effect)", "","tag1", x, y, 0, floor ); -- Dust
PlayVisualEffect( "/Effects/_(Effect)/Characters/Heroes/DemonLord/Path/Level_2b.xdb#xpointer(/Effect)","","tag2", x, y, 0, floor ); -- Fire
RazeBuilding( objectName );
end;