Well, i dont have time to make a mod now, but if you add the code to all unit_script.lua by youself, you can make your own mod:
If the Unit Changes the layer from land to water it will be renamed to Jesus, and will delete the name if it's returned to Land.
Same with Underwater (seabed) and Moses.
- Code: Select all
OnLayerChange = function(self, new, old)
TConstructionUnit.OnLayerChange(self, new, old)
if new == 'Water' and old == 'Land' then
self:SetCustomName( 'Jesus' )
elseif new == 'Seabed' and old == 'Land' then
self:SetCustomName( 'Moses' )
elseif new == 'Land' and (old == 'Water' or old == 'Seabed') then
self:SetCustomName( '' )
end
end,
greetings, Uveso.
Ps: Script is tested and working.