Cstrike
2010-08-11 10:21:53
tl;dr at bottom
I've been trying to learn reflection. Thus far I can make it walk :) (which is not much of course…), and now I need to climb up and down a ladder.
I could technically go "hey guys what is the object ID of (item X)", but then I learn nothing.
I don't know if this is possible, but how can I go about finding what object ID is for my specific ladder on my own? I know there is self-debugging code out there… but all the reflection examples I've looked at have problems (like returning as -1). On top of that, I'm not sure what code I would use to find it on the main screen.
Of course I will bring in fail safes […etc…], though I'd like to make a specifically reflection based script to enhance my scripting repertoire.
TL;DR
1) How do I go about finding ladder ID's (ladder as an example, could be anything… even a door I will need) without just pestering someone? What debug code can I use?
2) What code would I use for above to hover mouse on main screen (not MM)?
Thanks
I've been trying to learn reflection. Thus far I can make it walk :) (which is not much of course…), and now I need to climb up and down a ladder.
I could technically go "hey guys what is the object ID of (item X)", but then I learn nothing.
I don't know if this is possible, but how can I go about finding what object ID is for my specific ladder on my own? I know there is self-debugging code out there… but all the reflection examples I've looked at have problems (like returning as -1). On top of that, I'm not sure what code I would use to find it on the main screen.
Of course I will bring in fail safes […etc…], though I'd like to make a specifically reflection based script to enhance my scripting repertoire.
TL;DR
1) How do I go about finding ladder ID's (ladder as an example, could be anything… even a door I will need) without just pestering someone? What debug code can I use?
2) What code would I use for above to hover mouse on main screen (not MM)?
Thanks