Why doesn't code work

    if PosClose(obj.worldPosition, next[0]):
TypeError: 'NoneType' object is not subscriptable
Python script error - object 'Follower', controller 'Python':
Traceback (most recent call last):
  File "NodePath", line 23, in <module>
  File "C:\Users\My world\Desktop\BGHelper1.9\BGHelper.py", line 547, in MovePat
h
    if PosClose(obj.worldPosition, next[0]):
TypeError: 'NoneType' object is not subscriptable
Blender Game Engine Finished

Why don’t the BGhelper1.9 work in recent version of the blender game engine?

Code has no job --> code does not work :wink:

The Python interpreter is telling your:
‘NoneType’ object is not subscriptable

As there is only one subscription … next is None.

Could you correct this blend for me then? http://www.pasteall.org/blend/21368

you forgot to add the bgehelper.py.

what is this file supposed to do?

It allows enemies to follow waypoints.You can also duplicte the waypoints and the enemies will follow the waypoints you duplicate.With the waypoints you already have.
Here is the BG helper.py
http://www.pasteall.org/42231/python