Skip to content

Animation Event OnCreate #258

@DCurrent

Description

@DCurrent

Description

Animation scripts fire oncreate() event on every frame.

Debugging

Reproduce

  1. Add an animation script to any model text.
  2. Add an oncreate() function with a debug trace (ex: log("\n Hello world!");).
  3. Load the module and play level with entity spawned from model.
  4. Oncreate() fires on each frame along with main().

Expected behavior

Oncreate() should only fire during initial creation of script (i.e. spawning entity).

Version

Unknown. Anecdotally this bug has existed for several years and may have been present since addition of oncreate().

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions