Type Selection

BlitzPlus Forums/BlitzPlus Programming/Type Selection

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I think you'll have to flag the types with an extra variable if you want to do that. Or you can do the 'for x.chair = each chair' search for whatever characteristic you want to change.

for x.chair = each chair
if x\number = 1
x\model = "model1.x"
else
x\model = 0
end if
next

for instance, if you wanted all the objects in the room to be deleted except the ones marked "Permanent", you'd have to have a variable in your type named "permanent" (or something similar, for the sake of understanding) that was set to either 0 or 1 at creation, and could be changed, if you liked, but to delete only those that were marked with 1, you could cycle through them all, check if permanent = 1 or not, and deleting those that aren't. ... hope that was what you were asking for.