Jump to content
Sign in to follow this  
scifer

give orders to AI units via script

Recommended Posts

Hi, I'm traying to find how to force player unit to give orders to AI, via script, like the ones in commanding menu: attack, heal, repair, regroup. But it has to be like the orders you give manually, with speech and gestures. Can anybody help me?

Thanks

Share this post


Link to post
Share on other sites

Thanks but want to order the medic to heal someone. Like Command heal tartget.

Share this post


Link to post
Share on other sites

Thanks again I already know it but as I said, the purpose is to force the player character to issue a command with voice over radio and even gestures like you do with the mouse in command menu ~ key. I think commandFSM is how you do it but I couldn't find the config files.

Share this post


Link to post
Share on other sites
the purpose is to force the player character to issue a command with voice over radio

Do you mean command AI with Voice Commands?

If that's correct, then I don't think there's a system in ArmA to do that. But, there's VAC, witch is software that turns voice into keystrokes. I've used it in ArmA.

http://www.dwvac.com/index.html

Share this post


Link to post
Share on other sites

No, actually I was talking about ordinary commands you send to AI via command menu, MOVE, ATTACK, HEAL.

Share this post


Link to post
Share on other sites

If you want an animation try this:

http://community.bistudio.com/wiki/playMoveNow

Use the the animation view in the editor to find the right one. You could also play the correct sound file, if you knew the name. Just open the sound .pbo's to find what you need. You would combine all that with the correct action and hope the AI obeys.

Share this post


Link to post
Share on other sites

You can do this with most of the commands, ei the player will issue a command verbally and the units will respond. However, some commands cannot be issued like this including the heal and get in vehicle commands. To issue scripted commands you have to use the appropriate command:

(groupSelectedUnits player) CommandMove [0,0,0];
(groupSelectedUnits player) CommandTarget _thatman;
commandStop _soldier1;

But sorry there are no scripted commands that relate to issuing heal commands.

http://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3

check out the command reference, any command starting with 'command' will make the player say and execute the command. BTW commandfollow is how you get the units to regroup and return to formation.

Edited by Sakura_Chan
  • Like 1

Share this post


Link to post
Share on other sites

Very good you mentioned groupSelectedUnits. I haven't noticed it yet.

But I steel think it is possible to command heal and other unspecified actions through FSM.

Thanks

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  

×