Andrew1024 Posted November 13, 2018 Share Posted November 13, 2018 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 More sharing options...
IsharaMeradin Posted November 13, 2018 Share Posted November 13, 2018 Without seeing the script, no one can tell what you may or may not be doing incorrectly. Link to comment Share on other sites More sharing options...
NexusComa Posted November 14, 2018 Share Posted November 14, 2018 (edited) 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 November 14, 2018 by NexusComa Link to comment Share on other sites More sharing options...
Recommended Posts