by skydereign » Thu May 16, 2013 10:11 pm
Don't do this. Any actor that can trigger code is by definition active, so if you can click an actor, it is already active. Also, casting a const char* to an int is a bad way of doing this. If you want to check if an actor exists, check if its cloneindex is valid. Invalid actors have a cloneindex of -1, and checking for that doesn't require any weird casting.