Jump to content

Rellek

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Location
    South Africa

Rellek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank's very much macklebee - that worked first time and solved a problem I've been battling with for some time now.
  2. Nope, unfortunately the entities within the scene (when RUNNING WITHIN THE EDITOR) are definitely not children of the world entity - I have tried that before. Perhaps Josh can tell us how we can access a pointer to a specific entity saved within the sbx file when running the LUA code from within the Editor and don't have a scene=LoadScene("MyScene") entry anywhere in the code.
  3. Right, so it's rather easy to find a specific entity in a scene when running a LUA program outside the sandbox editor, i.e.: scene=LoadScene("MyScene") myobject=scene:FindChild("MyObjectName") It's obviously not that simple to do when running the script from within the Editor, and although I have spent many hours reading through our forums, there still doesn't seem to be a satisfactory answer of doing the same from a LUA script running within the editor, simply because there is no "scene" object to refer to - it's not being loaded anywhere in the code for obvious reasons. So, in short - what object/entity can I refer to in place of the scene to find a specific child entity of the scene by it's name key or am I on the "wishful thinking" track here? Is the scene itself (within the editor) a member of the CurrentWorld() or global framework object for example or do I have to start referring to global classnametables and objecttables to achieve this? All I am really trying to do is to get a reference to a specific directional light within my scene to do some sun path tracking from code running inside the edtor - NOT code using engine.exe from the outside. Assistance from anyone in this matter will be much appreciated.
×
×
  • Create New...