• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Is it possible to change game flooring perspective?

namco

Alienbutserious
Joined
Sep 5, 2010
Messages
148
Solutions
2
Reaction score
38
I am working with top-down sprites and
I want it to work with top-down perspective when you step through floors and not 45º.
I think I'll need to edit both server and client source to change the movement part and the graphical part (not viewing upstairs with 45º perspective)

Normal:
Stairs up - you go x-1; y+1;z+1

Top-down:
Stair up - you go x;
TTfE1fy.png
 
make a movement script:
Lua:
<movevent event="StepIn" actionid="10101" script="stair01.lua"/>

stair01.lua
Lua:
function onStepIn(creature, item, position, fromPosition)
    local pos = creature:getPosition()
    pos.z = pos.z + 1
    pos.x = pos.x + 2
    
    if creature:isPlayer() then
        creature:teleportTo(pos)
    end
    
    return true
end

and put actionID in a stair
 
Back
Top