Jump to content
Darren-NYPD

Game Causing error after parkings were added,

Recommended Posts

Hi, I wanted to add new Police parking bays but In a different place on the map due to the fact of having another  small police station.

I did search the forum numerous times and there were some topics which served a bit of a guide, (doing what was written, still got errors).

I modified the GotoPolicestation.script  in the se parts

Added this: const char VO_POLICE09[] = "police_park09";

added 19 here: GameObjectList l1, l2, l3, l4, l5, l6, l7, l8, 19;

 

Copied this from an existent and modified it:

Game::CollectObstaclesOnVirtualObject(VO_POLICE09, l9, ACTOR_VEHICLE);

if(l9.GetNumObjects() == 0)

{

list1 = Game::GetActors(VO_POLICE09);

list2 = Game::GetActors(VO_POLICE_FP2);

ParkinglotFound = true;

}

}

if (!ParkinglotFound)

{

Added this:

else if (v.IsCollidingWithVirtualObject(VO_POLICE09))

return;

When I send units to Police Station the game pops up and error stating that ther is a problem in line... gameobjects 19 something like that?

(I also did the parking bay (virtual object) in map) police_park09

RE: Parking direction that is not a problem I know what to do hehe.

 

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