How would I group together clusters of objects? - 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: How would I group together clusters of objects? (
/showthread.php?tid=438185)
How would I group together clusters of objects? -
Hoborific - 19.05.2013
so I have two objects and a 3dlabel, now I have 100 of these clusters. I want to be able to define a cluster, not individual object for the script, but so far I have used an array [][6] (x,y,z,obj,obj,text.) but this is quite messy and i'm not quite sure I am doing it right.. I am also using a second array, dimensioned as a 1d array, size of 100 as boolean to check if the specific cluster ID has been created already or not.. this already sounds way too complicated just reading, help?
tl;dr, trying to group together 3 entities and check when they're spawned.
I might use an enum come to think of it..