Hi. I have a small problem. I created an item shop where my hero can buy items (weapons). When the hero buys an item it gets placed in its inventory and the weapon is correctly applied. What happens is that after some (random) number of shots some items just disappear. I thought it could be a "charge" attribute inside the weapon itself but couldn't find anything...any suggestions on what may cause this?
Just for info, here is my item (created upon diamondback's rail gun weapon)
Is the item being destroyed by splash damage? By default, things like a siege tank's sieged weapon will actually kill items on a unit because the splash damage will hit them.
The event that causes the item to disappear is caught by a trigger that catches the "Item is exhausted" event. How can I prevent the destruction of an item by damage? I cannot see the flag "indestructible" in the item...
The item itself didn't have any flags. I wen to check the unit related to that item and the invulnerable flag was already set. Then I proceeded to increase that unit's health (as you suggested) to 100k and a regen of 100k and the problem seems to have disappeared. Thank you =)
PS: how is it possible that the item in the inventory disappeared even when the invulnerable flag was set?
Hi. I have a small problem. I created an item shop where my hero can buy items (weapons). When the hero buys an item it gets placed in its inventory and the weapon is correctly applied. What happens is that after some (random) number of shots some items just disappear. I thought it could be a "charge" attribute inside the weapon itself but couldn't find anything...any suggestions on what may cause this? Just for info, here is my item (created upon diamondback's rail gun weapon)
Is the item being destroyed by splash damage? By default, things like a siege tank's sieged weapon will actually kill items on a unit because the splash damage will hit them.
The event that causes the item to disappear is caught by a trigger that catches the "Item is exhausted" event. How can I prevent the destruction of an item by damage? I cannot see the flag "indestructible" in the item...
"Invulnerable" is the flag. You can also set it's life and life regen to some obscene value like 10,000 to further cement this.
Does the issue still occur even after these changes?
The item itself didn't have any flags. I wen to check the unit related to that item and the invulnerable flag was already set. Then I proceeded to increase that unit's health (as you suggested) to 100k and a regen of 100k and the problem seems to have disappeared. Thank you =)
PS: how is it possible that the item in the inventory disappeared even when the invulnerable flag was set?