Deleting parameter from function does not remove value from action

Steps to recreate:

  1. create a function with 3 parameters
  2. create an event action that calls the function and specifies all 3 parameters
  3. modify the function and remove the last parameter

If you keep the 3rd parameter in the “Sentence in Events Sheet”, the Events Action will continue to show the parameter value for the parameter that has been deleted.


What led me to find this - I needed to rename a variable and was using Find in the Editor to locate the lines where the variable needed to be changed. When I removed the parameter from the function, I also cleaned up the “Sentence in Events Sheet” line, so this hidden parameter was still being picked up by the Find command. I located the issue by examining the .json code.