Results 1 to 10 of 21

Thread: isTouching()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 451 Times in 305 Posts
    So if i'm understanding this right and from looking at the used function.

    You are checking if the player is touching any triggers that is range.
    The difference between 'isTouching' and this new function is that the default 'isTouching' requires you to specify the entity that you want to check.
    PHP Code:
    self isTouching(entity)
    self isUseTouching() 
    The function that you are using is called 'G_TouchTriggers'.
    If i'm right it should return which entity you are triggering at the moment.

    So maybe call the function: 'player getActiveTouchTrigger() or player getCurrentTouchTrigger()' (in case it does return an entity).

    Edit: it doesn't return a entity. But it does notify the entities that someone triggers them.
    Last edited by Mitch; 15th June 2015 at 18:25.

  2. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (15th June 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •