on_player_mined_entity ignores turret ammo
Posted: Fri Sep 14, 2018 1:29 pm
Hi,
while modding i found something which looks more like a bug to me. The description of on_player_mined_entity states:
"Called after the results of an entity being mined are collected just before the entity is destroyed. After this event any items in the buffer will be transferred into the player as if they came from mining the entity. "
Based on this when i mine a turret with ammo inside, i expected to get two buffer entries; one entry for the turret and one for the ammo.
yet the buffer only contains one entry for the turret.
this is weird since at the same time the ammo inventory of the turret is already reported as empty.
while modding i found something which looks more like a bug to me. The description of on_player_mined_entity states:
"Called after the results of an entity being mined are collected just before the entity is destroyed. After this event any items in the buffer will be transferred into the player as if they came from mining the entity. "
Based on this when i mine a turret with ammo inside, i expected to get two buffer entries; one entry for the turret and one for the ammo.
yet the buffer only contains one entry for the turret.
this is weird since at the same time the ammo inventory of the turret is already reported as empty.