Page 1 of 1

Bootleg (but useful! :D) way to tell if an object is active

PostPosted: Thu May 16, 2013 9:34 pm
by Hblade
Make a variable, (example f) and then on mouse down of w/e actor, simply do this:
Code: Select all
f=(int)name;


BAM bootleg way xD results will be a long string like this:
result.png

Re: Bootleg (but useful! :D) way to tell if an object is act

PostPosted: Thu May 16, 2013 10:11 pm
by skydereign
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.

Re: Bootleg (but useful! :D) way to tell if an object is act

PostPosted: Thu May 16, 2013 10:29 pm
by Hblade
Ahh ok