Results 1 to 10 of 21

Thread: isTouching()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 451 Times in 305 Posts
    Quote Originally Posted by filthy_freak_ View Post
    Honestly I didn't even know there was a isTouching() function until after I posted this thread. Made the above method so that my sprint does not clash with stock weapon pickups. You can also block bots from picking up weapons/using turrets with a little tweaking.
    Wouldn't it be more effective and useful to hook the call/function that is responsible for picking up weapons?
    Then with a libcod function you can set if the player is allowed to pickup weapons or not.

    Like this
    PHP Code:
    player enableWeaponPickup();
    player disableWeaponPickup(); 
    Last edited by Mitch; 16th June 2015 at 13:35. Reason: added function example (suggestion) and added '?'.

Posting Permissions

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