Greetings, I noticed something that I don't know that I would have to add to make it work.
I have a Revscripts type Movements, which I can place position on, without the need to use id, aid or uid.
As you can see in this script, I put wayOutposition.
But instead if I do it with an Action, it throws me an error.
I have a Revscripts type Movements, which I can place position on, without the need to use id, aid or uid.
Lua:
local wayOut = MoveEvent()
function wayOut.onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return false
end
return true
end
wayOut:position(Position(33082, 31532, 7),Position(33082, 31533, 7))
wayOut:register()
As you can see in this script, I put wayOutposition.
But instead if I do it with an Action, it throws me an error.
Code:
local wayOut = Action()
function wayOut.onUse(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return false
end
return true
end
wayOut:position(Position(33082, 31532, 7),Position(33082, 31533, 7))
wayOut:register()