Modifying a type from a function

Blitz3D Forums/Blitz3D Programming/Modifying a type from a function

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.

Oops, the above piece of code was wrong, here is the corrected:
for b.blue_car=each blue_car
damage_car(b,20)
next

function damage_car(b.blue_car,damage)
b\hull=b\hull-damage
end function


@mr.ninja
You can use the same function like this:
for b.blue_car=each blue_car
damage_car(b,20)
next
for c.blue_car=each blue_car
damage_car(c,20)
next