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.

Maria Korolov