View Single Post
  #7  
Old 09-05-2006, 02:04 PM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
I did that. For this avatar, the hand is named skel_HandRF (for right hand finger). I used the following code. I received the following errors:
** ERROR: Could not find child with name 'skel_HandRF'
** ERROR: Could not find child with name 'skel_HandRF'
** ERROR: Could not find child with name 'skel_Neck'


Code:
for x in range(0,3):
 if x == 0:
  male = viz.add(people[2])
  male.scale(.11,.11,.11)
#  GetWeapon(male,0)
  male.currentWeapon = male.getchild('skel_HandRF').add("M16M203.WRL")
  male.tag = 0
  male.threatening = TRUE
  male.appearance = 0
  male.facepic = 0 
 elif x == 1:
  male = viz.add(people[1])
  male.scale(.11,.11,.11)
  male.currentWeapon = male.getchild('skel_HandRF').add("C:\Program Files\Vizard25\resources/phone.3ds")
#  GetWeapon(male,1)
  male.tag = 1
  male.threatening = FALSE
  male.appearance = 0
  male.facepic = 0
 elif x ==2:
  male = viz.add(people[0])
  male.scale(.11,.11,.11)
  male.visible(0,'gz_mave_headwht.cmf')
  male.face(faces[0])
#  GetWeapon(male,2)
  male.currentWeapon = male.getchild('skel_Neck').add("camera.WRL")
  male.tag = 2
  male.threatening = FALSE
  male.appearance = 0
  male.facepic = 0
 male.translate(3*x,-10,10)
 male.rotate(180)
 #Add the avatar to the waiting and lemming list
 waitlist.append(male)
 characters.append(male)

Last edited by betancourtb82; 09-05-2006 at 02:11 PM.
Reply With Quote