I am new to scripting in NL2 and I still have the demo version and I am trying to start using the Classes.
I wanted to use getSpeed() method from Train Class but still did not get it
Code: Select all
import com.nolimitscoaster.*;
import com.nolimitscoaster.Train;
public class Speedata extends Script
{
private static final double Trainspeed=0 ;
public void onNextFrame(float tick)
{
Trainspeed = Train.getSpeed();
System.out.println(Trainspeed);
}
}
Can any one help me getting that?
Thanks