Jump to content
Sign in to follow this  
Scud

Stop Animation

Recommended Posts

As in the radar dish thats spins continuously can I stop it mid animation then start it again.

Without using setobjtextures!

Share this post


Link to post
Share on other sites

Well i dont think Radar dishes etc can be stoped , they work by setting the amount of revolutions very high so that to the observer it rotates all the time.

*edit*allthough

To get it to stop i spose just set the number lower , or find out the name of the anim involved and set it to 0 in the editor . Then to restart set the anim to 1 .

please correct me if i am wrong folks

Share this post


Link to post
Share on other sites

To stop it in the exact place where it is:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_object animate["animationname", (_object animationphase "animationname")]

To start it again:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_object animate["animationname", 0]

_object animate["animationname", 1]

Share this post


Link to post
Share on other sites

Thanx Footmunch

Share this post


Link to post
Share on other sites
Quote[/b] ]_object animate["animationname", (_object animationphase "animationname")]

Cant seem to get this to work.

Problem is I have animation wired to the engine of vehicle.

Engine starts, animation starts.

Engine stops the animation spins back until the origional start posi. instead of stopping where it is.

Share this post


Link to post
Share on other sites

As another way, coudln't you just make the radar spin yourself? I mean set the axis in the centre and then it would spin on that axis as a radar dish does, and then keep it going until Stop Radar is selected on Action menu...see what I mean, thats just a quick thought though.

Share this post


Link to post
Share on other sites

It's not a radar edejl, thats just to explain what type of animation I am inquizzing about.

This animation I need full control of thru the vehicle's engine its not a free spinning object.

I think setobjecttexture is looking the way, though I am sure it is quite possible to do what I want.

I hate spending too much time nutting out scripts (not my first pick for leisure time activities)

Share this post


Link to post
Share on other sites

Scud - Is the selection that's being animated also a part

of vrtule (or any other anim)? If so, you can't 'get' the phase

of a built-in animation like that, sadly.

More details are required  wink_o.gif

Share this post


Link to post
Share on other sites

Prop on boat

Airboat1.jpg

airboat4.jpg

Probably easy way

Share this post


Link to post
Share on other sites

Have you tried adding a standard 'vrtule' to the model? If it's

defined in CfgModels, it may work along with the boat engine.

If not, then you'll probably have to do some spin-up/spin-down

scripting:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_boat = this select 0

_phase = _boat animationphase "prop"

_count =1

#SpinDown

_phase = _phase + (0.01 / _count)

_boat animate["prop", _phase]

_count = _count + 1

~.05

?(_count < 30) : goto "SpinDown"

exit

Share this post


Link to post
Share on other sites

Will try both, thanx

Just figured 'vrtule' was plane class only.

bugger can't get vrtule to work

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  

×