Changing a units attack speed:
Summary - The editor doesn’t allow you to directly reference Weapon Index 1 on a unit, which in the editor is reffered to by 0.
Unit - Set Attack Interval of (UNIT) to REAL for weapon index: (INTEGER (1 or 2) )
The issue with the above line is that a units Weapon Index 1 is reffered to as Index 0, and Weapon Index 2 is reffered to as 1. This means that you cannot directly reference a units Weapon Index 1.
You can however use a calculation; “Arithmetic: 1-1”. This equals 0 and will thus bypass the editors restriction and will now reference the Weapon Index 1
–
Wrong 4cc code for Unit Real Field Attackrange & Projectile Art
Summary - While in Trigger Editor, editing Unit Weapon Real Field and looking for the 4cc code for Range, gives you the code for Projectile Art.
When opening the Object editor and pressing CTRL + D, you’re now able to see the codes used for the different fields. “Combat - Attack 1 - Range” shows ua1r and Combat - Attack 1 -Projectile Art shows ua1m.
Going back to the Trigger Editor, looking for Attack Range, the code listed next to it is ua1m.
–
Referencing Weapon Index in trigger editor is NOT clear
Summary - When trying to edit Unit Weapon Real Field, sometimes index 1=1 & 2=2 and sometimes index 0=1 & 1=2.
Summary says it all really. This is incredibly confusing and I can’t make any sense of it.