From fa5403dccd986022b2a849e2078f043c3225348a Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 2 Jan 2017 19:33:41 +0100 Subject: Initial --- Items.c4d/Sensors.c4d/Button.c4d/Script.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Items.c4d/Sensors.c4d/Button.c4d/Script.c (limited to 'Items.c4d/Sensors.c4d/Button.c4d/Script.c') diff --git a/Items.c4d/Sensors.c4d/Button.c4d/Script.c b/Items.c4d/Sensors.c4d/Button.c4d/Script.c new file mode 100644 index 0000000..68dcaea --- /dev/null +++ b/Items.c4d/Sensors.c4d/Button.c4d/Script.c @@ -0,0 +1,17 @@ +#strict 2 +#include SN7I + +func Triggers() { return [["$Press$"]];} + +func ControlThrow(object caller) +{ + SetAction("Pressed"); + Sound("Grab"); + Trigger(0, caller); + return ClearCom(caller); +} +func ControlThrowDouble() { return ControlThrow(...); } + +func EntranceCallback() { return "ControlThrow"; } + +func SensorCallbacks() { return [["$Press$", "ControlThrow"]]; } -- cgit v1.2.3-54-g00ecf