SHARE
TWEET

Untitled

a guest Sep 20th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SkillLocator skillComponent = BodyCatalog.FindBodyPrefab("BanditBody").GetComponent<SkillLocator>();
  2.  
  3. SkillDef primaryDef = SkillDef.CreateInstance<SkillDef>();
  4. //Set the parameters of primaryDef
  5.  
  6. SkillDef primaryShotgunDef = SkillDef.CreateInstance<SkillDef>();
  7. //Set the parameters of primaryShotgunDef
  8.  
  9. SkillFamily.Variant[] primaryVariants = new SkillFamily.Variant[2];
  10. primaryVariants[0].skillDef = primaryDef;
  11. primaryVariants[0].unlockableName = "";
  12. primaryVariants[1].skillDef = primaryShotgunDef;
  13. primaryVariants[1].unlockableName = "";
  14. skillComponent.primary.skillFamily.variants = primaryVariants;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top