Community Forum

Vehicle Lifter

Forum Overview >> Scripting

CategoryScripting
Created05.04.2016 23:35


N0tr3ady (n0tr3adY) 05.04.2016 23:44
Hello!

I'd like to ask some help with my new project :)

So.. I've created a vehicle lifter (for Repair mod) which based on AnimationMapTrigger mod.
The whole project works fine, except two thing : when lifting up with a collisioned platform, the wheels falls through the collision, then jump back to their place. The second problem: when raising down the platform, the vehicle stays in the air, until driving a bit - tt falls back to ground.

Is there any chance to fix this? Or it is related to the game engine?

Best regards
n0tr3adY


Emil Drefers (Unknown) 06.04.2016 06:57
Hi,

you can press F5 to see whats happening.
If a vehicle is not moved for a certain period of time it will fall asleep (like any other physical object), which means that the physics engine does not take this object into consideration and does not generate any new position for it.

Well, I guess that this is the problem.
So, you would have to wake up the vehicle somehow ;)

Spontaneously I have no perfect solution for that.

Cheers,
Emil




N0tr3ady (n0tr3adY) 06.04.2016 10:18
Well.. Filled up the tractors tank with coffee - instead of gas - , but it keeps sleeping ;)


You said ";)"
That means for me, there is a tricky solution.. In your idea, is it based on a special .lua, or solved with the basic features? :)

Thanks for answer!

Regards,
n0tr3adY


Emil Drefers (Unknown) 07.04.2016 07:40
Hi,

yeah, a new .lua is definetly needed.

But, I'm not sure about what would really be the best and easiest solution

One option could be to drive the vehicle back and forth (just a tiny bit) while being lifted.
Another might be to link dynamic objects with a joint to the kinematic object (the lifter)
Probably there are more (and better) options ... but I'm not sure and they guy who knows it is in his holidays.

Cheers,
Emil


Note: Log in to post. Create a new account here.