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.

Set SpawnPoint as Coordinates?

Featured Replies

Wait... In LCPDFR... Ahh, that's my own class written for Transportation, here it is:

public struct SpawnPoint
{
    public float Heading;
    public Vector3 Position;
    public SpawnPoint(float Heading, Vector3 Position)
    {
        this.Heading = Heading;
        this.Position = Position;
    }
    public static SpawnPoint Zero
    {
        get
        {
            return new SpawnPoint(0.0f, Vector3.Zero);
        }
    }
};

 

  • Author
5 minutes ago, LtFlash said:

SpawnPoint s = new SpawnPoint(0.0f, new Vector3(0.0f, 0.0f, 0.0f));

the 1st param is heading, then you have Vector3 which contains the position. You can store your SpawnPoints in an array or a list.

What does 0.0f define in new SpawnPoint(0.0f, new Vector3..?

2 minutes ago, LtFlash said:

Wait... In LCPDFR... Ahh, that's my own class written for Transportation, here it is:


public struct SpawnPoint
{
    public float Heading;
    public Vector3 Position;
    public SpawnPoint(float Heading, Vector3 Position)
    {
        this.Heading = Heading;
        this.Position = Position;
    }
    public static SpawnPoint Zero
    {
        get
        {
            return new SpawnPoint(0.0f, Vector3.Zero);
        }
    }
};

 

I don't need this do I?

Let's start from the beginning as I'm a lil' bit confused.

The struct SpawnPoint was implemented in LCPDFR and re-implemented by me for my own use in Transportation plugin. It stores 1) heading, 2) position. You can use it in your callout pack if you look for a method of storing different locations on the map. Example of usage:

SpawnPoint sp = new SpawnPoint(0.0, new Vector3(0.0f, 0.0f, 0.0f));
Vehicle v = new Vehicle("oracle", sp.Position);
v.Heading = sp.Heading;

 

3 minutes ago, LtFlash said:

Let's start from the beginning as I'm a lil' bit confused.

The struct SpawnPoint was implemented in LCPDFR and re-implemented by me for my own use in Transportation plugin. It stores 1) heading, 2) position. You can use it in your callout pack if you look for a method of storing different locations on the map. Example of usage:


SpawnPoint sp = new SpawnPoint(0.0, new Vector3(0.0f, 0.0f, 0.0f));
Vehicle v = new Vehicle("oracle", sp.Position);
v.Heading = sp.Heading;

 

Thought so :) Got a similar class Location, i thought there was no such thing in LSPDFR itself

  • Author
7 minutes ago, LtFlash said:

Let's start from the beginning as I'm a lil' bit confused.

The struct SpawnPoint was implemented in LCPDFR and re-implemented by me for my own use in Transportation plugin. It stores 1) heading, 2) position. You can use it in your callout pack if you look for a method of storing different locations on the map. Example of usage:


SpawnPoint sp = new SpawnPoint(0.0, new Vector3(0.0f, 0.0f, 0.0f));
Vehicle v = new Vehicle("oracle", sp.Position);
v.Heading = sp.Heading;

 

SpawnPoint SpawnPointShooter = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim1 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim2 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim3 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim4 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim5 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim6 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim7 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim8 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim9 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim10 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim11 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim12 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim13 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));
            SpawnPoint SpawnPointVictim14 = new SpawnPoint(0.0f, new Vector3(-1758.445f, 125.273f, 64.774f));

            Shooter = new Ped(SpawnPointShooter);

 

For Shooter = new Ped(SpawnPointShooter);

SpawnPointShooter says can't convert from LSPD_First_Response.Engine.Spawnpoint to Rage.Vector3 ??

3 hours ago, LtFlash said:

SpawnPoint s = new SpawnPoint(0.0f, new Vector3(0.0f, 0.0f, 0.0f));

the 1st param is heading, then you have Vector3 which contains the position. You can store your SpawnPoints in an array or a list.

 

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.