Jump to content

How do I use a global variable with an int?


randomtguy

Recommended Posts

There are heaps of ways as long as you cast correctly. I am doing these right now where pSKK_HWDifficulty is a GlobalVariable note the explicit cast on each calculation

Float fMoreDamageValue = (pSKK_HWDifficulty.GetValue() * 100) as Float 

Int iTargetActorCount = (pSKK_HWDifficulty.GetValue() * iMaxWorkshopActors) as Int

Int iGlobalValueAsInt = pSKK_HWDifficulty.GetValue() as Int

I dont use GetValueInt() as it has caused issues.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...