Curious question on weapon
Posted: 31 Mar 2011, 10:21
hey!
From my understanding for a weapon to work we need the following:
unitdef .fbi, .lua (declare which weapon is equiped)
weapondef .tdf (declare weapon properties)
scripts .cob/.bos (contains how the weapon is aim or fired)
For example, I have unit A, which fires weapon 1, 2 and 3.
And unit B which has weapon 4, 5 and 6.
If I want weapon 4 to be equip on unit A without making changes to the scripts will it be possible?
I tried doing a small scale testing and found out that if the weapons come of the same category of unit it will work. but if we for e.g. place a ship weapon to a tank it will never be possible to fire.
Is this true? Anyone have experiences with the weapon to share?
From my understanding for a weapon to work we need the following:
unitdef .fbi, .lua (declare which weapon is equiped)
weapondef .tdf (declare weapon properties)
scripts .cob/.bos (contains how the weapon is aim or fired)
For example, I have unit A, which fires weapon 1, 2 and 3.
And unit B which has weapon 4, 5 and 6.
If I want weapon 4 to be equip on unit A without making changes to the scripts will it be possible?
I tried doing a small scale testing and found out that if the weapons come of the same category of unit it will work. but if we for e.g. place a ship weapon to a tank it will never be possible to fire.
Is this true? Anyone have experiences with the weapon to share?