Jump to content

How to set callout/pursuit in a certain area?


Guest

Recommended Posts

I have been learning c# for the past month and now I just finally wanted to create a callout.

my question is how to I set a callout/pursuit in a certain area in Los Santos?

all I know is that you can start a callout with: SpawnPoint = World.GetNextPositionOnStreet(Game.LocalPlayer.Character.Position.Around(500f));

am wondering how to make it start from a place like The Golf Club or that the callout can only be triggered in a place like Sandy Shores?

Thanks for any help.

Link to comment
Share on other sites

ok I found something but I haven't really foudn a way to use it:

<ArrayOfExtendedSpawnPoint xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ExtendedSpawnPoint>
    <Position>
      <X>1676.51831</X>
      <Y>-72.88559</Y>
      <Z>173.299454</Z>
    </Position>
    <Heading>290.283539</Heading>
    <Area>LDAM</Area>
    <Street>Mirror Park Blvd</Street>
    <Tags />
  </ExtendedSpawnPoint>

 

found this from @Darkmyre's api xml

was woundering if you could explain me how to use it, was thinking something like intitializing a .ini file but I am still searching around.

 

Edited by NoNameSet
Link to comment
Share on other sites

//Create a new vector3 (named sP) and set it to the in-game coordinates you would like the callout to start at and set the CalloutPosition to sP.
Vector3 sP = new Vector3(x, y, z);

https://www.gta5-mods.com/tools/coordinates-recorder-net

Link to comment
Share on other sites

thanks, I read you tutorial on how to create a callout and it was very helpful,

will I have to set :

Vector3 sP = new Vector3(x, y, z);

in the lines of: 

public override bool OnBeforeCalloutDisplayed()

 

will I also have to create a new:

private Vector3 sP

?

Link to comment
Share on other sites

36 minutes ago, NoNameSet said:

thanks, I read you tutorial on how to create a callout and it was very helpful,

will I have to set :


Vector3 sP = new Vector3(x, y, z);

in the lines of: 


public override bool OnBeforeCalloutDisplayed()

 

will I also have to create a new:


private Vector3 sP

?

I suggest that you learn some more C#.

Link to comment
Share on other sites

2 hours ago, ToastinYou said:

I suggest that you learn some more C#.

yeah, I looked at those steps 1-12 from that one c# learning page, guess I'm gonna continue.

Link to comment
Share on other sites

3 hours ago, NoNameSet said:

yeah, I looked at those steps 1-12 from that one c# learning page, guess I'm gonna continue.

Well the three objects you asked me about are super basic materials and you should know what they do.

Link to comment
Share on other sites

6 hours ago, ToastinYou said:

Well the three objects you asked me about are super basic materials and you should know what they do.

Yeah, as said I am new to c# but I will continue learning.

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.



×
×
  • Create New...