Jump to content

Can somebody help me with SpawnHelper?


SzbZsmbr

Recommended Posts

I recently came in to making callouts, and i searched a lot, how to use the spawnhelper, but i found nothing. Can somebody help me how to use it? I want to make a callout where i put all the Alleys(vector3s) and put some Homeless guys there and when the callout is running it will select the closest one and it will make a blip with a route. I know everything to do this callout but only the spawnhelper thing! Thanks in advance! SpawnHelper that i use: 

Spoiler

using Rage;

namespace FakeCallouts.Cuccok
{
    internal class SpawnHelper
    {
        public float heading;
        public string area;
        public string street;
        public Vector3 location;
        public Rotator rotation;

        public SpawnHelper(Vector3 location, float heading, string area, string street)
        {
            this.location = location;
            this.heading = heading;
            this.area = area;
            this.street = street;
        }

        public SpawnHelper(Vector3 location, float heading)
        {
            this.location = location;
            this.heading = heading;
        }

        public SpawnHelper(Vector3 location, Rotator rotation)
        {
            this.location = location;
            this.rotation = rotation;
        }
    }
}
 

 

SzbZsmbr

Link to comment
Share on other sites

  • Management Team

The SpawnHelper class you have there just stores the location and the heading of for a position. You probably need some other code to actually save a position as a SpawnHelper object and then dump it to code or file.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • Management Team
On 8/26/2019 at 3:05 PM, SzbZsmbr said:

@LMS then what code should i get?

 

 

I have never used SpawnHelper and I am not sure where you got it from, so I cannot help with that. But you are definitely missing some glue to make it work.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

  • 4 weeks later...

You first need to get the spawnhelper class

 

I recommend watching this as this explains how to set up the spawnhelper in general and some other wrappers. Then i recommend watching part two just to get a gist of how spawnhelper works. If you still need help after that go ahead and PM me as i use spawnhelper quite often

Mb just read this back and realised that you already have the class. I recommend still watching this:

As this will teach you how to set up the second part of the spawnhelper. After that like i said, if you cant work it out, dm me.

Edited by Ben79G

Playing BattleBorn Roleplay! Great community, active server and staff! Hiring LEOs + EMS + Staff! Discord.gg//pz3teSD

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