Lootable Crate

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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
User avatar
Grey-Wolf
Posts: 179
Joined: Sun Jul 15, 2018 4:59 pm
Graphics Processor: nVidia (Modern GZDoom)

Lootable Crate

Post by Grey-Wolf »

Yes, it's me again. Yes, I suck THAT hard at scripting.
This time, I'm trying to get a chest working. The idea is that the player should first find a key to open it, so that it can spawn a random selection of items.
What I tried as a prototype:
Spoiler:
This version of the crate completely freezes my game after being spawned. I also did another version as a CustomInventory Actor, but the A_JumpifCloser(196,"KeyCheck") was not performed, so I assumed that before the actor could even make the jump, it has to target the player... but I'm not getting anywhere with this.
Last edited by Grey-Wolf on Sat Feb 09, 2019 6:48 pm, edited 1 time in total.
User avatar
Grey-Wolf
Posts: 179
Joined: Sun Jul 15, 2018 4:59 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Lootable Crate

Post by Grey-Wolf »

Aaaaaand I put a 0 frame duration on a loop state. I'm an idiot.
Post Reply

Return to “Scripting”