This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| common-refmat:havok_behavior_script [2026/10/03 16:21] – admin | common-refmat:havok_behavior_script [2026/10/03 16:30] (current) – admin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Havok Script exposes the following Lua libraries: | Havok Script exposes the following Lua libraries: | ||
| - | * debug | + | * debug |
| * io | * io | ||
| * coroutine | * coroutine | ||
| * math | * math | ||
| + | * os | ||
| + | * package | ||
| + | * profile | ||
| + | * serialize | ||
| + | * string | ||
| + | * struct | ||
| + | * table | ||
| - | ===== Havok Built-in (General) ===== | + | ===== General ===== |
| ^ Name ^ Parameters ^ Notes ^ | ^ Name ^ Parameters ^ Notes ^ | ||
| | act | <action id>, < | | act | <action id>, < | ||
| + | | env | < | ||
| | ActivateRightArmAdd | <frame index>: | ? | | | ActivateRightArmAdd | <frame index>: | ? | | ||
| - | | assert | ? | ? | | ||
| | CalcArmTwistAngle | ? | ? | | | CalcArmTwistAngle | ? | ? | | ||
| | ChangeWaistTwist | <a>, <b>, <c>, <d> | ? | | | ChangeWaistTwist | <a>, <b>, <c>, <d> | ? | | ||
| - | | collectgarbage | ? | ? | | ||
| | ConvergeValue | <value 1>, <value 2>, < | | ConvergeValue | <value 1>, <value 2>, < | ||
| | DebugPrint | < | | DebugPrint | < | ||
| - | | dofile | ? | ? | | ||
| - | | dummy | ? | ? | | ||
| - | | env | < | ||
| - | | error | ? | ? | | ||
| | ForwardLeg | - | Returns the index of the forward leg | | | ForwardLeg | - | Returns the index of the forward leg | | ||
| - | | getfenv | ? | ? | | ||
| - | | getmetatable | ? | Lua table function. | | ||
| - | | hpairs | ? | Lua table function. | | ||
| | IncNum | ? | ? | | | IncNum | ? | ? | | ||
| + | | IsRightArmAddState | ? | ? | | ||
| + | | PrintString | ? | ? | | ||
| + | | RightArmLocation | ? | ? | | ||
| + | | SetTimeActEditorVariable | ? | ? | | ||
| + | | UpdateFemaleBlend | ? | ? | | ||
| + | | UpdateRightArmAdd | ? | ? | | ||
| + | | UpdateShoulderTwist | ? | ? | | ||
| + | | UpdateWristTwist | ? | ? | | ||
| - | ===== Havok Built-in (Behavior) | + | ===== Havok-Specific |
| ^ Name ^ Parameters ^ Notes ^ | ^ Name ^ Parameters ^ Notes ^ | ||
| | hkbAssignLineDockingTarget | ? | ? | | | hkbAssignLineDockingTarget | ? | ? | | ||
| Line 63: | Line 70: | ||
| | hkbUnloadAnimationAssets | ? | ? | | | hkbUnloadAnimationAssets | ? | ? | | ||
| - | ===== HavokScript | + | ===== havokscript |
| ^ Name ^ Parameters ^ Notes ^ | ^ Name ^ Parameters ^ Notes ^ | ||
| | havokscript.compilerSettings | ? | ? | | | havokscript.compilerSettings | ? | ? | | ||