I am having trouble with this one.
I have items in the world that inherit from the "Item" type. I am adding them (constructing them) manually using the [add command. They show up, and the Hue property is set correctly. However, I am trying to make it so that when the player interacts with the object, the Hue gets changed temporarily, then goes back to the regular Hue after a timer expires. This is actually working "programmatically" so to speak. Meaning, my Timer is running properly, and when it expires I can interact with the object again.
The problem I am having is that the Hue of the object does not appear to change. Even if I "[m tele" away and back, the original Hue is still there during the running of the Timer. Here is the strange part: If I use the staff orb to switch back and forth between Player and Owner, then "sometimes" the Hue shows correctly.
I have tried adding "InvalidateProperties()" several places, and nothing seems to be triggering the correct visual change to the item.
Any ideas?
I have items in the world that inherit from the "Item" type. I am adding them (constructing them) manually using the [add command. They show up, and the Hue property is set correctly. However, I am trying to make it so that when the player interacts with the object, the Hue gets changed temporarily, then goes back to the regular Hue after a timer expires. This is actually working "programmatically" so to speak. Meaning, my Timer is running properly, and when it expires I can interact with the object again.
The problem I am having is that the Hue of the object does not appear to change. Even if I "[m tele" away and back, the original Hue is still there during the running of the Timer. Here is the strange part: If I use the staff orb to switch back and forth between Player and Owner, then "sometimes" the Hue shows correctly.
I have tried adding "InvalidateProperties()" several places, and nothing seems to be triggering the correct visual change to the item.
Any ideas?