typlo
  • typlo
  • 50.75% (Neutral)
  • Private Topic Starter
13 years ago
I'm planning to make a map with a train which doesn't move until i put an unit in it (I know how to make it move,but my problem is to make it stand still first). Perhaps I need ini code for this, anyone willing to help me?
Sponsor
acidbrain
13 years ago
You can use a script to stop the train, i used IF True as an example but you can set the heldstatus to true if the train enters an area or something...

*** IF ***
    True.
*** THEN ***
  Set Held status for Unit 'Train' to TRUE.

or you can add "Station" or "Disembark" at the end of a waypointname, for example "Waypoint 1Station" or "Waypoint 1Disembark", it takes some distance for the train to stop if you use the last method.

Beng made a nice tutorial about garrisoning trains, you can find it Here. 
Panem et kirkinses
i^love^mixery
13 years ago
that script does not work for trains, acidbrain.

you will have to use the special held script for trains which is the first script in the "Unit" folder in the list of script actions.
(Set train to stay at a station.)
acidbrain
13 years ago
Yip, you're right mixery.
To be honest i never used a script to stop a train, always use the Station or Disembark method ,so i assumed the script would work, and assuming is the mother of all fack ups...😁
Sry i gave you the wrong info typlo...
Panem et kirkinses
typlo
  • typlo
  • 50.75% (Neutral)
  • Private Topic Starter
13 years ago
thx everyone for help 🙂
goodlewis
13 years ago
Did you get any solution to this???