DestroyDynamicObject
#1

Hi,

If i DestroyDynamicObject

new objectid;

onGameModeInit
objectid = CreateDynamicObject



somewhere:


DestroyDynamicObject( objectid );
and instantly
objectid = CreateDynamicObject

So for ex, when ongamemodeinit object id is 0, when i destroy, and create object id will 0?
Reply
#2

I don't understand and I'm not sure anyone else will?

Can you be a little more clear.
Reply
#3

Test it yourself.

Код:
public OnGameModeInit()
{
	new fasdas;
	fasdas = CreateDynamicObject(params);
	printf("%d this is the object id",fasdas);
	DestroyDynamicObject(fasdas);
	fasdas = CreateDynamicObject(params);
	printf("%d this is the new object id",fasdas);
	return 1;
}
Reply
#4

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Test it yourself.

Код:
public OnGameModeInit()
{
	new fasdas;
	fasdas = CreateDynamicObject(params);
	printf("%d this is the object id",fasdas);
	DestroyDynamicObject(fasdas);
	fasdas = CreateDynamicObject(params);
	printf("%d this is the new object id",fasdas);
	return 1;
}
Yep, it's not hard if you know how to check variables and such...
Reply
#5

Yes, but it's always the same, i mean when destroydynamicobject, always function createdynamicobject will be created with ID, in free space?
Reply
#6

Either the ID matches, or it doesn't... Which is it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)