Jump to content
Texas_DPS

W00d's Map Tiller in FS1

Recommended Posts

I have w00d's new map on a fresh LA Mod 2.0.3. I have edited the LAFireStationStart script to face all the fire trucks to the right direction. The Tiller spawns but in the wrong direction as shown below.

Please forgive the screens, they were taken on my laptop.

4974490693_2ffa5b924b.jpg

4974492197_4cf3cff8d8.jpg

Here is the code I used in the LAFireStationStart.


ActorList l9 = Game::GetActors(VO_TILLER);
for(int i=0; i < l9.GetNumActors(); i++)
{
Vector Tiller = l9.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_TILLER, UNNAMED);
if (m.HasCommand("DummyTillerCheck"))
{
m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);
}
m.EnableBlueLights(false);
m.SetPosition(Tiller);
m.SetRotation(gate3);
m.UpdatePlacement();
m.SetMaxPassengers(6);
m.SetSpeed(9.0f);
m.PushActionWait(ACTION_APPEND, 1.4f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 8, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 3, false);
}

If I did something wrong please let me know because I can not for the life of me figure it out. So many minds are better than one.

Thanks

Link to comment
Share on other sites

Have you named the gate correctly and connected it with this peice of the code jsut up from the bit you posted?

  
GameObjectList gate03a = Game::GetGameObjects(NAME_GATE03A);
for(int i=0; i < gate03a.GetNumObjects(); i++)
GameObject *gate3 = gate03a.GetObject(i);

If you want, either attach or post the hole code and ill have a look thro it if you want.(you can pm me it if you want to instead of posting it here!)

Link to comment
Share on other sites

They must be(playing a joke).I had my suspicions but I was wrong. Ill try to load up Araxis Merge and do a comparison of the scripts later. The only other things that comes to mind, make sure you used w00ds map by Hoppah and not w00ds Map by w00ds as w00ds original files arent up to date. Im sure you know that but just checking ;)

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