prosperon/docs/api/actor.md
2024-07-03 16:38:29 -05:00

448 B

actor

spawn(script, config, callback)

Create a new actor, using this actor as the master, initializing it with 'script' and with data (as a JSON or Nota file) from 'config'.

rm_pawn(pawn)

timers

array

[]

kill()

Remove this actor and all its padawans from existence.

interval(fn, seconds)

delay(fn, seconds)

Call 'fn' after 'seconds' with 'this' set to the actor.

padawans

array

[ {} ]