-- let's create the function which sets the position of displayed text
function setTextPosHook(text)
-- if text owner is a character then...
if text:getLink(VTextOwner):getId().tableId == eCharacters then
text:setValue(VTextPosition, {x=545, y=260})
return true
end
end
-- let's create the event listener for handling position of displayed text
registerHookFunction("setTextPosition", "setTextPosHook")
comment. There is no doc for how to use this piece of code. For example, <p2> = 2 secs, but what is <pa>?
It also intrigues me why Display text has to be set through scripting when the developers could quite have easily put command buttons like when you place a character. Click on the button and place my Display text there. Simples.
Many thanks once again.