Scenario scripting best practices

I'm just getting into scripting scenarios, and I'm curious about "best practices" for scripting scenarios. One thing that comes to mind is the update() function. The online docs might lead a beginner to stuff everything in the update() function, but it feels like this would eventually lead to performance issues, since it runs 60x per second.

Has anyone developed some core libraries to help with scenario scripting, like LUA coroutines that would help keep the scenarios more performant and organized? To be fair, I haven't looked in depth at the pre-installed scenario scripts, so maybe they already have this sort of thing.

Sign In or Register to comment.