Pondaman Posted February 10, 2009 Share Posted February 10, 2009 I just can't get this script to work as I want it to.It is ment for the player to gain a perk when the player picks up an item. scn PDB01SCRIPT BEGIN OnAdd player AddPerk ChildAtHeart ShowMessage PDMON01 END BEGIN OnDrop player RemovePerk ChildAtHeart ShowMessage PDMOFF01 END The message displais as it should, both on and off, but the AddPerk and RemovePerk lines doesn't do anything. As far as I can tell that is. Does anyone know what's wrong? Link to comment Share on other sites More sharing options...
Chambermade Posted February 10, 2009 Share Posted February 10, 2009 Try the following: BEGIN OnAdd player Player.AddPerk ChildAtHeart ShowMessage PDMON01END BEGIN OnDrop player Player.RemovePerk ChildAtHeart ShowMessage PDMOFF01END Link to comment Share on other sites More sharing options...
Pondaman Posted February 10, 2009 Author Share Posted February 10, 2009 Yeah, that did the trick. Thank you! :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.