This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tutorial:adding-havok-variables [2025/02/26 04:12] – admin | tutorial:adding-havok-variables [2025/02/27 00:49] (current) – admin | ||
|---|---|---|---|
| Line 50: | Line 50: | ||
| Each variable info entry is represented by the following (or a variant of): | Each variable info entry is represented by the following (or a variant of): | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 65: | Line 65: | ||
| The function of the typing attribute (type) is to define the data type of the variable. The following data types are used: | The function of the typing attribute (type) is to define the data type of the variable. The following data types are used: | ||
| - | < | + | < |
| VARIABLE_TYPE_REAL | VARIABLE_TYPE_REAL | ||
| VARIABLE_TYPE_INT8 | VARIABLE_TYPE_INT8 | ||
| Line 81: | Line 81: | ||
| Each variable bounds entry is represented by the following (or a variant of): | Each variable bounds entry is represented by the following (or a variant of): | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 101: | Line 101: | ||
| Each word variable value entry is represented by the following (or a variant of): | Each word variable value entry is represented by the following (or a variant of): | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 112: | Line 112: | ||
| Each variable name entry is represented by the following (or a variant of): | Each variable name entry is represented by the following (or a variant of): | ||
| - | < | + | < |
| < | < | ||
| </ | </ | ||
| Line 123: | Line 123: | ||
| A variable binding set entry should look similar to the following, substituting the #ID, #MEMBERNAME and #VARINDEX text with the appropriate values. | A variable binding set entry should look similar to the following, substituting the #ID, #MEMBERNAME and #VARINDEX text with the appropriate values. | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 153: | Line 153: | ||
| Added hkbVariableBindingSet: | Added hkbVariableBindingSet: | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 169: | Line 169: | ||
| Usage in hkbClipGenerator: | Usage in hkbClipGenerator: | ||
| - | < | + | < |
| < | < | ||
| <hkparam name=" | <hkparam name=" | ||
| Line 201: | Line 201: | ||
| For exaple, you can now add the following code to set the animation speed of all hkbClipGenerators that make use of the hkbVariableBindingSet that targets playbackSpeed and uses the WeaponAnimSpeed variable. | For exaple, you can now add the following code to set the animation speed of all hkbClipGenerators that make use of the hkbVariableBindingSet that targets playbackSpeed and uses the WeaponAnimSpeed variable. | ||
| - | < | + | < |
| SetVariable(" | SetVariable(" | ||
| </ | </ | ||
| Line 209: | Line 209: | ||
| You can then combine this with conditions to create new in-game effects, here for example a ring could provide +10% weapon swing speed: | You can then combine this with conditions to create new in-game effects, here for example a ring could provide +10% weapon swing speed: | ||
| - | < | + | < |
| --- 111121 is the SpEffect given by the ring | --- 111121 is the SpEffect given by the ring | ||
| if env(GetSpEffectID, | if env(GetSpEffectID, | ||