jolivan77 0 Posted September 13, 2004 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
Junker 0 Posted September 13, 2004 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
Unnamed_ 0 Posted September 13, 2004 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
bn880 5 Posted September 13, 2004 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
jolivan77 0 Posted September 13, 2004 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
korax 4 Posted September 13, 2004 Or you can use SetFormDir Share this post Link to post Share on other sites
jolivan77 0 Posted September 14, 2004 Or you can use SetFormDir Thanks! This one works fine. Share this post Link to post Share on other sites