Announcement

Collapse
No announcement yet.

Adding random animations?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding random animations?

    Ive been getting my custom monster to work pretty well, however when a mob of them spawn they're all using the same animations so they dont look too much like a random mob.
    Id like to add some code to randomize movement, idle and attack animations. I managed to get em to use 2 different attack anims but thats only cause i put in a second attack function from antoher script and i dont think id be able to do that again. They're melee monsters so that cuts out any need for ranged attacks. Any help would be greatly appreciated.

    D

    #2
    Define a dynamic array of names and those are your anims. Play a random animation for walking or running, etc. That is, if you can find where the scripts call those animations. Otherwise, you cant:P

    PlayAnim(Anims[Rand(Anims.Length)],...);

    Comment


      #3
      I would do the same Bone said.

      Comment


        #4
        Hehe, nice guys thanks
        Ill give it a try!

        D

        Comment


          #5
          K ive tried this, but it doesnt seem to work for me, im sure its posssible but im just doing something wrong. For instance i put the array in the step function for the monster, but im pretty sure this is the wrong place for it.

          Any suggestions?


          D

          Comment

          Working...
          X