private void Avatars_ViewerEffectLookAt(object sender, ViewerEffectLookAtEventArgs e) { if (ShowEffects) { WriteLine( "ViewerEffect [LookAt]: SourceID: {0} TargetID: {1} TargetPos: {2} Type: {3} Duration: {4} ID: {5}", e.SourceID.ToString(), e.TargetID.ToString(), e.TargetPosition, e.LookType, e.Duration, e.EffectID.ToString()); } }
private void Avatars_ViewerEffectLookAt(object sender, ViewerEffectLookAtEventArgs e) { lock (m_AgentList) { if (m_AgentList.ContainsKey(e.SourceID)) { m_AgentList[e.SourceID] = true; } else { m_AgentList.Add(e.SourceID, true); } } }
public override void Avatars_OnLookAt(object sender, ViewerEffectLookAtEventArgs e) { // we have our own packet handler client.Avatars.ViewerEffectLookAt -= Avatars_OnLookAt; var sourceID = e.SourceID; var targetID = e.TargetID; var targetPos = e.TargetPosition; var lookType = e.LookType; var duration = e.Duration; var id = e.EffectID; if (!MaintainEffects) { return; } SendEffect(client.Network.CurrentSim, sourceID, targetID, targetPos, "LookAtType-" + lookType.ToString(), duration, id, PCode.Avatar); }