hmm...
-- examples of getting a character with Lua...
game:getLink(VGameCurrentCharacter) -- get current character...
getObject("Characters[character name here]") -- get linked character
function: add script as a definition script...
-- * local variables * --
local char, pos
-- * function for getting character position * --
function setCharPos()
char = game:getLink(VGameCurrentCharacter) -- get current character
pos = char:getPoint(VCharacterPosition) -- stores character position into an x,y table
-- * --
char:setValue(VCharacterPosition, {x = pos.x - 50, y = pos.y)
end
usage: create an execute a script action and add:
This is just a crude example.
Just out of interest... wouldn't it be simpler to just change to an outfit where the character walk cycle contains the character laying down/sliding & just use that to move character to x destination?
P.S: an issue I see with what you are wanting to do:
* you have to take into consideration the characters current scale as the gap between point a & b would need to be less the further away the character is.