Jump to content
Sign in to follow this  
POLPOX

Can I use sendSimpleCommand to AI vehicle?

Recommended Posts

title is all.

I'm trying to backward an AI vehicle so I tested the command few times but there isn't a good result.

Anyone help?

Share this post


Link to post
Share on other sites

Was the player in the vehicle?  The wiki says in Arma 3 you don't always have to be in the vehicle, but doesn't state when that's needed.  You used:

vehicleName sendSimpleCommand "BACK";

How did you run that command?

Share this post


Link to post
Share on other sites

Was the player in the vehicle?  The wiki says in Arma 3 you don't always have to be in the vehicle, but doesn't state when that's needed.  You used:

vehicleName sendSimpleCommand "BACK";

How did you run that command?

 

 

What seems to be the problem? It's as simple as:

myCar sendSimpleCommand "BACK";

https://community.bistudio.com/wiki/sendSimpleCommand

 

I mean I want use the command with AI vehicle, which player isn't inside.

I just tested

vehicleName sendSimpleCommand "BACK";

from outside but nothing... maybe there is no solution for my question... thank you guys.

Share this post


Link to post
Share on other sites

He corectly named vehicle - on my editor it not working too, I try it on cars but only engine started and than nothing happen - I tried all other commands like left/right/fast  etc. and nothing,  but is solution for that case of course only for land vehicles beacouse BIS limiting some features for ARMA to prevent do it like in VBS.

 

try this:   

vehicle setDriveOnPath [getpos vehicle,[0,0,0,3]];

Share this post


Link to post
Share on other sites
On 1/22/2021 at 9:30 PM, h4wek said:

He corectly named vehicle - on my editor it not working too, I try it on cars but only engine started and than nothing happen - I tried all other commands like left/right/fast  etc. and nothing,  but is solution for that case of course only for land vehicles beacouse BIS limiting some features for ARMA to prevent do it like in VBS.

 

try this:   

vehicle setDriveOnPath [getpos vehicle,[0,0,0,3]];

The wiki says that this command cannot be executed if only the driver is in the vehicle. So we need to increase the manpower and use setEffectiveCommander

to set it as the commander. Pay special attention to the need to try members in different positions (such as tanks, the actual commander may be the gunner, only in this way can the order be executed).

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  

×