Forum rules - please read before posting.

Correct way to stop an NPC?

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

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.