public void RegionLoaded(Scene scene) { scene.EventManager.OnRegisterCaps += RegisterCaps; ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface <ISimulatorFeaturesModule>(); if (simFeatures != null) { simFeatures.AddFeature("AvatarHoverHeightEnabled", OSD.FromBoolean(true)); } }
public void RegionLoaded(Scene scene) { scene.EventManager.OnRegisterCaps += delegate(UUID agentID, OpenSim.Framework.Capabilities.Caps caps) { RegisterCaps(agentID, caps); }; ISimulatorFeaturesModule simFeatures = scene.RequestModuleInterface <ISimulatorFeaturesModule>(); if (simFeatures != null) { simFeatures.AddFeature("AvatarHoverHeightEnabled", OSD.FromBoolean(true)); } }