User mods, screenshots & videos > Vehicles

Additional controls for vehicles

<< < (4/5) > >>

cameni:
You can check how the MiG29 script animates the parts. In the action method you can set a flag indicating that something should open, and then in the update method you'd compute the angle based on the time elapsed from when the flag was initially set (using an helper var that accumulates the delta time provided in the update_frame method).

There will be also support for complex animations done in the 3D modeler, that are controlled by setting a value in range 0..1, but then you'll still have to compute the value from the elapsed time.

mLichy:
Ah, ok.  Actually I looked at the script the other day, I think I remember seeing something like this. 
I'll check it out again, thanks!

cameni:
Hmm thinking maybe we could wrap some of these useful bits of functionality in a helper script that gets automatically included before each vehicle script, since this is a fairly regular thing.

mLichy:
Yeah, that sounds like a good plan. 

bugsblake:
just a couple of suggestions for cars

indicaters and hazard lights
high/low beam toggle - better for night driving
open roof - can be used for sun roof or convertable soft top/hard top

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version