Пример #1
0
        public static void Main()
        {
            var dm         = NWGameObject.OBJECT_SELF;
            var target     = NWNXEvents.OnDMPossess_GetTarget();
            var targetName = GetName(target);

            WriteLog(dm, "Toggle Lock", $"Target: {targetName}");
        }
Пример #2
0
        public static void Main()
        {
            var dm         = NWGameObject.OBJECT_SELF;
            var target     = NWNXEvents.OnDMPossess_GetTarget();
            var targetName = GetName(target);

            if (GetIsObjectValid(target))
            {
                WriteLog(dm, "Possess", $"Target: {targetName}");
            }
            else
            {
                WriteLog(dm, "Unpossess");
            }
        }