(04-28-2024, 10:08 PM)johnno56 Wrote: Building a level, walls; floors and ceilings, I can do... but I get a little confused with placing items... I can place item on the ceiling and floors ok. But the "indexes" for the items I am not all that familiar. Do the "item" indexes have to be the same as the image "indexes"?
Would there be a RC PDF squirreled away on some drive per chance?
The index is only useful for things that the player can interact with, such as keys and medkits. If you call w3d.Item(ply.x, ply.z) it returns the item index (if any) at the player's position. So if you created a medkit-item for index 1 and add a couple of those on the map, every time the player stands on a medkit tile Item(..) will return 1. Thenyou can give the player som health and use RemoveItem(ply.x, ply.z) to remove the medkit at that position.
For the knight armour (your screenshot), the index is not important. The knight should be marked as an obstacle, so the player wont even be able to stand on that tile.
There is no connection between items and images other than the fact that an item uses an image when it's rendered. So they don't need to be the same.