Scripts / changing rate of fire via script

Years of Service
User Offline
Joined: 8th Dec 2019
Playing: Total War Saga: Troy, Amytric Pulse
Posted: 16th Oct 2020 14:24 Edited at: 16th Oct 2020 14:30
Hi there,

After adding some action to my game and trying to kill enemies with knife, I conclude that it would be very cool to change enemy's rate of fire dynamically. Rate of fire of the enemies was increased by default to create an illusion of targeting. But I want now to have a condition when enemies start shoot like crazy when player approaches with knife (like if I set rate of fire to zero in editor). It will be very cool, because it creates an illusion of "defending at all costs" game situation. You can see in the video below what I am talking about. In it, when I'm approaching with knife soldier does not shoot all time what is too bad, I guess. May be someone knows how to set "rate of fire" in lua script. I checked setup.ini looking for something like "rateoffire" and failed...

Thank you for all answers!

Community Leader
Years of Service
User Offline
Joined: 8th Dec 2005
Posted: 16th Oct 2020 14:45
iirc you can brute force it by adjusting the gun settings which will in turn effect the AI weapons if they are using the same gun - it's a bit of a bug tbh but might work in your favour for this
lua guide for GG
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2022-01-25 04:20:47
Your offset time is: 2022-01-25 04:20:47