Jump to content
  • 0

Weaponcase that gives you specific item after pressing E on it (usebutton)


Sytnaton

Question

Pretty much asked in the title
But yeah I'm trying to make a weapon case that if you press the use button on it, it will change the sprite and give the player a specific item.
image.png.2403c8ca0b539a1ca970fb1f86643f6b.png
I don't get any errors in-game or in command.
it's just a static object now.

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

State named "use:" is only for inventory. For a static decoration, you need to inherit from SwitchableDecoration and add a Activation property in the default block, otherwise it will not work.

Share this post


Link to post
  • 0
9 hours ago, ramon.dexter said:

State named "use:" is only for inventory. For a static decoration, you need to inherit from SwitchableDecoration and add a Activation property in the default block, otherwise it will not work.

Thank you for the help I will pin the wad file later for those who are also looking for this.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...