Game Development Community

Bow weapon and character animation

by Tom · in Torque Game Engine · 07/17/2006 (4:42 pm) · 2 replies

Hi everyone,

so, i started to mod the starter.fps, so long so good:)

however, i wanted to change the crossbow with a regular bow. i animated it, and it fires.

however, i want that the character plays also a sequence where he pyulls the string back on fire and no ammo during weapon fire.

where would i add the line (play.sequence)

is this even the right line of code? or do i have to add a different code line to make teh character play an animation during weapon fire?

i would deeply appreciate if someone could give me a line/s of code that would start playing the animation of the character when the weapon fires.

i tried to get the information by looking at the realm wars project, and i believe i know how it works, but they didt it wiuth the damage nodes, and i jsut need a player animation to occure during weapon fire.

(sry for repeading "need a player animation to occure during weapon fire" so many times)

#1
07/17/2006 (4:45 pm)
An easy thing to do would be to change the recoil animation of the player to be the pulling back and firing animation.
#2
07/17/2006 (7:45 pm)
Check out shapes/player/player.cs