Game Development Community

AIPlayer Fire from muzzle of guns

by Demolishun · in Torque Game Engine · 11/11/2005 (11:51 am) · 1 replies

I have created a turret that uses the AIPlayer as the underlying object. Everything works very well except I cannot get the player to fire from the muzzlePoint of my mounted gun images. I did use the resource that allows the guns to be mounted in mount points instead of from the dataBlock mountPoint. This may be part of the problem. However, when I tried doing this without the resource it still fired from not the guns muzzle, but from inside the player somewhere.

Please advise on how to get the gun to fire from the muzzle of the gun.
I am using the standard crossbow onfire script which looks like it is trying to fire from the muzzlePoint.

Thanks,
Frank

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
11/11/2005 (12:21 pm)
I do not know what I did, but now it is firing from the muzzlePoint. I must have had some wayward DSO. If I figure this out I will let you know.

AHAH!
eyeoffset
If you want to fire from the muzzelpoint squash eyeoffset!