mswf wrote:No. (If I remember this correctly)
You cannot edit .odf properties through .lua commands. I'm not sure about this, but you could try to let the .lua activate parts of the .odf that are already in the .odf.
Not entirely true, you can change all properties for an unit/vehicle/prop odf, which are possible parameters for those
(so not "SkeletonLowrez" for vehicles, etc.) Weapons are not to be changed through lua. What I suggest, is make another weapon odf with the changes you want, and add this line:
The weaponodf, however, needs to be loaded. I did this by making a 'dummyunit' odf, with this as a weapon, and I didn't use it in the teamsetup. Still, all weapons he has
will be loaded
Note: This is how i changed the old BF0 heroes; i made a new dummyunit in a new side, with a lot of new forcepowers, and changed the old unit odfs through these SetClassProperty lines to have the new weapons 