Page 1 of 1
Bot using transports
Posted: Wed Feb 22, 2023 9:57 pm
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
Re: Bot using transports
Posted: Thu Feb 23, 2023 9:06 am
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 ).