Jump to content
Nyox

Spawn dogleader

Recommended Posts

Hi to all, i have this problem.. i don't know how to spawn the dog of the dogleader and make he enter in the dogleader vehicle as passenger.

For now i can only spawn the dogleader.

Any suggestion??

Thanks

Nyox

Link to comment
Share on other sites

i think to add more realism to the game the dog leader should be able to get the dog when needed as a resource ( like the paramedics with the strecher) you hilight the leader and then click the car to get the dog. i dont know about america but most of the dog handlers in the uk respond to RTC's and everything not just where the dog is needed

Link to comment
Share on other sites

Just add this code to the LAFireStationStart.script

			Person mPo1 = Game::CreatePerson("mod:Prototypes/Persons/03 LA Police/dog.e4p", "dog");
m.AddTransport(&mPo1);

* Put the code in with the K9 Code so it looks like this

ActorList l36 = Game::GetActors(VO_K9);
for(int i=0; i < l36.GetNumActors(); i++)
{
Vector K9 = l36.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_K9, UNNAMED);
m.EnableBlueLights(false);
m.SetPosition(K9);
m.UpdatePlacement();
m.SetMaxPassengers(1);
m.SetMaxTransports(1);
m.SetSpeed(12.0f);
m.PushActionWait(ACTION_NEWLIST, 5.0f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 32, false);
Person mPo1 = Game::CreatePerson("mod:Prototypes/Persons/03 LA Police/dog.e4p", "dog");
m.AddTransport(&mPo1);
}

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