In terms of adding a new entry point to an existin...
# suitescript
e
In terms of adding a new entry point to an existing script, you'd just add a new function to your source file, say
Copy code
function onLineInit(type) {
  // ... do great things
}
then you'd set "onLineInit" in the
LINE INIT FUNCTION
on your Script record