Hi
I want to stop an NPC when I hit a collider. I'm using this.getcomponent().halt() which works fine but is very sudden. If i want to make it more natural, I can use this.getcomponent().setfloat("Speed",0f) which also works, and I can lerp that for something super nice.
AC wise, is this the best way to stop an NPC at the coding level? I can't find a Stop() function other than Halt(). Is there a more...betterer way of doing it?
Olly
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
If the NPC is moving as a result of pathfinding, you can use the EndPath function.