[DiscordArchive] Nice script iThorgrim, it's always good to share!
[DiscordArchive] Nice script iThorgrim, it's always good to share!
Archived author: Honey • Posted: 2022-03-10T15:12:22.665000+00:00
Original source
Nice script iThorgrim, it's always good to share!
I'm looking for a way to reset a creatures threat with another creature to 0. But all i can find regarding is
```
Unit::AddThreat Adds threat to the Unit from the victim.
Unit::ClearThreatList Clears the Unit's threat list.
```
There's no method to get the current threat towards a certain target or reset the threat only for one target. Am i missing something?
Do we have such a method in cpp which we could expose?
Archived author: 郑佩茹 • Posted: 2022-03-10T15:50:33.269000+00:00
Original source
Yes, the CPP has a RemoveFromThreatListOpcode that could be send.
Archived author: Honey • Posted: 2022-03-10T16:14:40.486000+00:00
Original source
Thank you, will have a look
Archived author: Nyeriah • Posted: 2022-03-11T03:33:26.579000+00:00
Original source
ModifyThreat(target, -100);