Jump to content

Recommended Posts

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

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.

 

  • Like 1

Share this post


Link to post
Share on other sites
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
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:

 

 

  • Thanks 1

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

×