[GS] The use of Delete

Riker13

King
Joined
Nov 9, 2001
Messages
859
Location
UK
Hi All,
I don't want the Submarine to have <Row Type="UNIT_SUBMARINE" Tag="CLASS_NAVAL_RANGED"/>
Is it the Delete function I use and if so how?

Regards
Riker13:crazyeye:
 
It don't seem to be working the Sub is still able to fire ranged.
I added the sql under <InGameActions> and </UpdateDatabase> in .modinfo, is that correct?
 
So you just want to eliminate it's ranged attack? For that you'll need to update the Units table.
Code:
UPDATE Units SET RangedCombat = 0, Range = 0 WHERE UnitType = 'UNIT_SUBMARINE';
You'll probably also want to throw a LoadOrder that's greater than 300 or so on the UpdateDatabase action as well to ensure it loads after all base game files.
Code:
<UpdateDatabase id="XXXX">
   <Properties>
      <LoadOrder>300</LoadOrder>
   </Properties>
   <File>XXXX.sql</File>
</UpdateDatabase>
 
Back
Top Bottom