obj: use(core, actor, obj) & destroy(core, obj)

Object scripts can now define:

use(core, actor, object)

destroy(core, object)

This will be useful for, for example, making a pcd vehicle spawn in the
datapad upon the use of a deed before destroying itself, or making a
lifeday tree spawn another tree upon its destruction.
This commit is contained in:
Treeku
2013-11-16 23:15:26 +00:00
parent a5385ce4da
commit b6fc2edfe3
2 changed files with 52 additions and 13 deletions
@@ -29,6 +29,7 @@ public class ObjControllerOpcodes {
public static final int TARGET_UPDATE = 0x26010000;
public static final int OBJECT_MENU_REQUEST = 0x46010000;
public static final int SECURE_TRADE = 0x15010000;
public static final int USE_STATIC_OBJECT = 0x26010000;
public static final int USE_OBJECT = 0xC5040000;
public static final int BUFF_BUILDER_CHANGE = 0x5A020000;
}