Mod Tool/Scripting: Difference between revisions

m
loading objects on OnStartup seems buggy
mNo edit summary
m (loading objects on OnStartup seems buggy)
Line 131: Line 131:


===Events===
===Events===
====OnStartup====
Loading objects on startup can fail in some aspects even though you use the same function for OnActivate.
For example a console might get correct position but wrong rotation.
In that case you might want to switch to another program and then back to XSI to use the OnActivate event. Or you do something else e.g. let the user click on a button. With that everything that happened OnStartup should had enough time to process.
====OnActivate====
====OnActivate====
  function siOnActivateEventTest_OnEvent( in_ctxt )
  function siOnActivateEventTest_OnEvent( in_ctxt )
8,323

edits