Forum

> > Stranded II > Scripts > Make Animal Move
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Make Animal Move

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Make Animal Move

AbAeterno
User Off Offline

Zitieren
Hello people!

Anyone knows a way to make an animal move to the specified coordinates?

Thanks in Advance.

alt Re: Make Animal Move

DC
Admin Off Offline

Zitieren
you can get a german description here
s2 cmd unitpath

first parameter: id of the unit that will follow the path
path paramters (1 to unlimited): ids of infos that you place along the path in the editor to define it.

the event "nodeXXXX" will be triggered at the unit when the unit reaches one of the infos (with XXXX being the info id, always 4 digits with leading zeros). "node0001" for an info with id 1 for instance.

also the event "reach" will be triggered at an info as soon as it is reached by the unit.

alt Re: Make Animal Move

Zins
User Off Offline

Zitieren
user DC hat geschrieben
you can get a german description here
s2 cmd unitpath

first parameter: id of the unit that will follow the path
path paramters (1 to unlimited): ids of infos that you place along the path in the editor to define it.

the event "nodeXXXX" will be triggered at the unit when the unit reaches one of the infos (with XXXX being the info id, always 4 digits with leading zeros). "node0001" for an info with id 1 for instance.

also the event "reach" will be triggered at an info as soon as it is reached by the unit.

i can get eng one ?

alt Re: Make Animal Move

Zins
User Off Offline

Zitieren
user DC hat geschrieben
@user Zins: ...
guess why I explained it myself?! there is no English description.

than make one not all the user's here are GEr's

alt Re: Make Animal Move

AbAeterno
User Off Offline

Zitieren
Thanks! But I actually was expecting an animal to move to the player's coordinates, like following it.(Didn't know it needed an info)

Thanks, however.

alt Re: Make Animal Move

DC
Admin Off Offline

Zitieren
@user Zins: too much work to translate all the missing commands.

@user AbAeterno: you should have said that in your original question
use
1
ai_mode UNITID,"goto","unit",1;
• replace UNIDID with the id of that animal
• replace "goto" with "hunt" if you want the animal to attack the player
1× editiert, zuletzt 03.02.12 23:20:42

alt Re: Make Animal Move

Hurri04
Super User Off Offline

Zitieren
if you want to make an animal follow the player, have a look at the script of the transport monkey.

alt Re: Make Animal Move

AbAeterno
User Off Offline

Zitieren
Thanks! This helped, but is there a way to remove the AI of the animal?

With AI I mean, ex. If it is a scorpion, it will hunt the player on sight. Is there a way to remove that AI?

I think I gotta do another thread but not sure

EDIT:Well, I actually solved this using the "Tamed" state.
PS:Doing a map with a scorpion pet
1× editiert, zuletzt 05.02.12 15:48:40
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht