public llTriggerSoundLimited ( string sound, double volume, Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 top_north_east, Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 bottom_south_west ) : void | ||
sound | string | |
volume | double | |
top_north_east | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 | |
bottom_south_west | Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 | |
Résultat | void |
public void llTriggerSoundLimited(string sound, double volume, LSL_Vector top_north_east,
LSL_Vector bottom_south_west)
{
if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;
float radius1 = (float)llVecDist(llGetPos(), top_north_east);
float radius2 = (float)llVecDist(llGetPos(), bottom_south_west);
float radius = Math.Abs(radius1 - radius2);
m_host.SendSound(KeyOrName(sound, true).ToString(), volume, true, 0, radius, false, false);
}