Jump to content
Sign in to follow this  
Koni

Unit to move to another unit

Recommended Posts

I'm trying to get a unit to move to a location of a hostage, but the hostage is going to be in a random location.

I am sure I used to use something like

unitname domove getpos hostage, but this isn't working.

I've tried

_Pos = position hostage;

unitname domove getpos _Pos;

How would I do this ?

Share this post


Link to post
Share on other sites

Try it like this...

unitname [url="http://community.bistudio.com/wiki/doMove"]domove[/url] (getpos hostage);

Share this post


Link to post
Share on other sites

_Pos already is a position (according to your script).

You must use:

unitname domove _Pos;

or

unitname domove position hostage;

Share this post


Link to post
Share on other sites

Ah, thanks to both of you :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×