Unknown Soldier
Mapping a map
- Joined
- Oct 30, 2010
- Messages
- 307
- Solutions
- 11
- Reaction score
- 688
Hello,
I thought it would be pretty simple to get the position and amount of items on the ground, but got no results. So the thing is, that I want to check if a fluid container (a vase for instance) at certain position is filled with certain fluid like water or blood or whatever fluid type it is. Can somebody give me a hint? TFS 1.4.2
That's where I am stuck...
Thanks in advance
I thought it would be pretty simple to get the position and amount of items on the ground, but got no results. So the thing is, that I want to check if a fluid container (a vase for instance) at certain position is filled with certain fluid like water or blood or whatever fluid type it is. Can somebody give me a hint? TFS 1.4.2
Lua:
local item1pos = Position(100, 100, 7)
local item1 = Tile(item1pos):getItemById(12345)
if item1:getCount() == 2 then --2 is for blood
...something...
end
Thanks in advance