Jump to content

How to clear the bouncer in front of Vanilla Unicorn?


L33dy

Recommended Posts

I am making a callout based in front of the nightclub and tried to clear the whole area with in CalloutAccepted (below) but it didn't get rid off the bouncer in front of the nightclub and that causes issues because he will start to shoot at you.. How can I clear him out?

NativeFunctions.Natives.ClearAreaOfPeds(CalloutSpawnpoint, 50f, 0);
Link to comment
Share on other sites

4 hours ago, Rich said:

First thing that comes to mind is, after running that native, get all peds in the area and delete them (or just delete the one(s) whose model match the bouncer model).

Do you know how to do it? I don't know any function that gets ped in area..

Link to comment
Share on other sites

Peds have a GetNearbyPeds method which you could run on the player.  You would try to do this before the player is close enough to see the bouncer.  Alternate solutions might be to remove weapons from the bouncer and/or set its relationship group so that it's not hostile to the player.

Released plugins

Automatic Siren Cutout | Rich's Police EnhancementsScene Manager | Rich Ambiance

Retired - No more updates

Link to comment
Share on other sites

5 minutes ago, Rich said:

Peds have a GetNearbyPeds method which you could run on the player.  You would try to do this before the player is close enough to see the bouncer.  Alternate solutions might be to remove weapons from the bouncer and/or set its relationship group so that it's not hostile to the player.

Thank you, I will try those solutions.. I've tried to set security guard's and private security's group as a companion to the player but it didn't work.. Does the bouncer have different relationship group?

20 minutes ago, Rich said:

Peds have a GetNearbyPeds method which you could run on the player.  You would try to do this before the player is close enough to see the bouncer.  Alternate solutions might be to remove weapons from the bouncer and/or set its relationship group so that it's not hostile to the player.

Thanks, the GetNearbyPeds solution worked!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...