Addressing another type within same type

Blitz3D Forums/Blitz3D Programming/Addressing another type within same type

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.

the loop is on player 56 , who targets player 990

You should have a 'target.Player' field that points to the current target type instance

Type Player
 Field x#,y#
 Field Target.Player
 Field Health
 ..
End Type

..

For thisPlayer.Player = each Player
 If thisPlayer.Target\health < 5 ...whatever
Next

did I understand you correctly?