AgentData data = new AgentData("Agent001"); data.Position = new Vector3(100, 100, 25); data.Rotation = Quaternion.Identity; data.Health = 100.0f;
AgentData data = scene.GetAgentData(UUID.Parse("ae73c4eb-4136-4ef5-ad51-2a2c10935b19")); float health = data.Health;This code retrieves the AgentData object for an agent with the specified UUID from the scene and gets its current health value. Package library: OpenSim.Framework