Forum

> > Stranded II > Scripts > Make Animal Move
Forums overviewStranded II overview Scripts overviewLog in to reply

English Make Animal Move

10 replies
To the start Previous 1 Next To the start

old Make Animal Move

AbAeterno
User Off Offline

Quote
Hello people!

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

Thanks in Advance.

old Re: Make Animal Move

DC
Admin Off Offline

Quote
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.

old Re: Make Animal Move

Zins
User Off Offline

Quote
user DC has written
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 ?

old Re: Make Animal Move

Zins
User Off Offline

Quote
user DC has written
@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

old Re: Make Animal Move

AbAeterno
User Off Offline

Quote
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.

old Re: Make Animal Move

DC
Admin Off Offline

Quote
@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
edited 1×, last 03.02.12 11:20:42 pm

old Re: Make Animal Move

Hurri04
Super User Off Offline

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

old Re: Make Animal Move

AbAeterno
User Off Offline

Quote
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
edited 1×, last 05.02.12 03:48:40 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview