Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed with Custom Healing Item
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#11
RE: Help needed with Custom Healing Item

I do think it's important that people are able to solve issues themselves, otherwise you might hit the same problem later on and still not know how to solve it.

For now I think you should focus on one thing at a time: Either make an item to pick up from the included models, or make a custom model as a basic entity. Making a custom item from a modified version of an included model can complicate things more than necessary since there are several things you need to do right.

Try following these steps:

  1. Open the Model Editor, then go File > Import mesh
  2. Pick a model file, like /entities/bottle/amnesia/amnesia_bottle.dae
  3. Use the Shape tool (6) and place a shape down. Select the shape and "Create Body" on it.
  4. Go to the Body tab and set the mass to 5.
  5. Go to Edit > User Defined Variables. Set the type to Item with subtype Health.
  6. Scroll down and set the icon to a file, like /graphics/item/_temp_hand.tga
  7. Save As into /entities/custom/test/test_item.ent
Now go to your Level Editor, find the item, place it down and start the game. You should be able to pick up the item and use it (granted you have less than 100 health).

If everything works well so far, you can proceed by changing the mesh and icon (and SubItemTypeName)

(This post was last modified: 04-12-2020, 10:39 PM by Mudbill.)
04-12-2020, 10:37 PM
Find




Users browsing this thread: 1 Guest(s)