Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

2 decades ago by dahl

Can the 'main.js' look for and handle variables set inside of Entities?

Thanks.

2 decades ago by Jerczu

Yep... if you set them as object attributes.

2 decades ago by Jerczu

All you need to do is use getentitybytype function and then you can reference any attribute of that object from main.js check the docs for the function name.

2 decades ago by dahl

Thanks Jerczu.

2 decades ago by Jerczu

No problem glad to be of help.

2 decades ago by SlouchCouch

alternatively you could do getEntityByName() so if you have a specific entity you want to operate on you can define its name property. This is handy if you have multiple entities of the same type, but you only want to use the method/properties of a specific one.

name can also be set inside weltmeister which is slick.
Page 1 of 1
« first « previous next › last »