diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 923b81e1de..09ab5d44a9 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs @@ -1155,6 +1155,11 @@ namespace OpenSim.Region.ScriptEngine.Common return new LSLString(d); } + public static implicit operator Vector3(LSLString s) + { + return new Vector3(s.m_string); + } + #endregion #region Overriders @@ -1267,6 +1272,16 @@ namespace OpenSim.Region.ScriptEngine.Common return (double)i.value; } + public static bool operator true(LSLInteger i) + { + return i.value != 0; + } + + public static bool operator false(LSLInteger i) + { + return i.value == 0; + } + #region Overriders public override string ToString()