Guide 1 Docs 2 Reference 3

Function of EntitySpec

entitySpec.on_steer

Runs before the physics each tick to decide where it goes; call base(e) to extend, leave it out to replace.

entitySpec.on_steer((e: EntityHandle, base: () -> ()) -> ()) → ?

Parameters

(eEntityHandle, base: () -> ()) -> ()required

Returns

?