Move() and ScriptedMove() function. Difference?

Dune 2000

Information and discussion for custom maps and mods.
Post Reply
Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Move() and ScriptedMove() function. Difference?

Post by Adrian »

I found 2 function in Lua API:
Move() and ScriptedMove().

What is difference? In Dune 2000. I cannot understand still.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Re: Move() and ScriptedMove() function. Difference?

Post by Matt »


Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

Re: Move() and ScriptedMove() function. Difference?

Post by Adrian »

Thank you for your reply.
But, excuse me, I am afraid, there is the same text, that I read in Lua-API:
https://github.com/OpenRA/OpenRA/wiki/Lua-API

Actually, I was interested in the next. What does it mean?
"ignoring lane biases"

This is text about ScriptedMove.
"Moves within the cell grid, ignoring lane biases".

I guessed, this was about movement that ignore landscape. Like aircraft.
But, maybe no.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Re: Move() and ScriptedMove() function. Difference?

Post by Matt »

Besides lane bias it also ignores nearby units. I remember it being used for the Tiberian Dawn gun boat in the past, which should always go in a straight line. It is used to unload transport nowadays.

Post Reply