SA-MP Forums Archive
GetObjectModelID ?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetObjectModelID ?? (/showthread.php?tid=341713)



GetObjectModelID ?? - Azazelo - 11.05.2012

GetObjectModelID(objectid);

If this exist ... What i want to know is it possible to find model id of object using object id ?


Re: GetObjectModelID ?? - Yasahiro - 11.05.2012

You could store the objectids in an array when the objects are created.

Код:
new objectIDArray[5000]; // change 5000 to whatever your max objects is.
...
new model = 700;
new id = CreateObject(model, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
objectIDArray[id] = model;
Something along those lines.


Re: GetObjectModelID ?? - Azazelo - 11.05.2012

Tnx for info, i just wonder if they implement something like this in samp ?