GSGlobe Posted October 3, 2017 Author Share Posted October 3, 2017 What Im doing is use a spell that gives a perk to playerAnd perk is linked to an ability. So what I want is to have the ability to activate itself when player has a certain magiceffect. IF I dont have this magiceffect when giving the Perk to the player nothing ever kappens but IF I have the magiceffect when giving the perk to the player IT works then IT checks whether player has magiceffect or not to recast. This is My problem, I want to give the perk - ability to player before player has the magiceffect and when player gets magiceffect the ability should cast. Ideas? How do I fix My problem? Link to comment Share on other sites More sharing options...
foamyesque Posted October 3, 2017 Share Posted October 3, 2017 Each script or script instance handles the PlayerRef as a separate persistent actor for example, keep it in mind. Persistence, as I understand it, is something a reference either has or does not have. Multiple scripts making something persistent just means it's persistent, not that there's multiple copies of it; every variable aside from the literals is a pointer in the back end, anyway. As PlayerRef is definitionally persistent, there should be no harm in permanently storing it in properties or variables. Link to comment Share on other sites More sharing options...
Recommended Posts