|

How do I load bunkers with a Script? I know I need to have a location over the bunker and units I want to load the bunker with.
The 'Enter Closest Bunker' script is in the 'RUN AI SCRIPT AT LOCATION' action. Make a bunker and what you want to go into the bunker, with a location over them. Then:
CONDITIONS:
-Elapsed time at least 0 game seconds.
ACTIONS:
-Execute AI script 'Enter Closest Bunker' at (location). -- (Using 'RUN AI SCRIPT AT LOCATION')
(Zeramid)
(OR)
As stupid as it may sound, you can use the AI script 'Enter Transport' to load Bunkers. Run the above exactly the same, but substitute 'Enter Transport' for 'Enter Closest Bunker'. In this case it doesn't really matter which you use. But you can also use 'Exit Transport' to empty a bunker, whereas there is no 'Exit Closest Bunker' script.
(dagesi)

Indexes
· AIs ./ Bunkers / Loading / Scripts / Units |