|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003341||Spring engine||Lua||public||2012-11-24 00:16||2017-09-24 19:12|
|Status||resolved||Resolution||no change required|
|Target Version||Fixed in Version|
|Summary||0003341: Explosion() not called in water|
|Description||The function gadget:Explosion(weaponDefID, posx, posy, posz, ownerID) call-in is not called when something hits water.|
|Steps To Reproduce||make a a gadget with the following call-in:|
function gadget:Explosion(weaponDefID, posx, posy, posz, ownerID)
Spring.Echo("Exlosion called for",weaponDefID)
And shoot something in water.
|Checked infolog.txt for lua Errors|
you need to register the weapondefs you want to trigger such a callin (performance reasons)
Last edited: 2012-11-24 12:39
Maybe I was unclear: according to the wiki, SetWatchWeapon is required only for the ProjectileDestroyed and ProjectileCreated callins. However, I have set all weapons to be watched. The issue is when something hits water. maybe I should have set reproducability to sometimes then.
I attached a gadget that tests the issue easily. Just fire something in water and then on land and you will see the issue. In water I get the ProjectileDestroyed callin, but not the Explosion one.
that gadget works and prints stuff on explosions in water, too.
though when testing it in my mod i had to remove one of my gadgets that too uses gadget:Explosion(), guess it eats the event. (maybe based on return value, didnt test)
if its about xta then maybe fx_watersplash.lua uses the callin too.
|Yes, that's exactly the reason. Now how do I close this?|
|2012-11-24 00:16||Jools||New Issue|
|2012-11-24 05:40||jK||Note Added: 0009370|
|2012-11-24 05:40||jK||Status||new => closed|
|2012-11-24 05:40||jK||Assigned To||=> jK|
|2012-11-24 05:40||jK||Resolution||open => no change required|
|2012-11-24 12:19||Jools||Note Added: 0009371|
|2012-11-24 12:19||Jools||Status||closed => feedback|
|2012-11-24 12:19||Jools||Resolution||no change required => reopened|
|2012-11-24 12:29||Jools||Tag Attached: callins|
|2012-11-24 12:29||Jools||Tag Attached: water|
|2012-11-24 12:33||Jools||File Added: callintest.lua|
|2012-11-24 12:39||Jools||Note Edited: 0009371||View Revisions|
||Note Added: 0009374|
|2012-11-25 11:47||Jools||Note Added: 0009384|
|2012-11-25 11:47||Jools||Status||feedback => assigned|
|2012-11-25 12:11||jK||Status||assigned => resolved|
|2012-11-25 12:11||jK||Resolution||reopened => no change required|
|2017-09-24 19:12||Kloot||Tag Detached: callins|