Hypergate script with built-in threat level check

The gate is just the flat panel and can be slid into a gate frame.

The gate is just the flat panel and can be slid into a gate frame.

One annoying problem I’ve had with hypergate teleport scripts is that some regions have the right threat level settings to run walk-through scripts, while others don’t, and require a different command to activate the teleport.

Users had to know what their threat levels were — and who knows that? And they were the wrong types of threat levels, the users had to go into the script and edit it, replacing one command with another — and who wants to do that?

Unfortunately, there’s no function in OpenSim to tell you what the threat levels are. Which is too bad — it would be convenient to have one.

But there is a work-around, and it’s explained on this page.

The sample script provider loops through and checks the availability of most of the major functions you’d want to run. And I recommend that you grab a copy to use until someone creates an OSSL command.

But I only needed to check one function — osTeleportAgent. So I rewrote the script just to check that one function. If you need to check just one function for a script you’re writing, here it is: Check for osTeleport function.

Then I took that script, and smooshed it together with my easy hypergate script, updated with my own special effect, and moved the various pieces around until it worked.

Just put the script in any object, change the name of the object to the name of the destination, and the description to the destination’s hypergrid address. The script even checks whether the destination region is active or not — and turns black if its down.

I recommend creating a flat panel for the gate itself — as described here — and making the frame of the gate a separate object.

Download the CCO hypergate script for flat panel with whoosh, status and threat level check.

I’ve also updated the Kitely Market listing for this gate.

Related Posts

maria@hypergridbusiness.com'

Maria Korolov

Maria Korolov is editor and publisher of Hypergrid Business. She has been a journalist for more than twenty years and has worked for the Chicago Tribune, Reuters, and Computerworld and has reported from over a dozen countries, including Russia and China.

  • Very clever and cool. Thanks for sharing this!

    • And since I forgot to mention this — my code is released under a CC0 license, for any use whatsoever, no attribution required. Feel free to even use it to build commercial products. I’m also in the process of improving my water animation, and will be donating that, as well.

  • Super cool !

  • I just updated the script — it wasn’t resetting correctly when changed. Only when first rezzed from inventory.

  • Maria, will you update this script for OpenSim 0.9 (dev)? Thx!