Rinart73 Posted December 8, 2017 Share Posted December 8, 2017 Let's say I want to make a client-side mod, no dependecies on server. I just need to attach the script to the Player, but there is no "addScript" on client side. Any ideas? If this even possible? Link to comment Share on other sites More sharing options...
WSY Posted December 8, 2017 Share Posted December 8, 2017 Are you talking adding to player once in game or adding to the right file so player can invoke whenever? Link to comment Share on other sites More sharing options...
Dirtyredz Posted December 8, 2017 Share Posted December 8, 2017 The most you can do is hook into a vanilla client function and initiate your code from there. You'll be limited in capability if you do it this way. An example of what you want would help me understand. Link to comment Share on other sites More sharing options...
Rinart73 Posted December 8, 2017 Author Share Posted December 8, 2017 I want to create a small client-only mod, which uses GUI (so, there is the main problem I think). GUI requires you to have a script, that is added by "addScript". UPD: And.. to add a button to the right top panel you need to specifically attach script to the entity? I'm not seeing "getIcon()" in player scripts ( Link to comment Share on other sites More sharing options...
Dirtyredz Posted December 8, 2017 Share Posted December 8, 2017 what do you mean by GUI? And yes to get an icon on the top right you need to attach to an entity, i suggest using my shipScriptLoader mod to keep the icon(script) with the player 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