Author Topic: An event that calls an animation state  (Read 447 times)

I don't know how to explain it better because my knowledge of modeling is limited at best, but I was thinking of an event that would change the state of the model of whatever item you're holding, or even your playertype

If this is possible and it's done, it would be loving sweet

It would be incredibly useful for changing the color of models without having to make new datablocks

You can't set the state manually, but you have two transitions that can be controlled from script.

With these functions:

player.setImageLoaded(slot, bool)
player.setImageAmmo(slot, bool)

You can trigger these state transitions:

stateTransitionOnLoaded[]
stateTransitionOnNotLoaded[]
stateTransitionOnAmmo[]
stateTransitionOnNoAmmo[]

So you could use these to switch to other states that have the correct color/animation/etc?