Skip to content
lsl.devlsl.devLSL Dev

llScriptDanger

function
Function syntax
integer llScriptDanger(
  1. vector pos// Position vector in region coordinates to check.
);
Returns
integer
Energy
10

The usefulness of this function is limited as it does not give the reason why the script would be in danger. llGetParcelFlags on the other hand can be used in much the same way and gives more detailed information.

Returns an integer that is TRUE if pos is over public land, sandbox land, land that doesn’t allow everyone to edit and build, or land that doesn’t allow outside scripts.

How to use
integer result = llScriptDanger(ZERO_VECTOR);
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlScriptDanger, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.