Forum

> > Stranded II > Maps/Editor > Animal movement
ForenübersichtStranded II-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch Animal movement

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Animal movement

Luke81
User Off Offline

Zitieren
I've noticed that every animal in the game is moving around near its place of spawning.

My question is...
Is there any script in the map editor which makes each animal moving ALL OVER THE ISLAND, in random directions?

alt Re: Animal movement

DC
Admin Off Offline

Zitieren
That's true. The spawn location is stored with each animal and the animal returns into the direction of the spawn if the distance gets too high (higher than "range" in its definition).

You can easily set that spawn center position to the CURRENT position with s2 cmd ai_center:
1
ai_center UnitID

Doing so like every few seconds will ensure that the animal can go wherever it wants to go without having to return because the center point will always be close enough to the current position.

You could also use s2 cmd unitpath to let the animal go along a predefined path. I think the center/spawn logic is ignored while following a path (I'm not 100% sure though). Also it's not random then so probably not what you want.

Another way would be to just increase the "range" value of the animals to something very high. That's only a solution for a custom mod though and not for a single map.

alt Re: Animal movement

Luke81
User Off Offline

Zitieren
OK, I got it.
I did it with ai_center command, and it works.

Thanks for your help.
2× editiert, zuletzt 04.06.22 14:54:00
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtStranded II-ÜbersichtForenübersicht