ID:171569
 
        Click()
usr.icon_state = "[usr.Right]"


Okay, that is my example.
Now what I am wanting to know is how can I make it so that when that click proc is triggered, it changes an object's icon state instead of the users?


So for example I have an object...
obj
TestObject
icon = 'Test.dmi'
icon_state = "Test_State1"


How would I make it so that when the Click() proc is triggered, it changes the icon state of the TestObject?

The coding examples were to help me explain this the best I could, any help appriated. Thanks!
use SRC instead of USR.
In response to Siientx
Siientx wrote:
use SRC instead of USR.
User is perfectly okay in Click, from what I've learned.
obj
testobject
Click(obj/O)
O.icon_state = "[O.right]"

I didn't test that but i think that should work just like that
In response to Hell Ramen
Hell Ramen wrote:
Siientx wrote:
use SRC instead of USR.
User is perfectly okay in Click, from what I've learned.

You're right that usr is what you want in Click() to refer to the player, but the original post was about changing the obj's icon_state, so src is needed.