(03-23-2013, 10:02 PM)Knusper. Wrote: Is there a way to check if an entity is active???
There is no function to check if an entity is active, but there is one to check if it exists, not sure if it will be useful for you though...
GetEntityExists(string& asName);
Alternatively, if it is an entity that you are setting active/inactive in the script, you can a bool or int to set to true/false when you active/deactive the entity, then check that instead to see if it is active/inactive
(03-23-2013, 10:02 PM)Knusper. Wrote: Here there is no possibility to do maths like "-" with a string and an int.
You can use + and += to concatenate integers onto the string (which converts the int into a number character), but you can't do math operations like '-' with a string.
However since the string is essentially an array of integers that hold the ASCII value for the character in the string, you can treat the characters as int's by accessing the index values of the characters in the string (using [ and ], e.g. string[0] = 1)