Author Topic: Getting certain object.  (Read 460 times)

I have 5 five trigger objects in the map (that load with the mission). How would I get these into some sort of group.

And whats the difference between a SimSet and a SimGroup?

I have 5 five trigger objects in the map (that load with the mission). How would I get these into some sort of group.
Put this around the 5 triggers in the .mis file:
new SimGroup(MissionTriggers){
//Triggers in here plox.

};
Do this somewhere after the sun/sky/terrain/water/etc.
And whats the difference between a SimSet and a SimGroup?

Both SimSet and SimGroup add objects into themself as a list.
Difference being that an object in a SimGroup will actually be in that group, an no other group. That group will be returned using obj.getGroup();
A SimSet adds objects into itself, but the objects are not actually in it as a group. This makes it easier to loop through objects that need to be in another group.

new SimGroup(MissionTriggers){
//Triggers in here plox.
};
[\quote]
Just out of curiosity. Why not use a Simset?

Because you shouldn't create objects inside a simset.