Skip to content

Scripts for beginners.

User Avatar
#388
Auto-translated
AngryTapok1337
It doesn't work at all, no matter how I try to implement it. At the same time, the script doesn't display any errors when the caravan is supposed to spawn. It's as if there's nothing about the caravan in the code at all. Perhaps the problem lies in the rest of the code or even in the map itself?
As soon as I launched the map, I was immediately greeted with an error about the missing region RegionFight7, which your function RegionFight2F references in two lines. I commented them out, restarted the map, and the caravan error appears when I try to turn it. The `sleep(4)` is in the wrong place; it should be before `SetObjectRotation` (as in the code I originally sent). You posted it in your previous message with the note "This is what I got." Because of this, the game doesn't have time to load the caravan, and then it immediately tries to turn it, breaking the script because it's trying to affect an object that technically doesn't exist on the map yet (it works like with `DeployReserveHero`). Also, set the rotation angle to -90, as it rotates to face the corner of the map

Всякое/карты:

Добавление недостающей музыки гномам