Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to set random position to the call.

Featured Replies

Hello! I'm on my way to make my first callout but i have a problem. I want to make a call with name: Karen Called Cops on B... Man. (i dont want to write it). So, i watching a video about to create callout, and now im at the Coordinates and head dumpers or what. (to call 1-2 npc and talk to them). So. I want that npcs to have a random spawnpoint everytime when the call appears.I highlited it in the script. Please help me.

kép_2022-10-04_100705633.png

8 hours ago, Benco said:

Hello! I'm on my way to make my first callout but i have a problem. I want to make a call with name: Karen Called Cops on B... Man. (i dont want to write it). So, i watching a video about to create callout, and now im at the Coordinates and head dumpers or what. (to call 1-2 npc and talk to them). So. I want that npcs to have a random spawnpoint everytime when the call appears.I highlited it in the script. Please help me.

kép_2022-10-04_100705633.png

Yes i think that is a very good idea, and will also implement that in my own callouts, not only for ped-positions as you are talking about, but for crime-scenes as well. It gets boring going to the same convenience-store over and over 😛
Randomising positions can be done in several ways.
You can make enumerations of 3Dvectors, and pick one at runtime, but something as simple random picking of integers, where each is coupled to a position inside a switch, that will also do.
You also need to decide if you want to pick the positions manually through console,
f4 PrintInfo
or you want to use approximated position guesses and then use the function World.GetNextPositionOnStreet -that will prevent spawning inside rocks and other solids.

(if i wrote something you dont understand, just ask)

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Author

Oh thanks! And i have a question to. I made 4 callouts.

Spoiler

 

Spoiler

 

Spoiler

 

Spoiler

 

Spoiler

 

 

Spoiler

 

Spoiler

 

Spoiler

 

Spoiler

 

Spoiler

 



1 working 3 not, because when i accepting it it gave Code 4. Im sending the scripts!

The pics: So i have a trouble cuz at the Police Officer Found Dead i put the Hot Pursuit script to it to spawn a car . . . then it showed me code 4.

On the accident i dont know.

kép_2022-10-04_220132120.png

kép_2022-10-04_220144913.png

kép_2022-10-04_220152974.png

kép_2022-10-04_220202402.png

kép_2022-10-04_220214197.png

kép_2022-10-04_220220571.png

kép_2022-10-04_220230297.png

kép_2022-10-04_220237835.png

kép_2022-10-04_220243385.png

kép_2022-10-04_220248555.png

kép_2022-10-04_220253042.png

18 hours ago, Benco said:

Hello! I'm on my way to make my first callout but i have a problem. I want to make a call with name: Karen Called Cops on B... Man. (i dont want to write it). So, i watching a video about to create callout, and now im at the Coordinates and head dumpers or what. (to call 1-2 npc and talk to them). So. I want that npcs to have a random spawnpoint everytime when the call appears.I highlited it in the script. Please help me.

kép_2022-10-04_100705633.png

Maybe either of these could help?

 

Vector3 randomPosition = World.GetRandomPositionOnStreet();

Vector3 randomPositionNearby = World.GetNextPositionOnStreet(Game.LocalPlayer.Character.Position.Around(20f));

 

Adjust the float distance for nearby position as needed.

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.