|
Development Forum |
 |
| 
Geek2Nurse
 

|
6/15/2012 | |
How do you set a value to NULL? I can't seem to find the right syntax. I've tried
and a whole bunch of other iterations I can't think of at the moment, and the CAOS Tool didn't approve of any of them.
Also, while I'm thinking of it, if I use SETA to set a reference to an agent, e.g.
is there any way to see that value when debugging like I can do for other values using dbg: outs / dbg: outv? There's no outa, so I'm stuck not knowing what's in there and therefore how to get it back out where I can see it!
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |

Moe
  

|
6/15/2012 | |
You can set a variable to a NULL object handle by using seta vaXX NULL. Naturally you can also use ov's, name, eame, and game variable types to hold object references.
As for seeing what object is stored in an agent variable, there's not a lot you can do without manually grabbing information about the agent held in the variable and DBG: outv's and outs'ing that information. You could for instance, outs the fmly, gnus, and spcs of the agent, and it's location.
An easy way I always use in developing to see if an agent is correctly targeting something, is to move it's target, tint it, and/or kill it. :p Brutal and archaic, but effective. Now a-days I actually have developed what I call an "Agent Eye" that lets me "see" what an agent is currently looking at. I'll release it at some point, once I work out the bugs and maybe add an option to track custom variables.  |

Geek2Nurse
 

|
6/15/2012 | |
Wow, Moe! All sorts of good info in one post, thank you!
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |
|