Hello, i want to access to an array from another script: i have a dbase script with arrays of objects, and i have this code into player script
var targDB=‘potions’;
var inve= app.root.script.dbase[targDB];
but don’t work…i’m sure i’m at fault…but where?
app.root
- is not a root entity.
app.root.children[0]
- is root entity of your scene.
i see
i’m sorry how silly of me (digging a hole to hide)