15.10.2005, 00:43:47
OK, since the except didn't tell me anything and jonwil's code is completely OK, I began thinking, and I got it:
The error occured because the weapon doesn't exist.
YES, you might have introduced its section, but did you remember that weapons only get parsed if they are used by something?
Attach your new payload weapon as a DeathWeapon of some dummy unit (XCOMET for instance) and it will work properly, I just tested it
BTW: NukePayload is used as a DeathWeapon by the nuclear reactor.
Now we have a new reason for that.
The error occured because the weapon doesn't exist.
YES, you might have introduced its section, but did you remember that weapons only get parsed if they are used by something?
Attach your new payload weapon as a DeathWeapon of some dummy unit (XCOMET for instance) and it will work properly, I just tested it
BTW: NukePayload is used as a DeathWeapon by the nuclear reactor.
Now we have a new reason for that.