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!!!
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!!!
Torque Owner Kirchgessner
Prosimian Productions