First post and am very new so might be dumb but...
Every time I access the BaseCombatEntity.unHostileTime it is set to 0, whether or not the player is hostile. Is this a bug?
Every time I access the BaseCombatEntity.unHostileTime it is set to 0, whether or not the player is hostile. Is this a bug?
[ChatCommand("unHostileTime")]
void UnHostileTime(BasePlayer player)
{
if (player.IsHostile())
{
SendMessage(player, player.unHostileTime.ToString());
}
}This command always prints 0 in chat. IsHostile() works as expected.