+void set_platmovetype(entity e, string s)
+{
+ // sets platmovetype_start and platmovetype_end based on a string consisting of two values
+ if(s == "")
+ return;
+
+ float n;
+ n = tokenize_console(s);
+ e.platmovetype_start = stof(argv(0));
+ e.platmovetype_end = stof(argv(0));
+ if(n > 1)
+ e.platmovetype_end = stof(argv(1));
+}
+
+void spawnfunc_path_corner()
+{
+ // setup values for overriding train movement
+ // if a second value does not exist, both start and end speeds are the single value specified
+ set_platmovetype(self, self.platmovetype);
+}