Bot using transports

I need some help please

Information and discussion for custom maps and mods.
Post Reply
Yoghurt
Posts: 24
Joined: Wed Apr 07, 2021 11:49 am

Bot using transports

Post by Yoghurt »

Hello, I'm trying to set up a bot so it will use transport helicopters and vehicles to transport infantry units. Is there a way to achieve this, maybe by using LUA script?

Thanks in advance

abcdefg30
Posts: 643
Joined: Mon Aug 18, 2014 6:00 pm

Re: Bot using transports

Post by abcdefg30 »

Hi. Yes, it is doable using Lua. You'll have to send the actors to the transport using the "EnterTransport" function on them (see https://docs.openra.net/en/release/lua/#movement ). Then you can move the transport and unload the passengers ("UnloadPassengers" on the transport, see https://docs.openra.net/en/release/lua/#transports ).

Post Reply