Jump to content

Any talented scripters that can give a hint?


ILikeToPunch

Recommended Posts

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

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 by uhmattbravo
Link to comment
Share on other sites

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 by ILikeToPunch
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...