Author Topic: Variable dependant animation.  (Read 712 times)

Is it possable to have an animtion similar to "look", or the "Spring" animation for vehicles, but is dependant on variables? For example, a fuel gauge, when the variable "fuel" is at 1/2, the animation plays the frame that is 1/2 way through.

That would be awesome.

You could, but I don't think constantly. I think it'd have to be different animations that play depending on the amount of fuel left.

Yeah, thats what i was going to do if i couldn't use a single one.

Code: [Select]
if Fuel = 1/2 Fuel.max
{
changeDatablock 1/2Fuel Player;
}

This-ish? I suck at coding.

No, im talking about an animation, not playing many.


If you don't understand what I'm saying, don't bother posting.

In a sense, this can be done with dsqs.

You would have to find some clever ass way to get animation health bars working lol