Raised This Month: $ Target: $400
 0% 

block player touch (distance)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-12-2011 , 11:21   Re: block player touch (distance)
Reply With Quote #5

So you want to limit players from getting close to eachother ?

If you like it to be more awesome and feel like something that magnetically/magiacally rejects you, you should set velocity on the player, in the opposite direction.
You'll need to get direction from player to protected player (NOT player's moving direction), and multiply it by the negative direction, clamp it so it doesn't shoot players like bullets nor be too weak.
__________________
Hunter-Digital is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode