Respawning Items

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!)
Dudweiser
Posts: 60
Joined: Mon Jan 08, 2018 5:54 pm

Respawning Items

Post by Dudweiser »

Is it possible to turn respawn items on by default when you start a custom wad file without having to go into game settings every time you load the wad? I tried looking into dmflags 540672 but dont know how to actually enable it using the code.

Thanks in advance, this is for a single player level by the way
Dudweiser
Posts: 60
Joined: Mon Jan 08, 2018 5:54 pm

Re: Respawning Items

Post by Dudweiser »

Anyone? :(
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: Respawning Items

Post by Blue Shadow »

Put this in a text file and save it in your GZDoom directory as autoexec.cfg:

Code: Select all

sv_itemrespawn true
Now each time GZDoom runs, it'll enable that option for you.

For reference: [wiki=CCMDs#AutoExec]AutoExec[/wiki]
Dudweiser
Posts: 60
Joined: Mon Jan 08, 2018 5:54 pm

Re: Respawning Items

Post by Dudweiser »

Thanks for the reply, is it possible to create this file inside a wad file? And if so how? Lol
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: Respawning Items

Post by Blue Shadow »

Dudweiser wrote:is it possible to create this file inside a wad file?
No, it isn't.
Dudweiser
Posts: 60
Joined: Mon Jan 08, 2018 5:54 pm

Re: Respawning Items

Post by Dudweiser »

Ok, it works perfectly like this anyway thanks a lot mate

Return to “Scripting”