Jump to content
Sign in to follow this  
Guest

Bv-206

Recommended Posts

first of all, wrong forum

then:

what is that fin for, you nowhere set it to true

what is that goto debug for when you nowhere define debug

and what you mean with, it doesn't turn as in reality?

Share this post


Link to post
Share on other sites
Guest BratZ

I know what you mean...the trailer follows exactly behind the tow vehicle

Hard to explain,but you want the trailer to point in the direction that the tow vehicle is,and take up the difference of aliginment depending on the tow vehicles speed (turning a corner at slow speed,the trailer takes a wide path,at faster speed it takes up the angle faster)

I know alot of people have worked on trailer scripts,many would be in the editing like forums,I am not sure of the current status of any great trailer scripts

I think I am going to implement the work I have done,using Vibes new PAK36 and the matching Krupp Protze

This was discussed with Vibes tonight

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (BratZ @ Mar. 28 2003,00:52)</td></tr><tr><td id="QUOTE">I know what you mean...the trailer follows exactly behind the tow vehicle

Hard to explain,but you want the trailer to point in the direction that the tow vehicle is,and take up the difference of aliginment depending on the tow vehicles speed (turning a corner at slow speed,the trailer takes a wide path,at faster speed it takes up the angle faster)

I know alot of people have worked on trailer scripts,many would be in the editing like forums,I am not sure of the current status of any great trailer scripts

I think I am going to implement the work I have done,using Vibes new PAK36 and the matching Krupp Protze

This was discussed with Vibes tonight<span id='postcolor'>

if the vehicle has no turret you can make the axis of the trailer coded as a turret so the trailer moves like a trailed behind it.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Vixer @ Mar. 30 2003,11:26)</td></tr><tr><td id="QUOTE"></span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (BratZ @ Mar. 28 2003,00:52)</td></tr><tr><td id="QUOTE">I know what you mean...the trailer follows exactly behind the tow vehicle

Hard to explain,but you want the trailer to point in the direction that the tow vehicle is,and take up the difference of aliginment depending on the tow vehicles speed (turning a corner at slow speed,the trailer takes a wide path,at faster speed it takes up the angle faster)

I know alot of people have worked on trailer scripts,many would be in the editing like forums,I am not sure of the current status of any great trailer scripts

I think I am going to implement the work I have done,using Vibes new PAK36 and the matching Krupp Protze

This was discussed with Vibes tonight<span id='postcolor'>

if the vehicle has no turret you can make the axis of the trailer coded as a turret so the trailer moves like a trailed behind it.<span id='postcolor'>

Hmm, wouldn't that make the "turrnet" not to move at all (the turrnet on a t80 doesn't move) Unless there is a gunner and that would mean there have to be a "gunner" and he have to keep looking the right "way". Not sure if i posted kegtys trailer script that he did and with my small mod on it or if i posted it only on OFPEC but here it comes again.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">

_tarray = []

#loop

pera setpos getpos etu

_tarray = _tarray + [getdir etu]

? count _tarray > 30 : _tarray = _tarray - [_tarray select 0]

pera setdir (_tarray select 0)

pera setvelocity (velocity etu)

~0.0001

@speed etu > 0

goto "loop"

<span id='postcolor'>

i also tried do one of my own. My biggest problem was it sometimes loose track and got losted into space and such.

Think it will just need the forumla.

*Get "car" speed/velocity, dir and postion and tralier dir.

*Put trailer behind car with help of dir and postion. Put the velocity for making the traliers wheels turn and stuff. Finaly adjust the "turning" with the dir and make it comes to the right spot "slowly" and only if it is moving and perhaps making it comes "straight" faster depending of the speed.

Share this post


Link to post
Share on other sites
Guest

...

Share this post


Link to post
Share on other sites

had a new idea, not been thinking thru it so closely but.. what if in the bv206 init. (addon init not mission maker since i want to make it workable without extra editing from the user)..

anyway, the init starts a script, or some eventhandlers..

brainstorm code now, not working or anthing

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#loop

_mydir = getdir _this // get he current dir of the bv206

~0.1

?( _mydir != (getdir _this) : goto "turn" // check if the bv206 have turned since last 0.1 sec

goto "loop"

#turn

?(_mydir < getdir _this) : _this animate [""rear"",1]

?(_mydir > getdir _this) : _this animate [""rear"",0]

goto "loop"

<span id='postcolor'>

Okey it needs to be a little bit more advancde then this but it gives the picture of how i thought. would like some feedback on this one.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×