Jump to content
Guest delta1135

Police Station Slots

Recommended Posts

Guest delta1135

Is there any way that I can add more slots for the police cars to return to when I click the "Return to Police Station" button? I've poked around in the editor and they display as transparent blue rectangles. But I am unable to select them or figure out how to create more.

Link to comment
Share on other sites

The "blue rectangles" are called Virtual Objects and can be created/selected by going to Scene - Virtual Objects. Then find the ones used for the parking spaces by the police station, add more and name them appropriately, then edit the Go to Police Station script so they can be used as parking spaces.

Link to comment
Share on other sites

Guest delta1135

Okay, I was able to create more virtual objects and named them. But I may have messed up the scripting. The only script I could find relating to the police station was "LAToPoliceStation.script"

//******************************************************************************************
// #Version 1.5#
//
// Includes: To police station command.
//
// - VcmdToPoliceStation
//
// Script by Hoppah
//
// Usage of this script in other mods is NOT allowed without permission of Hoppah
//
//******************************************************************************************

const char CMD_SIREN[] = "VcmdSiren";
const char CMD_AUTOSIREN_OFF[] = "VcmdAutoSirenOff";
const char CMD_WARNINGLIGHTS_OFF[] = "VcmdWarningLightsOff";
const char CMD_WARNINGLIGHTS_ON[] = "VcmdWarningLightsOn";
const char CMD_FLOODLIGHTS_OFF[] = "VcmdFloodLightsOff";
const char CMD_FLOODLIGHTS_ON[] = "VcmdFloodLightsOn";
const char CMD_GOHOME[] = "GoHome";
const char CMD_TOPOLICESTATION[] = "VcmdToPoliceStation";
const char CMD_PATROL[] = "VcmdPatrol";
const char CMD_STANDBY_ON[] = "VcmdStandbyOn";
const char CMD_STANDBY_OFF[] = "VcmdStandbyOff";
const char DUMMY_DISABLE[] = "DummyDisableSiren";
const char DUMMY_HASSIREN[] = "DummyHasSiren";
const char DUMMY_GOHOME[] = "DummyGoHome";
const char DUMMY_PATROL[] = "DummyPatrol";
const char OBJ_HELIPAD[] = "policestation_helipad";
const char VO_ENTRY[] = "policestation_entry";
const char VO_ENTRY_HELIPAD[] = "policestation_entry2";
const char VO_TURNTO[] = "policestation_turnto";
const char VO_PARK01[] = "policestation_park01";
const char VO_PARK02[] = "policestation_park02";
const char VO_PARK03[] = "policestation_park03";
const char VO_PARK04[] = "policestation_park04";
const char VO_PARK05[] = "policestation_park05";
const char VO_PARK06[] = "policestation_park06";
const char VO_PARK07[] = "policestation_park07";
const char VO_PARK08[] = "policestation_park08";
const char VO_PARK09[] = "policestation_park09";
const char VO_PARK10[] = "policestation_park10";
const char VO_PARK11[] = "policestation_park11";
const char VO_PARK12[] = "policestation_park12";
const char VO_PARK13[] = "policestation_park13";
const char VO_PARK14[] = "policestation_park14";
const char VO_PARK15[] = "policestation_park15";
const char VO_PARK16[] = "policestation_park16";
const char VO_PARK17[] = "policestation_park17";
const char VO_PARK18[] = "policestation_park18";
const char VO_PARK19[] = "policestation_park19";
const char VO_PARK20[] = "policestation_park20";
const char VO_PARK21[] = "policestation_park21";
const char VO_PARK22[] = "policestation_park22";
const char VO_PARK23[] = "policestation_park23";
const char VO_PARK24[] = "policestation_park24";
const char VO_PARK25[] = "policestation_park25";
const char VO_PARK26[] = "policestation_park26";
const char VO_PARK27[] = "policestation_park27";
const char VO_PARK28[] = "policestation_park28";
const char VO_PARK29[] = "policestation_park29";
const char VO_PARK30[] = "policestation_park30";
const char VO_PARK31[] = "policestation_park31";
const char VO_PARK32[] = "policestation_park32";
const char VO_PARK33[] = "policestation_park33";
const char VO_HELI[] = "policestation_heli";
const char VO_SPAWN[] = "policestation_spawn";
const char SND_TOSTATION[] = "mod:Audio/FX/radio/1019.wav";
const char HINT_HELICOPTER[] = "Another helicopter is blocking the helipad! The helicopter will return to base!";
const char PROTO_CV_LAPD[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd.e4p";


Anything that you can see that I messed up? Or is there another section of the script that I have to modify. Yes. I did make 33 spaces. :rolleyes:

Link to comment
Share on other sites

Thats correct but now you have to add the 30 spaces to the rest of the script where it starts saying VO_PARK01.

Keep in mind you need to keep atleast one empty parking space between each car for it to be able to park correctly and open its doors, so 30+ spots probably will not work.

Link to comment
Share on other sites

Guest delta1135

Thats correct but now you have to add the 30 spaces to the rest of the script where it starts saying VO_PARK01.

Keep in mind you need to keep at least one empty parking space between each car for it to be able to park correctly and open its doors, so 30+ spots probably will not work.

Thanks for the help. :)

Link to comment
Share on other sites

Question.

1.) I created a vo and named it policestation_park07 but when I tell a police car to return to the station all the slots fill up except mine.

//******************************************************************************************

// #Version 1.5#

//

// Includes: To police command.

//

// - VcmdToPoliceStation

//

// Script by Hoppah

//

// Usage of this script in other mods is NOT allowed without permission of Hoppah

//

//******************************************************************************************

const char CMD_SIREN[] = "VcmdSiren";

const char CMD_AUTOSIREN_OFF[] = "VcmdAutoSirenOff";

const char CMD_WARNINGLIGHTS_OFF[] = "VcmdWarningLightsOff";

const char CMD_WARNINGLIGHTS_ON[] = "VcmdWarningLightsOn";

const char CMD_FLOODLIGHTS_OFF[] = "VcmdFloodLightsOff";

const char CMD_FLOODLIGHTS_ON[] = "VcmdFloodLightsOn";

const char CMD_GOHOME[] = "GoHome";

const char CMD_TOPOLICESTATION[] = "VcmdToPoliceStation";

const char CMD_PATROL[] = "VcmdPatrol";

const char CMD_STANDBY_ON[] = "VcmdStandbyOn";

const char CMD_STANDBY_OFF[] = "VcmdStandbyOff";

const char DUMMY_DISABLE[] = "DummyDisableSiren";

const char DUMMY_HASSIREN[] = "DummyHasSiren";

const char DUMMY_GOHOME[] = "DummyGoHome";

const char DUMMY_PATROL[] = "DummyPatrol";

const char OBJ_HELIPAD[] = "policestation_helipad";

const char VO_ENTRY[] = "policestation_entry";

const char VO_ENTRY_HELIPAD[] = "policestation_entry2";

const char VO_TURNTO[] = "policestation_turnto";

const char VO_TURNTO5[] = "fs_vogate05a";

const char VO_TURNTO6[] = "fs_vogate06a";

const char VO_PARK01[] = "policestation_park01";

const char VO_PARK02[] = "policestation_park02";

const char VO_PARK03[] = "policestation_park03";

const char VO_PARK04[] = "policestation_park04";

const char VO_PARK05[] = "policestation_park05";

const char VO_PARK06[] = "policestation_park06";

const char VO_PARK07[] = "policestation_park07";

const char VO_HELI[] = "policestation_heli";

const char VO_SPAWN[] = "policestation_spawn";

const char SND_TOSTATION[] = "mod:Audio/FX/radio/1019.wav";

const char HINT_HELICOPTER[] = "Another helicopter is blocking the helipad! The helicopter will return to base!";

const char PROTO_CV_LAPD[] = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd.e4p";

I also found this, there are three parking spots (and they all have this stuff below). Do I need to add another one for my additional parking space? If so, what is a gameobjectlist and where do I find it.

if (!ParkinglotFound)

{

GameObjectList l2;

Game::CollectObstaclesOnVirtualObject(VO_PARK01, l2, ACTOR_VEHICLE);

if(l2.GetNumObjects() == 0)

{

l1 = Game::GetActors(VO_PARK01);

ParkinglotFound = true;

}

}

if (!ParkinglotFound)

{

GameObjectList l3;

Game::CollectObstaclesOnVirtualObject(VO_PARK02, l3, ACTOR_VEHICLE);

if(l3.GetNumObjects() == 0)

{

l1 = Game::GetActors(VO_PARK02);

ParkinglotFound = true;

}

}

if (!ParkinglotFound)

{

GameObjectList l4;

Game::CollectObstaclesOnVirtualObject(VO_PARK03, l4, ACTOR_VEHICLE);

if(l4.GetNumObjects() == 0)

{

l1 = Game::GetActors(VO_PARK03);

ParkinglotFound = true;

}

}

if (Donut && !ParkinglotFound)

{

GameObjectList l5;

Game::CollectObstaclesOnVirtualObject(VO_PARK04, l5, ACTOR_VEHICLE);

if (!l5.ContainsSquad())

{

l1 = Game::GetActors(VO_PARK04);

ParkinglotFound = true;

ToDonut = true;

}

}

if (Donut && !ParkinglotFound)

{

GameObjectList l6;

Game::CollectObstaclesOnVirtualObject(VO_PARK05, l6, ACTOR_VEHICLE);

if (!l6.ContainsSquad())

{

l1 = Game::GetActors(VO_PARK05);

ParkinglotFound = true;

ToDonut = true;

}

}

Link to comment
Share on other sites

Question.

1.) I created a vo and named it policestation_park07 but when I tell a police car to return to the station all the slots fill up except mine.

2) I also found this, there are three parking spots (and they all have this stuff below). Do I need to add another one for my additional parking space? If so, what is a gameobjectlist and where do I find it.

2. This is why your spots dont work. Just copy and paste the code that there changing VO_PARK01 to VO_PARK09 and so forth.


if (!ParkinglotFound)
{
GameObjectList l4;
Game::CollectObstaclesOnVirtualObject(VO_PARK03, l4, ACTOR_VEHICLE);
if(l4.GetNumObjects() == 0)
{
l1 = Game::GetActors(VO_PARK03);
ParkinglotFound = true;
}
}
if (!ParkinglotFound)
{
GameObjectList l4;
Game::CollectObstaclesOnVirtualObject(VO_PARK09, l4, ACTOR_VEHICLE);
if(l4.GetNumObjects() == 0)
{
l1 = Game::GetActors(VO_PARK09);
ParkinglotFound = true;
}
}
if (Donut && !ParkinglotFound)
{
GameObjectList l5;
Game::CollectObstaclesOnVirtualObject(VO_PARK04, l5, ACTOR_VEHICLE);
if (!l5.ContainsSquad())
{
l1 = Game::GetActors(VO_PARK04);
ParkinglotFound = true;
ToDonut = true;
}

Link to comment
Share on other sites

Question. In your mod 4x4 you have the three police cars parking side by side at the PD station. Now I added an additional parking spot (as a test), and named it policestation_park07 (as you saw). Now do I need to rename this to vo 09 since you did that in your script? I sorta understand your reply but I'm new at all this stuff to so I'm trying to learn so I can do this stuff on my own.

Thank You.

Link to comment
Share on other sites

Not understanding you completely but do what i showed you in the post above then at the top of the script where you see:

const char VO_PARK07[] = "policestation_park07";

You have to define what VO_PARK09 would be, so you need this:

const char VO_PARK09[] = "policestation_park09";

Link to comment
Share on other sites

I need help with this too. I want to delete a building in the middle of the map (which I can do), and then copy/paste a car park from another area, putting it where the building was. I then want to rename the "Send to Police Station" command to "Send to Parking Area", in which the vehicles will return to the Virtual Objects in the center parking area. Is this possible?

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.
Note: Your post will require moderator approval before it will be visible.

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