Jump to content
Sign in to follow this  
GodofDeath

What's the best way to do this?

Recommended Posts

What I want to do is disable the RotateToTargetWhenAiming behavior in all ground vehicles with turrets.


Here is the code that involves it:


<AIUpdate

id="ModuleTag_AI"
AutoAcquireEnemiesWhenIdle="YES"
AILuaEventsList="GDIPredatorFunctions">
<UnitAITargetChooserData
CanPickDynamicTargets="false"
SympathyRange="100.0" />
</AIUpdate>

all I need to do is add: RotateToTargetWhenAiming="false"

in the UnitAITargetChooserData division.


however, this means I would have to edit the gameobject file for every unit i want to change...

is there a way to globally change this using an attributemodifier or something?

I am modding KW so extracting each unit's file from the game with WrathED would be a pain, is there a smarter way to do this?


Cheers,

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×