#1

Hey guys, what would i need to use in mysql to load objects from groups so lets say i have the table (See Attached Image) how could i set it up to load just from one certain group id and not to stop until every fire in that group has been spawned.
Reply
#2

Put in your loading function at the query at the end:
WHERE `FireGroupId` = '1'
exampe if you only want to load the objects of group 1.
If this is what you mean.
Reply
#3

Would there be a more efficient way? Because the system i am using calls for a group of fires to be spawned so would there be a better way than having it select from an array with group id's or could it just be able to randomly select from that table and as long as all of the group id's correspond.
Reply
#4

Well if I'm understanding it right,
you can load every time all the objects of a group like the way I told you, but not spawn then,
you put them in a array and before you spawn them you select random numbers of that array that you will spawn.
I'm not sure if this is what you mean, but I hope I help you with it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)