You need to edit 2 files (your unit blueprint .bp and your unit script .lua)
You got 2 shields type :
Creating a bubble shield on turret is easy. You can set a small bubble size.
If you don't love bubbles, about personal shield (with shader effect), you can take a look at UEF ACU blueprint (UEL001 unit bp), there are the 2 shield types :
The first one (shield) is personal (the type you want to do) and the second (shieldgeneratorfield) the bubble one.
Logically, the difference is that for the personal shield you need to give the mesh path for the shaders fx (in UEF ACU for example)
- Code:
OwnerShieldMesh = '/units/uel0001/UEL0001_PhaseShield_mesh'
Logically again, You have no size and no impact shield hit to give.
Modding the bp is different if your shield is and enhancement (same as UEF) or set at unit creation (you just need to add the shield bp, take a look at mobile shield bp from uef, aeon or sera)
Then, You need to add code script (lua) on your unit :
If the shield is an enhancement, you can add this code to your unit script in the enhancement part (or you need to write the enhancement part):
It's about the toggle icon, the energy consumption and the remove shield script.
If the shield is on unit creation you can add it in the following function in your unit script with your shield bp.
- Code:
OnStopBeingBuilt = function(self, builder, layer)
-- your shield script
end,
Ask if you need help, idk your modding skills Statistics: Posted by Franck83 — 30 Jul 2018, 23:19
]]>