2
« on: July 31, 2005, 08:12:43 am »
I have updated the full body turn back hap found within this forum so fullbodygrl.htr gives a nice view of whatever outfit she is wearing. However it works fine if dropped in to the console window but only runs about halfway through the script when it is loaded through the hal brain. Any help or suggestions would be greatly appreciated. Below is what is in the hap file:
#Haptek Version= 2.00 Name= turnback.hap HapType= script FileType= text
setswitch [switch= hands_on_hips state= start]
clock [t= 0] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 0 z= 0 t= 0 ]
clock [t= 2] keyframe[figure= fullBod switch= 0 ry= 315 rz= 0 w= 0 x= 0 y= 40 z= -10 t= 0 ]
clock [t= 4] keyframe[figure= fullBod switch= 0 ry= 225 rz= 0 w= 0 x= 0 y= 50 z= -10 t= 0 ]
clock [t= 8] keyframe[figure= fullBod switch= 0 ry= 180 rz= 0 w= 0 x= 0 y= 100 z= -120 t= 0 ]
clock [t= 10] keyframe[figure= fullBod switch= 0 ry= 90 rz= 0 w= 0 x= 0 y= 30 z= -150 t= 0 ]
clock [t= 12] keyframe[figure= fullBod switch= 0 ry= 0 rz= 0 w= 0 x= 0 y= 25 z= -80 t= 0 ]
And this is the code I have put in the XTF v1.2 brain:
If InStr(UserSentence, " please turnaround ") <> 0 Then
GetResponse = "Like what you see."
HalCommands = "<HAPFILE>fullbodyturnback.hap</HAPFILE>"
BlockSave=True
GetResponseBlock = True
End If