How to call call updateStartPosition() & resetToStart()?

In the Needle Engine Samples, Iā€™d like to reuse call some of the example scripts from my scripts. Specifically, I want to call updateStartPosition() & resetToStart(). How can I import those into my script?

Original Post on Discord

by user 581381221087445033

Which scripts exactly are you referring to?

If I understand correctly one way to go about it would be to add them to your package.json as a dependency and then import the type, get a reference using getComponent and then call the appropriate method

Or just copy over the example scripts into your NpmDef and modify them as you see fit