SGTbayk47 Posted October 11, 2016 Share Posted October 11, 2016 Hey everyone, I'm currently trying to add a script to an electrical switch, 'ElectricalSwitch02' in the GECK, which causes the switching animation to play when the player activates it. Note that I have made my own switch, but it uses the model of the original switch. From previewing the switch, I can see the animation I need to use is called 'Open'. This is where my problem is though, because when I write 'playgroup open' in my script, it refuses to save. I am using GECK Powerup, and this is the message that pops up when trying to save; http://i.imgur.com/JJyOh9D.jpg If anyone knows how to get this working it would be appreciated, Thanks in advance, Bayk. Link to comment Share on other sites More sharing options...
uhmattbravo Posted October 11, 2016 Share Posted October 11, 2016 (edited) You need to name groups after existing ones. I think you need certain ones first. First, you need an idle, and iirc, it needs to be looping. This is for when it hasn't been activated. The activated animation needs to be either forward or backward. I don't recall which was supposed to be first. If you have 7 animations and an idle, they need to be forward, backward, left, right, fastleft, fastright, and fast forward. Anything past that I don't know because I've never needed that many. Edit: at least that's how it works for anim statics. I don't know how the vanilla one would'be been using a group named open. Edited October 11, 2016 by uhmattbravo Link to comment Share on other sites More sharing options...
rickerhk Posted October 12, 2016 Share Posted October 12, 2016 If the 'Activate' function doesn't make the lever move, then try SetOpenState 1 Link to comment Share on other sites More sharing options...
SGTbayk47 Posted October 12, 2016 Author Share Posted October 12, 2016 Thanks, the 'setopenstate' method worked. Link to comment Share on other sites More sharing options...
Recommended Posts