cmann1 / dustmod-issues

Dustmod issue tracker
0 stars 0 forks source link

API interaction with some standard triggers #69

Closed JonatanWaern closed 2 years ago

JonatanWaern commented 2 years ago

Reading and writing information from

JonatanWaern commented 2 years ago

I do not know to what extent this is already possible with varstruct

msg555 commented 2 years ago

To some extent it is possible with the reflection/vars API. Many of these objects do not update their internal state correctly however if you modify their vars after they have been added to the scene so ymmv there. A more foolproof approach is to copy vars, modify vars, replace the entity when you need to make modifications.

I'm open to improving support for var modifications correclty updating internal state of specific objects. For many of the mentioned entities I suspect it will just work (camera nodes probably won't). An API to manipulate camera nodes is probably appropriate.