[Include] iCOO - CountOriginalObjects
#2

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 ******.
Reply


Messages In This Thread
iCOO - CountOriginalObjects - by iWhite - 17.12.2012, 13:31
Re: iCOO - CountOriginalObjects - by FUNExtreme - 17.12.2012, 13:38
Re: iCOO - CountOriginalObjects - by FUNExtreme - 17.12.2012, 13:44
Re: iCOO - CountOriginalObjects - by iWhite - 17.12.2012, 13:54
Re: iCOO - CountOriginalObjects - by Kreatyve - 17.12.2012, 21:41
Re: iCOO - CountOriginalObjects - by Lorenc_ - 17.12.2012, 22:03
Re: iCOO - CountOriginalObjects - by hustrine - 10.01.2013, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)