• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

SOLVED// C++ isMounted(mountId)

silveralol

Advanced OT User
Joined
Mar 16, 2010
Messages
1,484
Solutions
9
Reaction score
217
Hi, how the title says, I need a function that check if the player is using some mountId, to make a little system to players don't use certain mounts underwater
thanks in advice ;)
 
Try this
Code:
local mountId = {}
local tiles = {}
function onStepIn(creature, item, position, fromPosition)
    if creature:isPlayer and isInArray(tiles, getTileThingByPos(position).itemid) then
        local outfit = creature:getOutfit()
        if isInArray(mountId, outfit.lookMount) then
            outfit.lookMount = 0
            doSetCreatureOutfit(creature, outfit, -1)
        end
    end
    return true
end
 
Back
Top