Object Interaction with ZEP Script
App.onObjectTouched.Add(function (sender, x, y, tileID, obj) {
if (obj !== null) {
if (obj.type == ObjectEffectType.INTERACTION_WITH_ZEPSCRIPTS) {
App.sayToAll(`Number = ${obj.text}, Value = ${obj.param1}`, 0xFFFFFF);
}
} else {
App.sayToAll(`obj is null`, 0xFFFFFF);
}
});Last updated
Was this helpful?

