Jump to content

GetACtorValuePercentage not working.


Andrew1024

Recommended Posts

As the title says GetAvtorValuePercentage is not working. My custom teleport spell works if I place no conditions on it and it works with GetActorValue, but the percentage one doesn't. I tried placing it in the spell and tried placing it on the actual effect as well, neither worked. According to the wiki I should put the value as .15 for 15% but it won't trigger. I used GetPlayerActorValuePercentage...Health...<=...0.15 but it won't work. Anyone know what I'm doing wrong?

Link to comment
Share on other sites

float playersHealth = Game.GetPlayer().GetActorValuePercentage("health")

if (playersHealth <= 0.15)
endIf
Not tested but that looks right to me ...

Like IsharaMeradin said without seeing the code it's really hard to say what's wrong with it.
The code above is the correct format for what you are calling however ...
Edited by NexusComa
Link to comment
Share on other sites

  • Recently Browsing   0 members

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