| Blockland Forums > Suggestions & Requests |
| Train Mod |
| << < (6/6) |
| GreenBH:
--- Quote from: shafin25 on November 18, 2009, 05:13:09 AM ---Go single player. He won't go through his sciript just to see oen little problem. He doesn't have time always GreenBH. --- End quote --- I can go single player, but what I mean is that I'll ride a train with an admin, and see if the admin can turn it. |
| RFW2:
you could make events like: ontraintouch-turn-<angle> |
| Kalphiter:
http://blockland.kalphiter.com/add-ons/files/Vehicle_Train_Box/Support_objects.cs --- Code: --- function serverCmdAlignTrain(%client, %dir) { %player = %client.player; %mount = %player.getObjectMount(); if(isObject(%mount) && %mount.getDataBlock() == BoxTrain.getId()) { if(%mount.getControllingClient() == %client) { if(%dir $= "n" || %dir $= "north") %mount.setTransform(%mount.getPosition() SPC "1 0 0 0"); else if(%dir $= "e" || %dir $= "east") %mount.setTransform(%mount.getPosition() SPC "0 0 1" SPC $piover2); // "0 0 1 90" else if(%dir $= "w" || %dir $= "west") %mount.setTransform(%mount.getPosition() SPC "0 0 -1" SPC $piover2); else if(%dir $= "s" || %dir $= "south") %mount.setTransform(%mount.getPosition() SPC "0 0 1" SPC $pi); else messageClient(%client, '', "You must use a direction. Example: \c6West \c3or \c6W"); } return; } } --- End code --- |
| Navigation |
| Message Index |
| Previous page |