Having a bit of a tough time figuring out how to get group member info (like health) in C#
I can get it easy using Lavascript via ${Group[1].Health} but im racking my brain trying to figure out an easy way of doing it in C#.
Issue im having is i cant seem to get anything from the groupmember type.
The only way I know how to get the info is by targeting each member of the group in range and pulling the info from the charater object.
Any help would be great... ps. new to C#
I can get it easy using Lavascript via ${Group[1].Health} but im racking my brain trying to figure out an easy way of doing it in C#.
Issue im having is i cant seem to get anything from the groupmember type.
The only way I know how to get the info is by targeting each member of the group in range and pulling the info from the charater object.
Any help would be great... ps. new to C#
Code:
public void Find_Group_Members(Character Me, VG vg)
{
Clear_Screen();
Pawn pawn = new Pawn();;
for (int x = 1; x < vg.PawnCount; x++)
{
pawn = new Pawn(x.ToString());
if (pawn.IsGroupMember)
{
InnerSpace.Echo("Pawn: " + pawn.Name + " Level: " + pawn.Level + " TYPE " + pawn.Type + " Location " + pawn.X + "," + pawn.Y);
pawn.Target();
Me = GetUpdate(Me);
InnerSpace.Echo("Target Name: " + Me.DTarget.Name + " Health: " + Me.DTargetHealth.ToString());
}
}
}
private Character GetUpdate(Character Me)
{
do
{
LavishVMAPI.Frame.Unlock();
Me = new Character();
LavishVMAPI.Frame.Lock();
}
while (Me.DTargetHealth < 1);
return Me;
}