QuaZi - are you sure that's the better way? The second seems more in line with how C2 works. How does picking work if everything is in the same plugin? How could I do something like:
If 3denemyobject variable 'mode' = "patrolling"
If distance(3denemyobject.x, 3denemyobject.y, 3dplayerobject.x, 3dplayerobject.y) < 1000
- set 3denemyobject.mode to "chasing"
If 3denemyobject variable 'mode' = "chasing"
- move 3denemyobject 50*dt pixels at angle: angle(3denemyobject.x, 3denemyobject.y, 3dplayerobject.x, 3dplayerobject.y)