22.02.2014, 16:06
I think BigGroter has made him understand it over his explaination ^^
If you want to create an object linked to a var, you need to create a var for each object. Either, if you use the same var twice for two objects differents, the var will be linked to the last object created. The first one won't be destroyable through DestroyObject(objectid);
To take an example
If you want to create an object linked to a var, you need to create a var for each object. Either, if you use the same var twice for two objects differents, the var will be linked to the last object created. The first one won't be destroyable through DestroyObject(objectid);
To take an example
PHP код:
new object;
object = CreateObject(model, x, y, z, 0.0, 0.0, 0.0);
object = CreateObject(othermodel, x, y, z, 0.0, 0.0, 0.0);
DestroyObject(object); // Will destroy the "othermodel", not "model".