changed names, some may not be right.
[feisty_meow.git] / huffware / huffotronic_tools_n_testers_v6.1 / simple_map_tp_v0.3.lsl
diff --git a/huffware/huffotronic_tools_n_testers_v6.1/simple_map_tp_v0.3.lsl b/huffware/huffotronic_tools_n_testers_v6.1/simple_map_tp_v0.3.lsl
new file mode 100755 (executable)
index 0000000..5dd9965
--- /dev/null
@@ -0,0 +1,26 @@
+
+// huffware script: simple map tp, by fred huffhines.
+//
+// an inglorious little script for jumping somewhere else.
+
+string region = "hippocampus";
+
+default {
+    state_entry() { if (llSubStringIndex(llGetObjectName(), "huffotronic") < 0) state real_default; }
+    on_rez(integer parm) { state rerun; }
+}
+state rerun { state_entry() { state default; } }
+
+state real_default
+{
+    state_entry()
+    {
+    }
+    
+    touch_start(integer count)
+    {
+        llWhisper(0, "Showing map of " + region + " for teleport...");
+        llMapDestination(region, <130, 130, 24>, ZERO_VECTOR);
+    }
+}
+