ILikeToPunch Posted August 18, 2016 Share Posted August 18, 2016 Hello, i want to figure out a way to make a synchronized animations, no not the sex ones, but a combat ones. And as it happens i'm completely pathetic when it comes to scripting. So i'm asking some people out here to give me some tips on script commands (functions they are called right?) or hell even an example of such script, if it isnt too much. Right now i'm stuck with animations and a working concept. I want it to be something like this:-You press a specific key\button and two characters (e.g. the player and a target) starts to play two different, but synchronized animations (e.g. player takedown).The biggest issue for me is that i dont know what functions to use to make coordinates calculations for the characters that will make them allign properly in front of each other when animation starts. Thanks in advance... Link to comment Share on other sites More sharing options...
uhmattbravo Posted August 18, 2016 Share Posted August 18, 2016 (edited) http://geck.bethsoft.com/index.php?title=GetPos http://geck.bethsoft.com/index.php?title=GetAngle http://geck.bethsoft.com/index.php?title=SetPos http://geck.bethsoft.com/index.php?title=SetAngle And mabe: http://geck.bethsoft.com/index.php?title=MoveTo Plus you may need to do some math to adjust where the NPC is positioned. A couple formulas using cos and sin work to position vertibird airstrikes, but I suck at math so I just adjusted ones (by trial & error) J3X used for the airstrikes in Enclave Commander. Edited August 18, 2016 by uhmattbravo Link to comment Share on other sites More sharing options...
ILikeToPunch Posted August 18, 2016 Author Share Posted August 18, 2016 (edited) Sin, cos formulas... lol Sounds complicated and i suck at math too. Thanks for the answer, i'll start to digging this up and try to come up with something.[Edit]Wow i never expected that kind of scripting to be that complicated, spend two evenings on that, but i got something close to a working script. I looked up at Pushabilitator and The Groovatron scripts which i found more or less close to what i want. The script i have right now is so WIP that i can "Takedown" dead bodies as much as i want with their limbs missing and they still play "Hit Reaction" animation. Its like i resurrect them, attack them and after that they die... again and again if i press the button. Thanks again uhmattbravo, i'll give you kudos if i will find how :smile: Edited August 19, 2016 by ILikeToPunch Link to comment Share on other sites More sharing options...
Recommended Posts