Jump to content
Sign in to follow this  
jolivan77

Why soldiers don't react setdir command?

Recommended Posts

Hi!

I noticed a strange thing. I use createunit to make a new soldier, but I can not change his direction with setdir. First he executes the command but after that he turn back to his previous position.

Share this post


Link to post
Share on other sites

Any Unit that is Cam created is just a Empty Unit, U need to make him join a Leader that is placed on the map already.

Share this post


Link to post
Share on other sites
Quote[/b] ]I noticed a strange thing. I use createunit to make a new soldier, but I can not change his direction with setdir. First he executes the command but after that he turn back to his previous position.

I know exactly what you mean, try setting his direction using the mission editor, thats no better.

You have to use the DoWatch command on a [X,Y,Z] position. You can dowatch an object like a GameLogic, but there is a danger he will obsess over that. I think using a position is the safer option.

Share this post


Link to post
Share on other sites

setDir turns an object to a direction, it is not an AI simulation command. So your AI's brain will take over and make your setdir useless if the soldier begins watching something etc.

You'd need to run the dowatch command.

Share this post


Link to post
Share on other sites
You'd need to run the dowatch command.

That command makes soldier watch to an object. I want soldier watch to certain direction (like setdir does).

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  

×