Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1734
Auto-translated
I looked at the developers' scripts. It's done like this:
pos.x, pos.y, pos.floor = GetObjectPosition(townName);
MakeTownMovable(townName);
SetObjectRotation(townName, newRotation);
SetObjectPosition(townName, newX, newY, newFloor);
SetObjectOwner(ZehirTownName, PLAYER_1);

Plus, you can apply various effects. The full script is located at data.pak\scripts\A2_Zehir\A2_Zehir.lua
 

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