Jump to content
johnnyboy

AI Enhanced Movement [Script]

Recommended Posts

This script allows player to command AI team mates to climb fences and objects using Bad Benson's awesome Enhanced Movement Mod.  I didn't call it "JBOY AI Enhanced Movement" because @BadBenson really gets 99.999999% credit for this.  I wish him well and hope he comes back to the ARMA family someday...

 

Demo mIssion link updated 6/2/22

 

Features:

  • Player commands unit to climb fence or object by:  Selecting Unit, looking at object to climb, select 6 for Units Action, Choose yellow "Climb it" action.
  • Requires Enhanced Movement mod.

Limitations

  • Sometimes if player is off to the side of the object that you are looking at, a bad move position is given to AI, so when he arrives he does not climb.

Credits:

  • @BadBenson for the essential and awesome Enhanced Movement mod.
  • @pierremgi for great script to calculate shortest distance and direction to the object to be climbed.  Needed this so unit faces the wall exactly before climbing (a requirement of the Enhanced Movement mod).  Thanks Pierre, you are an officer and a gentleman!  Not to mention a smart math guy.
  • @PixeL_GaMMa for handy string replace script.  Thanks dude!
  • @beno_83au, @gc8, @HazJ for helping me get over my lame addAction problem!  Thanks for holding my hand guys!
  • Like 16
  • Thanks 3

Share this post


Link to post
Share on other sites

BB gone but not forgotten, JB keeping the faith.

A perfect companion piece for the SP. :rthumb: 

  • Like 2

Share this post


Link to post
Share on other sites

I LOVE THIS!!!!...As I play predominantly SP and use BB mod this is an awesome addition.Finally can get those AI to follow me properly👍

  • Like 1

Share this post


Link to post
Share on other sites

This is an amazing script @johnnyboy! Thanks!

 

Just looking through the Enhanced Movement mod files and damn that is a work of ART!

 

It is a complex piece of code that humbles me because those modders like @BadBenson are dev material, completely on another level!

 

On a side note, if you ever find the time and since you already have some cool melee animations I am needing something like this for a player vs Ai melee script I am doing: 

 

PS: I always wandered why the Arma 3 devs never included this into one of the patches and officially into the game as it is so useful and is what modern FPSs have.

 

 

 

  • Like 2

Share this post


Link to post
Share on other sites

Yeah Benson was legend - i mean cmon the guy brought in friggin velociraptors with better melee animations and collisons than Arma vanilla. 

  • Like 5

Share this post


Link to post
Share on other sites

Amazing job! Arma needed that! Congrats. I already played with BB's Enhanced Movement. You open a new dimension in A3 gaming.

  • Like 2

Share this post


Link to post
Share on other sites

Nice work Johnnyboy!

This is going on my Ai compilation list script page this weekend!

    This is seriously a feature/function the game needed, to many a time have i told the AI to do something for them to act stupid and cant do a thing.

Things like this imo should really already be in the game but hey thats what community is all about.

 

Now you got to make it where it dont require the mod, probably would need BB's permission,

unless you could create your own code using BB's as an example.

  • Like 1

Share this post


Link to post
Share on other sites
8 hours ago, pierremgi said:

Amazing job! Arma needed that! Congrats. I already played with BB's Enhanced Movement. You open a new dimension in A3 gaming.

Thanks Pierre.  This would  not have been possible without your help mon frere

 

1 hour ago, Gunter Severloh said:

Now you got to make it where it dont require the mod, probably would need BB's permission,

unless you could create your own code using BB's as an example.

Thanks Gunter!  Sorry dude, but that is way too much work for me to take on.  I did look at his code and its quite complex.  Plus I don't think you can add new animations without a mod.

Share this post


Link to post
Share on other sites

Nice. I see you got your addAction working too! 😁

  • Like 1

Share this post


Link to post
Share on other sites
26 minutes ago, HazJ said:

Nice. I see you got your addAction working too! 😁

Yeah, thanks man, I should add you guys to the credits!   I was doing something really dumb there for awhile and getting frustrated.  😡😀

  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

Don't worry about it 😄 We all have our dumb moments 😋

  • Haha 2

Share this post


Link to post
Share on other sites
On 6/18/2020 at 8:49 AM, pierremgi said:

You open a new dimension in A3 gaming.

:yeahthat:

  • Like 1

Share this post


Link to post
Share on other sites

This is so useful, very practical. Unfortunately, it's just that keyboard no.6 action key bind which conflicts with AIO AI Command Menu. In fact it would be awesome if it could somehow be magically incorporated into that mod. But many thanks for yet another great script to use in missions both making things easier, less frustrating and expanding game play elements 

  • Thanks 1

Share this post


Link to post
Share on other sites
On 6/18/2020 at 2:49 AM, LSValmont said:

On a side note, if you ever find the time and since you already have some cool melee animations I am needing something like this

These animations looks suspiciously exactly the same as from splinter cell 🤔, they are too extremely similar to be a coincidence.

Actually looking at an old video from 2014, I find 3 animations that look exactly like splinter cell.

They are actually the MOCAP Melee mod, that was also submitted to Make Arma Not War.

Share this post


Link to post
Share on other sites

 

40 minutes ago, Dedmen said:

These animations looks suspiciously exactly the same as from splinter cell 🤔, they are too extremely similar to be a coincidence.

Actually looking at an old video from 2014, I find 3 animations that look exactly like splinter cell.

They are actually the MOCAP Melee mod, that was also submitted to Make Arma Not War.

@Dedmen, you are referring to the Melee animations, and not Bad Benson's Enhanced Movement animations...correct?

Share this post


Link to post
Share on other sites
3 hours ago, Dedmen said:

These animations looks suspiciously exactly the same as from splinter cell 🤔, they are too extremely similar to be a coincidence.

Actually looking at an old video from 2014, I find 3 animations that look exactly like splinter cell.

They are actually the MOCAP Melee mod, that was also submitted to Make Arma Not War.

 

That sounds about right! You've sharp eyes my friend.

 

Are animations copyrighted too in video games? Is it illegal to use animations from other games?

Share this post


Link to post
Share on other sites

Yeah those Mocap animations seemed a little "too good"...i mean compare that to the Devs sole melee animation contribution to OFP -The Rifle Butt Stroke...

  • Like 1

Share this post


Link to post
Share on other sites
14 hours ago, LSValmont said:

 

That sounds about right! You've sharp eyes my friend.

Not really. Guy from my unit told me about that they look similar a couple days ago. Weird that this topic came up here at right that time 🤔

14 hours ago, LSValmont said:

Are animations copyrighted too in video games? Is it illegal to use animations from other games?

ripping/stealing game assets is illegal yes.

Remaking similar looking stuff is not.

  • Thanks 1

Share this post


Link to post
Share on other sites
29 minutes ago, MrStregatto said:

Nice script!
Will be there an addon version?

 

Thanks MrStregatto.  Sorry, but I'm not planning on making an addon.  

  • Like 1

Share this post


Link to post
Share on other sites
On 7/1/2020 at 4:51 PM, MrStregatto said:

Nice script!
Will be there an addon version?

 

C2 mod (command and control) also incorporates a function of making ai use enhanced movement, among other things.

  • Like 1

Share this post


Link to post
Share on other sites
31 minutes ago, barccy said:

C2 mod (command and control) also incorporates a function of making ai use enhanced movement, among other things.

 

Also VCOM has AI use it own there own accord -pretty sweet having enemy AI surprise jump over a wall behind you

  • Like 2

Share this post


Link to post
Share on other sites

The sample mission was broken by an ARMA update.  Its now fixed and the sample mission download link in top post has been updated with fixed example mission.

 

I thank Raphael Carvalho for reporting the problem on youtube.

 

Unfortunately it now works by showing a separate action for each unit in player's squad, instead of a single action that would be executed for a selected unit. But that's the only way I could figure out to get it to work in the time I have.

  • Like 1

Share this post


Link to post
Share on other sites

@johnnyboy I know you have a lot of irons in the fire so you may not be able to deal with this anymore, but I'm getting an error in the demo mission (6/2/22 version) where the AI won't execute the climb order and I get an error about "em_blacklist_obj" not found.  I am running both Enhanced Movement and Enhanced Movement Rework, so I'm trying to figure out if the Rework is causing the error, but was wondering if anyone else is getting an error or if it's still working for them.

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

×