Game Development Community

How to change weapon texture...?

by Chan Chi Kit · in Torque Game Engine · 12/08/2005 (9:30 am) · 1 replies

Can I change weapon texture in runtime...?

I have already put base.weapon.png & green.weapon.png to the same folder and export the DTS file with texture file name of base.weapon.png

By using object.setSkinName, I can change weapon texture when it is an object. However, if I mount the weapon to my player and enter mountImage(weapon, 0, false, "green"), I can't change the weapon texture...

What other things I need to change...?

Thanks!!!

#1
02/15/2006 (10:16 am)
I would have figured it would have been the same command only applying to the image mounted not the player. But other than that maybe someone else can help