UnitName useless tag? (unit FBI file)
Moderator: Moderators
UnitName useless tag? (unit FBI file)
Where is UnitName used for?
Edit: .give uses unit filename.
So is it bad if i replace all unitname values with objectname value?
I need this information for my online mod editor program, please reply if you know something!
Edit: .give uses unit filename.
So is it bad if i replace all unitname values with objectname value?
I need this information for my online mod editor program, please reply if you know something!
Last edited by TradeMark on 18 Dec 2006, 14:47, edited 5 times in total.
I found this from source:
\rts\Sim\Units\UnitDefHandler.cpp
?? :S
Does armors use unitname then?
\rts\Sim\Units\UnitDefHandler.cpp
Code: Select all
ud.name = tdfparser.SGetValueMSG("UNITINFO\\UnitName");
...
ud.armorType=damageArrayHandler->GetTypeFromName(ud.name);
Does armors use unitname then?
armor.txt uses the unitname. I thought it was useless a few months back, and didn't bother changing it from the template fbi I was using for a few of my infantry. They were bulletproof because they recieved the default damage that applied to armor. So yes, unitname is used.
I could be wrong, but I think that the .cob files also have to use the unitname..? They might just match the name of the fbi file though.
I could be wrong, but I think that the .cob files also have to use the unitname..? They might just match the name of the fbi file though.
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
Liik here, it is quite usefull for a start:
http://taspring.clan-sy.com/wiki/Units:FBI
http://taspring.clan-sy.com/wiki/Units:FBI
UnitName
This is the internal name of your unit. ...