Guide 1 Docs 2 Reference 3

Function of EntitySpec

entitySpec.on_spawn

Told when one of this kind is spawned; nothing waits on it and its answer is not read.

entitySpec.on_spawn((e: EntityHandle) -> ()) → ?

Parameters

(eEntityHandle) -> ()required

Returns

?