Author Topic: Player Type Functions?  (Read 1111 times)

Could someone post a list of player type functions and their vars please?


I keep this sort of stuff on-hand.

I keep this sort of stuff on-hand.
When are onAdd, onRemove, and onNewDatablock called and what are their vars?

When are onAdd, onRemove, and onNewDatablock called and what are their vars?

I think you mean arguments, not variables.

When are onAdd, onRemove, and onNewDatablock called and what are their vars?

The only argument they have (aside from the standard argument (the object) for namespaces) is the object it is referring to.

::onAdd is called when a new object is created using this datablock.
::onRemove is called when an object using this datablock is deleted.
::onNewDatablock is called when an already existing object changes to this datablock.

The only argument they have (aside from the standard argument (the object) for namespaces) is the object it is referring to.

::onAdd is called when a new object is created using this datablock.
::onRemove is called when an object using this datablock is deleted.
::onNewDatablock is called when an already existing object changes to this datablock.
Do any of these need to be packaged?

Do any of these need to be packaged?

Some of them do in certain situations. I recommend using Clockturn's object method support functions to check if the function already exists, and if so, call the parent.