Jump to content

Empfohlene Beiträge

Geschrieben

In case of crane can not lift object because of not enough space, currently occurs misbehave.

I recommend this case do not attempt lift. Simply move object to destination as well it was hooked. The current developer makes enough space or accepts that kind of moving without lifting.

Maybe develop a switch to use or not this method.

---

Destinaton of crane currently the middle of the object. I recommend use active route if object is a turnout. Use same method like vehicle snapping to route.

In case of more active route exist or a not turnout multiline route use any of that, always the same.

In case of crane cannot reach the middle of the object also occurs misbehave. If it reach any part of object - or routes on object - I recommend use that.

---

Event crane lift or lower is drastically different so I recommend use 2 different events.

These are all serious work so I am glad to develop any of them.

 

Geschrieben

Hi @Leslie,

Why do you want to move an object with a crane without lifting it? Either you are using a larger crane or it is simply not possible.
Why would you want to lift a turnout with a crane and only in relation to the active track? Setting down an object on the active track of a turnout still makes sense, but in reality this would not be done.
I can't understand the background to your wishes...

EASY

Geschrieben
I do not want to lift turnout but vehicle on it.
Lift is working but place to is not.
In some cases needed to transfer vehicle to another road and this case lift animation is not needed.
Geschrieben (bearbeitet)
vor 29 Minuten schrieb Leslie:

In some cases needed to transfer vehicle to another road

Unfortunately tracks are not a valid target for cranes.
Cranes can only place goods on designated target objects.

But why do you want to use a crane when you're not interested in the animation?
Using Lua, you can give the car a new location.

Bearbeitet von Goetz
suggestion added
Geschrieben
Yes, this is another solution.
Crane creates exact position on target and connects object to it. It is working only if road is straight and centered. After lowering vehicle can move away.
That will be very useful if crane can use active paths inside of a road for target too. Pickup is working correctly.

But instead of this - how can use wehicle position?
I have a variable but how can get and manipulate for example the X position of any object?
Geschrieben
vor 10 Minuten schrieb Leslie:

how can get and manipulate for example the X position of any object?

The position is a property of an object. You can access that property from Lua

object.transformation.position = {x = 0, y = 0, z = 0}

 

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können

Benutzerkonto erstellen

Neues Benutzerkonto für unsere Community erstellen.

Neues Benutzerkonto erstellen

Anmelden

Du hast bereits ein Benutzerkonto? Melde dich hier an.

Jetzt anmelden
×
×
  • Neu erstellen...