Types again

Blitz3D Forums/Blitz3D Programming/Types again

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.

It depends on 'how' you apply the systems.

If you do something like this:

For System.MyType = Each MyType
ApplySystemFunction(System\Entity)
Next


Then it will be applied to all. However, to distinguish between different Type Instances, you need to work witrh the fields or something to identify which ones should or should not be affected...


For System.MyType = Each MyType
     If System\OtherField > 7 Then MoveEntity System\Entity,0,0,1
     If EntityDistance (System\Entity,PlayerEntity)<5 Then ApplySystemFunction(System\Entity)
     If EntityDistance (System\Entity,PlayerEntity)>20 Then ApplyOtherFunction(System\Entity)
Next



Does this help?