17.12.2012, 13:38
You don't take into account that objects can be destroyed at any time.
Just make a function that loops through all id's from 1 to 1000. Check with 'IsValidObject(objectid)' and up the variable by one each time the statement is true.
Important note: this method will give an incorrect value when using a streamer.
EDIT: Fixed mistake pointed out by ******.
Just make a function that loops through all id's from 1 to 1000. Check with 'IsValidObject(objectid)' and up the variable by one each time the statement is true.
Important note: this method will give an incorrect value when using a streamer.
EDIT: Fixed mistake pointed out by ******.

