====== Havok Behavior Script ====== Covers all of the exposed functions available within Havok Script files (.hks). Havok Script exposes the following Lua libraries: * debug * io * coroutine * math * os * package * profile * serialize * string * struct * table ===== General ===== ^ Name ^ Parameters ^ Notes ^ | act | , | Used for FromSoftware commands in Havok Script | | env | , | Used for FromSoftware conditions in Havok Script | | ActivateRightArmAdd | : | ? | | CalcArmTwistAngle | ? | ? | | ChangeWaistTwist | , , , | ? | | ConvergeValue | , , , | ? | | DebugPrint | , | ? | | ForwardLeg | - | Returns the index of the forward leg | | IncNum | ? | ? | | IsRightArmAddState | ? | ? | | PrintString | ? | ? | | RightArmLocation | ? | ? | | SetTimeActEditorVariable | ? | ? | | UpdateFemaleBlend | ? | ? | | UpdateRightArmAdd | ? | ? | | UpdateShoulderTwist | ? | ? | | UpdateWristTwist | ? | ? | ===== Havok-Specific ===== ^ Name ^ Parameters ^ Notes ^ | hkbAssignLineDockingTarget | ? | ? | | hkbAssignNullDockingTarget | ? | ? | | hkbAssignPlaneDockingTarget | ? | ? | | hkbCastRay | ? | ? | | hkbFireEvent | | The name corresponds to the events listed in eventnameid.txt | | hkbGetBoneIndex| ? | ? | | hkbGetBoneLocalSpace | ? | ? | | hkbGetBoneModelSpace | | Returns a hkbBone object | | hkbGetBoneName | ? | ? | | hkbGetBoneParent | ? | ? | | hkbGetCharacterControllerIsSupported | ? | ? | | hkbGetCharacterControllerSupportingNormal | ? | ? | | hkbGetCharacterControllerVelocity | ? | ? | | hkbGetHandleEventName | ? | ? | | hkbGetNumBones | ? | ? | | hkbGetOldBoneLocalSpace | ? | ? | | hkbGetOldBoneModelSpace | ? | ? | | hkbGetOldWorldFromModel | ? | ? | | hkbGetRagdollBalanceErrorModelSpace | ? | ? | | hkbGetTimestep | ? | ? | | hkbGetUpAxis | ? | ? | | hkbGetVariable | | Returns the value from a Havok variable. | | hkbGetWorldFromModel | ? | ? | | hkbIsBoneValid | ? | ? | | hkbIsNodeActive | ? | ? | | hkbLoadAnimationAssets | ? | ? | | hkbPrint | ? | ? | | hkbSetBoneLocalSpace | ? | ? | | hkbSetBoneModelSpace | ? | ? | | hkbSetVariable | ? | ? | | hkbSetWorldFromModel | ? | ? | | hkbUnloadAnimationAssets | ? | ? | ===== havokscript ===== ^ Name ^ Parameters ^ Notes ^ | havokscript.compilerSettings | ? | ? | | havokscript.getgcweights | ? | ? | | havokscript.setgcweights | ? | ? | ===== hkDebugDisplay ===== ^ Name ^ Parameters ^ Notes ^ | hkDebugDisplay.showLine | ? | ? | | hkDebugDisplay.showPoint | ? | ? | ===== hkQsTransform===== ^ Name ^ Parameters ^ Notes ^ | hkQsTransform.new | ? | ? | ===== hkQuaternion===== ^ Name ^ Parameters ^ Notes ^ | hkQuaternion.new | ? | ? | ===== hkVector4===== ^ Name ^ Parameters ^ Notes ^ | hkVector4.new | ? | ? |