Multiple TYPE's ?

Blitz3D Forums/Blitz3D Beginners Area/Multiple TYPE's ?

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.

If good and bad soldiers share the same attributes all you need to do is add another field in the type such as

field is_good

Then when you itterate through the type instances like so you can determine which is which ...

for l.soldier = each soldier

if l\is_good
{do good soldier stuff}
else
[do bad soldier stuff}
endif

next