StonedWizard Posted July 30, 2015 Share Posted July 30, 2015 I try call getXP method, but always return nil. function AgeFactorNamespaceCore.OnStartGame() local checkTraits = true; --for set multiplies, set by age check local player = getPlayer(); player:setAge(25); --only for testing --here check and update age!!! if getPlayer():HasTrait("Teenager") then player:setAge(AgeFactorNamespaceCore:GetAge()); local xp = player:GetXP(); -- it not work and "getPlayer():getXP()" too endendwhat's wrong? "addXP" menhod works fine! Link to comment Share on other sites More sharing options...
ethanwdp Posted July 30, 2015 Share Posted July 30, 2015 It's getPlayer():getXp() Yes, the "P" in "Xp" is supposed to be lowercase, which is odd. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now