Passing type to function?

Blitz3D Forums/Blitz3D Beginners Area/Passing type to 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.

Because you are using the For/Each loop, your function will work for ALL your 'enemy' type objects. I think you need to set a Field to represent your enemies (either an image/meshhandle or something) and operate your FollowWaypoints function on the object.

FollowWaypoints(baddies\mesh)

Function FollowWaypoints(meshhandle)

or something (If Ive understood correctly)