Closed AverageVirusTotalEnjoyer closed 9 months ago
alright
public static bool Prefix(ref bool __result, EnemyAI __instance, PlayerControllerB playerScript, bool cannotBeInShip = false, bool overrideInsideFactoryCheck = false)
{
if ((GameNetworkManager.Instance.localPlayerController.playerSteamId == playerScript.playerSteamId) && Settings.SETTINGS_UNTARGETABLE)
{
__result = false;
return false;
}
return true;
}
@winstxnhdw I found a nice and easy example ;)
Which method is this?
EDIT:
Likely, PlayerIsTargetable
.
Okay. I have added this. It's /block enemy
. Thanks @MichaelDavidGK!
Might be possible but it doesn't look trivial, so I am going to put this on the backlog.