Author Topic: ::OnAdd(%arg1, %arg2){}  (Read 967 times)

What are the arguments for OnAdd and is there any way to find out any functions variables?

Usually %datablock then %obj as the object created.

trace(1);, call the function in a normal way (spawn the item, etc), trace(0);, look in console at the function and the IDs given to it. Find the objects/datablocks with those IDs if they are in the hundreds, what is at that position if it is a large 3 or 7-word string, and what the colour is if it is four 0-1 values.

Thanks.

EDIT: Is there a way to get the item's brick?

%obj.spawnBrick
« Last Edit: September 23, 2007, 05:28:38 AM by MrPickel »