Jump to content
  TPR Home | Parks | Twitter | Facebook | YouTube | Instagram 

TronicBrain

Members
  • Posts

    2
  • Joined

  • Last visited

TronicBrain's Achievements

Newbie

Newbie (1/14)

  • First Post

Recent Badges

0

Reputation

  1. Thank you very much for calcification, I could do many things now , my fault also was in Indexing the Train. One more question, How can I access TrackPos class, There is no object called TrackPos I tried to access its methods directly but had this error message MyTrackPosMat = TrackPos.getCenterRailsMatrix(); Trying to access a non static method from a static context: getCenterRailsMatrix ...1 error(s), 0 warning(s) Thanks
  2. Hello everyone, Very happy to find such a place regarding NL game, I have just started discovering scripting in NL2 and still trying to do basic things but need a little push from you. For Example I tried to display the Train Speed by using Train.getSpeed() but I could not reach this till now this is my code which is not working import com.nolimitscoaster.*; import nlvm.math3d.*; import nlvm.lang.*; public class husam extends com.nolimitscoaster.Script { private SceneObject sco; private double myTrainspeed; Coaster MyCoaster; Train MyTrain; public bool OnInit() { MyCoaster = sim.getCoasterForEntityId(getParentEntityId()); if (MyCoaster = null) { return false;} MyCoaster = sim.getCoaster("Coaster1"); MyTrain = MyCoaster.getTrainAt(1); return True; } public void onNextFrame(float tick) { myspeed = Train1.getSpeed(); System.out.println(myspeed); } } Any Push would be appreciated Thanks
×
×
  • Create New...

Important Information

Terms of Use https://themeparkreview.com/forum/topic/116-terms-of-service-please-read/