mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* Implements llScriptDanger
* Made the scene's scriptDanger method more generic so both the llScriptDanger method and the Script engine method use the same private method.
This commit is contained in:
@@ -1421,9 +1421,9 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return m_LSL_Functions.llDumpList2String(src, seperator);
|
||||
}
|
||||
|
||||
public void llScriptDanger(LSL_Types.Vector3 pos)
|
||||
public int llScriptDanger(LSL_Types.Vector3 pos)
|
||||
{
|
||||
m_LSL_Functions.llScriptDanger(pos);
|
||||
return m_LSL_Functions.llScriptDanger(pos);
|
||||
}
|
||||
|
||||
public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel)
|
||||
|
||||
@@ -3693,10 +3693,19 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void llScriptDanger(LSL_Types.Vector3 pos)
|
||||
public int llScriptDanger(LSL_Types.Vector3 pos)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llScriptDanger");
|
||||
bool result = World.scriptDanger(m_host.LocalId, new LLVector3((float)pos.x, (float)pos.y, (float)pos.z));
|
||||
if (result)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel)
|
||||
|
||||
@@ -473,7 +473,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
//
|
||||
string llDumpList2String(LSL_Types.list src, string seperator);
|
||||
//wiki: integer llScriptDanger(vector pos)
|
||||
void llScriptDanger(LSL_Types.Vector3 pos);
|
||||
int llScriptDanger(LSL_Types.Vector3 pos);
|
||||
//wiki: llDialog( key avatar, string message, list buttons, integer chat_channel )
|
||||
void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel);
|
||||
//wiki: llVolumeDetect(integer detect)
|
||||
|
||||
Reference in New Issue
Block a user