• 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!

RevScripts LEVER QUEST CHECK AREA

paulvzla

New Member
Joined
Jun 20, 2015
Messages
23
Reaction score
4
Hello im looking for a revscript so i can use it on some custom quests that im making

Lever actions:
  • Check Room Quest if theres people you cant use the lever.
  • 1 to X Players get teleported to a location inside the quest.

i believe its related to this function

local function getSpectators(onlyPlayers)
if not config.centerPosition then
config.diffX = math.ceil((config.bossArea.toPos.x - config.bossArea.fromPos.x) / 2)
config.diffY = math.ceil((config.bossArea.toPos.y - config.bossArea.fromPos.y) / 2)
config.centerPosition = config.bossArea.fromPos + Position(config.diffX, config.diffY, 0)
end
return Game.getSpectators(config.centerPosition, false, onlyPlayers, config.diffX, config.diffX, config.diffY, config.diffY)
end


Thank You for reading!
 
Back
Top