Jump to content

help me, please. I want a position for bind


Recommended Posts

Posted

no, I just want it to be activated from a certain position

 

ex

 

if (x, y, z)
  bind(..)
  return
end

I apologize, I don't know the functions so well.

Posted (edited)
myZone = createColSphere (2490, -1668, 12.5, 25)

function dimensionCheckerEnter(theElement, matchingDimension)
    if matchingDimension then 
  bindKey("H", "down", dxGuiTeleport)
   end
end
addEventHandler ("onClientColShapeHit", myZone, dimensionCheckerEnter)

function dimensionCheckerLeave(theElement, matchingDimension)
    if matchingDimension then 
  unbindKey("H", "down", dxGuiTeleport)
  end
end
addEventHandler ("onClientColShapeLeave", myZone, dimensionCheckerLeave)

 

Edited by Hydra
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...