ColonelKernel 4 Posted August 29, 2017 Hi. How can I make vehicles face a particular direction? (similar to how you order your units to face a direction, so that the vehicle does it willingly!) Share this post Link to post Share on other sites
bad benson 1733 Posted August 29, 2017 you mean order or via script? for via script... brute force: https://community.bistudio.com/wiki/setDir https://community.bistudio.com/wiki/setVectorDir AI based: https://community.bistudio.com/wiki/lookAt https://community.bistudio.com/wiki/commandWatch https://community.bistudio.com/wiki/doWatch those will likely only work with turrets though. to actually have a vehicle driver turn the vehicle into a certain direction means you are relying on AI parking and general reversing skills. bad idea imho. but hard to say what exactly you are trying to achieve. generally. the more info you provide the better quality answers you will get. 1 Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 29, 2017 33 minutes ago, bad benson said: you mean order or via script? for via script... brute force: https://community.bistudio.com/wiki/setDir https://community.bistudio.com/wiki/setVectorDir AI based: https://community.bistudio.com/wiki/lookAt https://community.bistudio.com/wiki/commandWatch https://community.bistudio.com/wiki/doWatch those will likely only work with turrets though. to actually have a vehicle driver turn the vehicle into a certain direction means you are relying on AI parking and general reversing skills. bad idea imho. but hard to say what exactly you are trying to achieve. generally. the more info you provide the better quality answers you will get. I want a helicopter to first rotate without moving, then after facing the right direction start moving towards a position. Share this post Link to post Share on other sites
Belbo 462 Posted August 29, 2017 Then first setDir and then addWaypoint. Share this post Link to post Share on other sites
ColonelKernel 4 Posted August 29, 2017 Best answer I could find: Share this post Link to post Share on other sites
thy_ 166 Posted March 6, 2023 On 8/29/2017 at 3:10 PM, ColonelKernel said: Hi. How can I make vehicles face a particular direction? (similar to how you order your units to face a direction, so that the vehicle does it willingly!) Below, the function sets the tracked vehicle in the same direction as the hold-marker set by the mission editor: 1 Share this post Link to post Share on other sites