How do I fix weapon replacements?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
gman829
Posts: 74
Joined: Sat May 12, 2018 1:55 pm

How do I fix weapon replacements?

Post by gman829 »

So I got a weapon off of Realm667, but when I load it, it replaces the chaingun instead of giving me the option to have both the chaingun and my new weapon. What do I need to change so I can have both guns in my inventory? The gun in question is this: https://realm667.com/index.php/en/compo ... 32&Itemid=
User avatar
Ac!d
Posts: 345
Joined: Tue Apr 02, 2019 5:13 am
Location: France

Re: How do I fix weapon replacements?

Post by Ac!d »

Works fine for me. Strange, the DECORATE script contain the line for the same weapon slot than the chaingun :
- Weapon.SlotNumber 4

For the creation of a new playerpawn, use this line :
- Player.WeaponSlot 4, Chaingun, AutoGun
Post Reply

Return to “Scripting”