Hashtag 8670 Share Posted June 14, 2016 Code is no longer here Link to comment Share on other sites More sharing options...
Prison Break 85 Share Posted June 14, 2016 omg nice method for people to use =) Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted June 14, 2016 http://pastebin.com/anXWWrHc Link to comment Share on other sites More sharing options...
Zawy 928 Share Posted June 14, 2016 http://pastebin.com/anXWWrHc http://webcache.googleusercontent.com/search?q=cache%3Apastebin.com%2FanXWWrHc&oq=cache%3Apastebin.com%2FanXWWrHc%C2%A0&aqs=chrome..69i57j69i58.1563j0j4&sourceid=chrome&ie=UTF-8 Link to comment Share on other sites More sharing options...
Dreamlicker 750 Share Posted June 14, 2016 Always good to have more snippets available. It's helpful to comment your code so you can explain to others exactly what is happening as well, especially new scripters Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted June 14, 2016 Thank you for providing the way you code scripts. I will definetely take a look at it! Link to comment Share on other sites More sharing options...
Constuck 13 Share Posted June 14, 2016 Thank you so much! Snippets from more experienced scripters are pure gold for newbies. Link to comment Share on other sites More sharing options...
Mad 86 Share Posted June 14, 2016 private boolean weKnowWhereItIs () { for (int i = 0; i < areaStatus.length; i++) if (areaStatus[i] == 1) return true; return false; } private int indexOfWhereItIs () { for (int i = 0; i < areaStatus.length; i++) if (areaStatus[i] == 1) return i; return -1; } this could just be 1 function, indexOfwhereItIs, you dont need the other 1 Link to comment Share on other sites More sharing options...
Hashtag 8670 Author Share Posted June 14, 2016 private boolean weKnowWhereItIs () { for (int i = 0; i < areaStatus.length; i++) if (areaStatus[i] == 1) return true; return false; } private int indexOfWhereItIs () { for (int i = 0; i < areaStatus.length; i++) if (areaStatus[i] == 1) return i; return -1; } this could just be 1 function, indexOfwhereItIs, you dont need the other 1 Good point! I am not exactly sure why I ended up writing it like that. Anyone who uses this is free to modify and improve the code =) Link to comment Share on other sites More sharing options...
SolarBlaze 0 Share Posted June 19, 2016 I've been using this script and it is great ! I found just one problem, in a specific position of the saltpetre mine it gets stuck because its too far from the mine and then the camera angle can click on it. How do I make the player go closer to the saltpetre in order to prevent this ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.