Jump to content
TTBL225

Tiller Trailer Issue

Recommended Posts

I was finally able to get the tiller to spawn lined up properly in the station. However, whenever it moves, the trailer itself is offset from the cab. The only line that was edited was #740, changing a 0 to 270 to get it to spawn facing the right direction. Not sure where to go from here.

tiller issue.png

LATiller.script

Link to comment
Share on other sites

10 hours ago, The Loot said:

Nothing else Tiller related changed?

 

If the Cab spawns correct in the station, the trailer should spawn behind it correctly without any changes.

Exact model and proto from OG LA. Scripts are from a completely clean version of LA 2.1. I have put the tiller in several mods and have never had this issue. Very perplexed.

 

If I call a tiller in from off the map, it works as it should.

Link to comment
Share on other sites

Looking at your script file again, looks like you also changed line 371, from

float dx = 250.f, dy = 0.f, dz = 0.f;

to

float dx = 0.f, dy = 0.f, dz = 0.f;

Maybe that's causing the issue?

Could you upload your LAFireStationStart.script file?

I'm actually not sure exactly how the original LA Mod deals with spawning the Tiller in the station at start. Looks like there's the script that checks for vehicles at the map fire vehicle spawn to either add or delete the trailer, but nothing else seems implemented, as far as I can see. The Tiller isn't even set to spawn by default, just the Tower, and while the instructions say to change the prototype referenced there, there's nothing that would spawn the trailer.

Link to comment
Share on other sites

16 hours ago, The Loot said:

Looking at your script file again, looks like you also changed line 371, from

float dx = 250.f, dy = 0.f, dz = 0.f;

to

float dx = 0.f, dy = 0.f, dz = 0.f;

Maybe that's causing the issue?

Could you upload your LAFireStationStart.script file?

I'm actually not sure exactly how the original LA Mod deals with spawning the Tiller in the station at start. Looks like there's the script that checks for vehicles at the map fire vehicle spawn to either add or delete the trailer, but nothing else seems implemented, as far as I can see. The Tiller isn't even set to spawn by default, just the Tower, and while the instructions say to change the prototype referenced there, there's nothing that would spawn the trailer.

I did try it with a completely clean tiller script from 2.1, same issue. So those lines being changed weren't the issue.

 

*In the start script under the tiller section, I know there is no rotation line setup like the others. It originally had it and it did not make a difference.

 

LAFireStationStart.script

Link to comment
Share on other sites

It looks like the cab isn't being told to set rotation into position like the other vehicles in the start script, does it place properly itself? Maybe that causes the improper trailer position on spawn.

Try adding m.SetRotation(gate3); after m.SetPosition(Tiller); and see if that fixes it with the original Tiller commands.

Link to comment
Share on other sites

7 hours ago, The Loot said:

It looks like the cab isn't being told to set rotation into position like the other vehicles in the start script, does it place properly itself? Maybe that causes the improper trailer position on spawn.

Try adding m.SetRotation(gate3); after m.SetPosition(Tiller); and see if that fixes it with the original Tiller commands.

*In the start script under the tiller section, I know there is no rotation line setup like the others. It originally had it and it did not make a difference.

 

Link to comment
Share on other sites

One last thing I can think of trying is going back to the original Tiller file and try having this in the Tiller section in the StationStart script: 

if (m.HasCommand("DummyTillerCheck"))
{
	m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);
	m.PushActionExecuteCommand(ACTION_APPEND, "DummyTiller", &m, 3, false);
}

That second command is used to position the trailer when parking in the station, hopefully it would position it properly on spawn. If that doesn't fix the issues, I'm not really sure and sorry I couldn't be more help.

Link to comment
Share on other sites

12 hours ago, The Loot said:

One last thing I can think of trying is going back to the original Tiller file and try having this in the Tiller section in the StationStart script: 

if (m.HasCommand("DummyTillerCheck"))
{
	m.PushActionExecuteCommand(ACTION_NEWLIST, "DummyTillerCheck", &m, 0, false);
	m.PushActionExecuteCommand(ACTION_APPEND, "DummyTiller", &m, 3, false);
}

That second command is used to position the trailer when parking in the station, hopefully it would position it properly on spawn. If that doesn't fix the issues, I'm not really sure and sorry I couldn't be more help.

I thought about that. I will try it. Thanks for your help

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