Does anyone know how to simply change the value of a game object with an Object Variables Component in C#?

I tried to grab the Object Variables Component of my game object and then tried

objVarComp.initialVariables.gameVariable[id].boolValue = true;

...but *as expected* it only modified the initial value of the variable.

Inside ORK.Game or ORK.Variables, I didn't find any way to sort of "get" the object I want to set the object variable on.

Thanks!
  • Have you tried GetHandler().Set() command?
  • edited August 19
    Hey Hellwalker! Thanks!!! I don't know why, I thought I tried that also, but it seems not... As soon as I tried your suggestion, it worked perfectly.

    That's really appreciated!
    Post edited by ArsMagika on
Sign In or Register to comment.