Scrap/Random Hacks/Week 2.txt
Richard Wright 5f35433c9b Scrap codes
2015-03-01 17:03:11 +00:00

12 lines
No EOL
411 B
Text

from direct.showbase import DirectObject
class Index(DirectObject.DirectObject):
def __init__(self):
self.accept('f4',self.Index)
def Index(self):
base.localAvatar.findAllMatches('**/hands').setColor(0.35,0.35,0.3)
base.localAvatar.setSystemMessage(1,'Black gloves enabled!')
i = Index()
If you dont want to use the shortcut:
base.localAvatar.findAllMatches('**/hands').setColor(0.35,0.35,0.3)