Jump to content

VoyVivika

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by VoyVivika

  1. I honestly feel really dumb because I swear I tried that already, but I guess I was typing or doing something wrong because it works.
  2. Bumping because I still have no idea how to get a number from the Slider Widget
  3. I've searched through the widget documentation and the slider.lua, also googling every combination I can think of to no luck. How do I get the current value of a slider widget? I've tried :GetValue(), :GetSliderValue, :GetSelectedItem() and none of them worked, with the last one always returning something like "index out of range" despite the value i'm putting in being very well within the range I defined (0, 170). I'd also like to know how to Set the value for loading. This is for a simple FOV Slider for my options menu.
  4. After further investigation of my problem, I found that if I tell a bone to play an animation, it for some reason stops being animated all together. So let's say I do "PlayAnimation(1, 0.5, 100, 0)" on the neck bone, it just ceases to animate all together which allows me to do things like rotation on it. While this is sort of useful I imagine this isn't the intended effect (and that this is what the StopAnimation() function is for) Either this is a bug in the current version (4.6 as far as I'm aware), or it's a bug in my project because I originally started it in the demo which is only running 4.3 (or at least says it's running 4.3).
  5. Note: I got the FindEntity function from the following I don't know why, but self won't return anything to do with the entity the script is running from (or should be running from), so I have to do FindEntity("player") which feels weird but it's the only way I got it to work. if I change this to self.player the animation will play, but it won't from the bone
  6. how exactly does one pick a bone in the hierarchy? I haven't found any form of function or documentation on how to get something from a hierarchy and my attempts at calling a play command on bones hasn't been working so I don't think I'm at all doing what I'm meant to.
  7. I'm currently testing the waters with this Engine and I'm struggling with animation. So I'm trying to build some sort of Third Person Shooter, and my idea is to have the arms and legs animated separately, so the arms play one animation, and the legs play another, so if the player isn't holding anything I can just play a running animation with the arms, or a holding weapon animation depending on the Weapon. I also want to mention that I want certain bones to be unaffected by the animation. I'm using my model's head bone as a sort of origin for the camera to be offset from, if there's a way to do this that someone could tell me about I'd be greatly appreciative.
×
×
  • Create New...