Code: Select all
switch(FEAT_TRAINS, SELF, switch_battery_charge, current_railtype){
RAIL: -1;
ELRL: 2;
}
item(FEAT_TRAINS){
var battery = 100;
//Repeat the following every unit of time
battery += switch_battery_charge;
}
Moderator: Graphics Moderators
Code: Select all
switch(FEAT_TRAINS, SELF, switch_battery_charge, current_railtype){
RAIL: -1;
ELRL: 2;
}
item(FEAT_TRAINS){
var battery = 100;
//Repeat the following every unit of time
battery += switch_battery_charge;
}
Users browsing this forum: No registered users and 18 guests