Quantcast

Jump to content

» «
Photo

[C#] Problem: Wanted level when spawned Ped attacks player

2 replies to this topic
Developing_Mind
  • Developing_Mind

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Germany

#1

Posted 4 weeks ago

Hello everybody,

 

whenever I let a ped spawn and make it attack the player character (via Task.FightAgainst()), the player character gains a wanted level.

How can I avoid gaining that wanted level? I still want to be able to gain wanted levels, I just don't want such an attack to trigger it.


Developing_Mind
  • Developing_Mind

    Player Hater

  • Members
  • Joined: 4 weeks ago
  • Germany

#2

Posted 2 weeks ago

Nobody? Seriously?


nm710
  • nm710

    None

  • Members
  • Joined: 15 Aug 2016
  • United-States

#3

Posted 2 weeks ago

I don't know if there are any flags that let you disable this all together but another solution: check if the player isinmelee combat and if the player has a wanted level > 0 then set wanted level back to 0.  





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users