Jump to content

Recommended Posts

As far as I can tell, there isn't a clean way to check if character has a skilltree. The closest thing is ThePlayer.components.skilltreeupdater:GetActivatedSkills() (it seems to be a rare component that's available on the client), but it only works if player actually activated a skill.

As for the dirty way, what I came up with is:

local skilltree_data = require("prefabs/skilltree_defs")
local has_skill_tree = skilltree_data.SKILLTREE_DEFS[ThePlayer.prefab] ~= nil

 

Edited by E100Pavel
typos

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...