Jump to content
  • entries
    2
  • comments
    2
  • views
    1239

About this blog

I will point out various functions available via Papyrus that you may have never knew existed.

Entries in this blog

PapyrusUtil.ClampFloat & ClampInt

Theses functions were introduced into PapyrusUtil 3.0 / SexLab 1.6. It allows you to squash a number to fit within a specific range. Previously this required a minimum of 5 lines of scripting to pull off, now you can do it seaside with one. This is a global function which can be accessed at any time via PapyrusUtil.ClampFloat(). There is a second version of this function called PapyrusUtil.ClampInt() which does the exact same thing, but you give it integers instead of floats, as well as returns

darkconsole

darkconsole

×
×
  • Create New...