Hava a question...need help
-
Let me start by saying that I don't understand modding at all and I'm certainly not a programmer.
However, I'd really like to have the following features available as a separate mod or integrated into mine:-
A unit and/or building that repairs allied troops (provides regeneration similar to the Seraphim Commander upgrade).
-
For certain units, such as experimental ones, to receive increased damage based on their veterancy.
A quick Google search yielded no results. I turned to a neural network. The bottom line of our "conversation" is this: as I understand it, it's impossible to simply "attach" a commander's regeneration aura to a unit—it's an upgrade, and upgrades don't work on units, only commanders and, possibly, SACUs. Therefore, this must be a separate script, which is then attached to the unit in a different file.
The neural network even wrote me some code, which, unfortunately, doesn't work at all, and that's sad. That's why I'm asking for help, because I have no idea whether it's possible to do this, how, or whether it will work adequately or not. -
-
-
For the regen aura unit, you can look at examples from blackops' Seraphim T2 regen field. Survival Mayhem&BO Balance also changes that regen field to a T3 version with stronger stats if you're interested. To actually implement it without examples, you basically move code from the function
ProcessEnhancementRegenAuraof the Seraphim ACU into theOnStopBeingBuiltfunction of your new unit. -
Hook
AddVetLevelin your unit's script and either write a Damage buff blueprint (the buff applies to all weapons) or write your own code that increases the damage of the weapons you want however you want.
-
-
Am I correct in understanding that I need to create a new unit with this script? Can't I apply the script to an existing one, like Hive?
-
You don't need a new unit, you can hook the script of an existing unit to modify it. I did so in my SACU rebalance mod for example.
-
Thanks for answeers.
I simply made a script (essentially copied it) similar to the T2 Seraphim station, attached it to both the hive and the unit, and it wouldn't even run. I figured that since the unit already had the script and it was stored elsewhere/in the mod/, my mod couldn't call it correctly.So you understand, I have a Merge mod file only
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đŸ’—
Register Login