Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 147
    • Issues 147
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #577

Closed
Open
Created Oct 07, 2021 by SharkGirl kunjang@SharkGirl_kunjang💬

SameFaction and Faction conditions doesn't work on players

Summary

I have already added Faction.Test for myself. I removed the OP for myself during testing.

When Faction or SameFaction conditions check players, these conditions always return "false". If I have modify this mob's AITargetSelectors(used clear and nearestconditionaltarget), this mob still attack me. Even if I'm in the same faction

Steps to reproduce

Just Mob File: https://pastebin.com/xPhPd6ws No issues spams on the console.

Current behavior

I want to make mobs only attack players from other faction,But here is no AITargetSelector named "OtherFactionPlayer",So I used "NearestConditionalTarget". But..SameFaction and Faction conditions doesn't work on players.So I cannot do what I want. If this mob used "OtherFaction" instead of "NearestConditionalTarget",This mob won't attack me

Intended correct behavior

This mob couldn't attack me, because im in the same faction..

Server log file

No issue spawms on the console

Debug log snippet

When I enabled Debug mode(level 6),There is nothing spams on the console.

Proposed fixes

I guess it is because..these conditions called an empty function when they are checking players.

Edited Oct 07, 2021 by SharkGirl kunjang
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking