Animation Specificiation Issue

Battlemapsta

I am the Conduit of Change
Reaction score
101
Hey all, I've been messing around with the editor and I'm come up with a little problem. I'm trying to make a unit I specify play an animation in specific as in I want it to play animation attack-3.

I've already read up on the custom script and everything but my guy apparently doesn't perform an animation at all.

To recap the situation I have one trigger that sets a unit variable like so.

Trigger:
  • Set Bob = Bob

Bob the variable = Bob the guy on the map.

Now for the trigger that makes it work looks like this.

Trigger:
  • Animation
    • Events
    • Conditions
    • Actions
      • Wait 0.10 game-time seconds
      • Custom script: call SetUnitAnimationByIndex(udg_Bob,5)
      • Wait 1.00 game-time seconds
      • Unit - Pause Bob 0000 <gen>


Firstly, this trigger is run through another trigger that simply has a run action.
I have a second wait and then a pause because I'm attempting to pause the animation at a point to make it pose. I got the integer for the animation using the viewer and the model has over 9 animations so the integer can't be an issue.

Other than that, I have no more critical information to give unless someone uncovers my issue.

Thank you in advance.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Delete the custom script the use animation - play bob attack 3 animation
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
Won't even work because it selects a random attack animation. The model has about 4 attack animations so by using attack 3, it chooses one of them which is why I'm using the custom script suggested by others in other threads.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Well then im not sure the animation index number but are you sure that that is the right number
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
Using the viewer I see the animations of the model. There are 5 animations above it in the list so it's the 6st and because you count the first as 0 then it's 5 just like I coded.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Quikly try it without pausing the unit. I think that stops animations playing
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Wel this wont fix the problem but pausing a unit wont stop him from finishing his animation
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
I already stated that this was intentionally done because I am attempting to pose the unit at certain point while they perform the specified animation.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Yes that why i say that because he wont pose he will finish his animation and i cant see any problems with what is here could you maby post all 3 triggers fully
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
The third trigger isn't a concern because I tested it originally with the animation command and it worked. There is only an issue within these 2 triggers that apparently result in Bob not doing any action.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
K insert this custom script in the animation triger. local unit u = udg_Bob. Then change to SetUnitAnimationByIndex((u),5)
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
What error and did you put the new custom script above every thing in the actions it must be first
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
This is basically how it looks like.

Trigger:
  • Animation
    • Events
    • Conditions
    • Actions
      • Custom script: local unit u = udg_Bob
      • Wait 0.10 game-time seconds
      • Custom script: SetUnitAnimationByIndex(udg_Bob,5)


The first custom script needs a code statement and the second needs a name so the original for the second was fine before.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
The reason for the new custom script was to replace the udg_Bob part. Is bob preplaced. What varaible are you seting bob to.
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
I tried it both ways with and without the udg with errors, Bob is preplaced and I already said I set bob to a unit variable under a map initilization trigger.
 

Battlemapsta

I am the Conduit of Change
Reaction score
101
Sorry to double post but I fixed the issue myself. Thank you though for your effort in helping me.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top