Legacy GM Pathfinder question

S

Sudo_Radish

Guest
so I have been experimenting with some more complex pathfinding in my game and come across a curious thing.

In my game I have a object the dictates if the enemies can move. The works fine with the "dumb" enemy using mp_potential_step. The controller object is destroyed causing the enemies to stand in place.

However if I implement, for example, complex pathfinding using the grid function or mp_potential_path this doesn't seem to work. The enemy will continue to the previous set spot ragrdless of me setting speed to 0 or telling it that x and y now equals its own x and y positions.

It seems no matter what I do it will not override the grid or path.
 
S

Sudo_Radish

Guest
Never mind I fixed it after a beer and a rest.

I passed the objects x and y into the pathfinding equation and bingo bongo it now works.
 
Top