Add at_object_creation() to basicobject.py. I'll be adding at_object_destruction() later, ran out of time right now to do so. Also added some elaboration on the purpose of __init__ to basicobject.py.
This commit is contained in:
parent
36e23bfd4a
commit
4bcbfd855a
3 changed files with 23 additions and 2 deletions
|
|
@ -280,6 +280,9 @@ def cmd_create(command):
|
|||
new_object = Object.objects.create_object(odat)
|
||||
|
||||
source_object.emit_to("You create a new thing: %s" % (new_object,))
|
||||
|
||||
# Trigger stuff to happen after said object is created.
|
||||
new_object.scriptlink.at_object_creation()
|
||||
GLOBAL_CMD_TABLE.add_command("@create", cmd_create,
|
||||
priv_tuple=("genperms.builder"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue