Skip to main content
edited title
Link
ideasman42
  • 48k
  • 10
  • 144
  • 226

What is the difference between module and script execution methods in the Game Engine?

Tweeted twitter.com/#!/StackBlender/status/491515273212882944
Source Link
gandalf3
  • 158.3k
  • 60
  • 612
  • 1.1k

What is the difference between module and script execution methods?

There are two options when using a sensor to run a python script (which also makes me wonder why the python option is a Controller and not a Actuator, but I guess that's a separate question).

enter image description here

As far as I can tell, Module runs a function in certain file (specified file.function). Script runs an entire file.

What are the practical differences between the two (assuming they are functionally the same)? What are some example cases where you would want to use one over the other?


The wiki page seems to be down currently, so forgive me if the answer is written right at the top..