jkulawik / tdd-issues

Bug tracker for "Amnesia: The Dark Descent" v1.5
0 stars 0 forks source link

Entity callbacks callback cannot be changed after being set #19

Open crater0 opened 3 months ago

crater0 commented 3 months ago

Entity callback functions no longer be changed once set. Attempting to change some of them prevents that callback from working again, as the callback now triggers a script error upon being triggered.

Regression from 1.5

Callbacks confirmed to be broken: SetEntityPlayerLookAtCallback SetEntityCallbackFunc SetEntityPlayerInteractCallback SetEntityConnectionStateChangeCallback

Other non entity callbacks do not seem to be affected. I was unable to test changing a MultiSlider callback with SetMultiSliderCallback due to #18

crater0 commented 3 months ago

Test map containing a few entities for testing CallbackFunc, ConnectionStateChangeCallback, PlayerLookAtCallback, and PlayerInteractCallback. Triggering these will set a new callback func, which now fails. Attempting to use the entity/trigger the callback again will throw an error.

https://steamcommunity.com/sharedfiles/filedetails/?id=3261666604