Author Topic: Coding help for knifes  (Read 8288 times)

OK i want to make custom knifes for a knife TDM I Need it so you raise the knife over your head like the butterfly knife, does anyone have the code to do that?

Yeah, just play spearReady on a player.


Package the firing function and add %obj.playThread(2,spearThrow);
Then create charge/abort charge functions and use root and spearReady
« Last Edit: October 17, 2014, 08:14:58 PM by Thorfin25 »

Can't you play animations using image states, though?


Can't you play animations using image states, though?
Spearready seems to be more practical for knives though.

How would i make a spear in to a knife?

My knowledge does not extend to this level so i am just fishing in the dark, but i believe Spearready is the function used with the spear to hold it above your head until mouse is released, you should check the Spear weapons code.

Spearready is the function
Not a function, but rather an animation.


Can't you play animations using image states, though?
That's for making the weapon model play an animation. If you want to imitate the spear, I advise reading the spear script. Namely the few functions at the bottom that have playThread in them.