Hello, I got a movement script that are pushing away a player/tutor (groupid 3 and less) when they are trying to walk on a "gm chair".
But when the player gets pushed away he are just getting pushed north, and to the north of the chair I got a wall and it will look awful without the wall there, so when the player gets pushed then he are stucked in the wall... any way to make so when the player walks on the chair, then he will get TELEPORTED to special cordinate instead of being pushed? Below is the script I got now if you want to look at it. Thanks.
But when the player gets pushed away he are just getting pushed north, and to the north of the chair I got a wall and it will look awful without the wall there, so when the player gets pushed then he are stucked in the wall... any way to make so when the player walks on the chair, then he will get TELEPORTED to special cordinate instead of being pushed? Below is the script I got now if you want to look at it. Thanks.
Lua:
function onStepIn(cid, item, position, fromPosition)
local access = 3
if isPlayer(cid) == TRUE and getPlayerAccess(cid) >= access then
return TRUE
else
doMoveCreature(cid, fromPosition)
end
return TRUE
end
Last edited: