public static void Main() { var dm = NWGameObject.OBJECT_SELF; var position = Vector( NWNXEvents.OnDMJumpToPoint_GetX(), NWNXEvents.OnDMJumpToPoint_GetY(), NWNXEvents.OnDMJumpToPoint_GetZ()); var area = NWNXEvents.OnDMJumpToPoint_GetArea(); var areaName = GetName(area); var log = $"{areaName} - {position.X}, {position.Y}, {position.Z}"; WriteLog(dm, "Jump All Players to Point", log); }
public static void Main() { var dm = NWGameObject.OBJECT_SELF; var position = Vector( NWNXEvents.OnDMJumpToPoint_GetX(), NWNXEvents.OnDMJumpToPoint_GetY(), NWNXEvents.OnDMJumpToPoint_GetZ()); var area = NWNXEvents.OnDMJumpToPoint_GetArea(); var targets = NWNXEvents.DMEvents_GetTargetList(); var areaName = GetName(area); var targetNames = string.Empty; foreach (var target in targets) { var targetName = GetName(target); targetNames += "(" + targetName + ") "; } var log = $"{areaName} - {position.X}, {position.Y}, {position.Z} - [{targetNames}]"; WriteLog(dm, "Jump Target to Point", log); }