Skip to content

All Comments

981 to 1000 of 19724

Filter comments

The Official Scripting Ask Thread
Scripting

Tried making a different coaster and to use a trigger to change a switch, but I get the same error.

public void onTrainEntering(TrackTrigger trigger, Train train) {
        if (trigger == switchTrigger) {
            transferSwitchOne.setSwitchDirection(0);
        }
    }
Error in File 'Coaster04.nlvm' in Line 38, Column 13: Unknown type: transferSwitchOne
Error in File 'Coaster04.nlvm' in Line 38, Column 13: Unknown symbol 'transferSwitchOne'

It seems to me like it's a problem with onTrainEntering rather than what I try to execute within it. Appreciate any help.

View comment
981 to 1000 of 19724