Raised This Month: $ Target: $400
 0% 

fake_touch doesn't work for a weaponbox in the air


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-08-2018 , 07:15   Re: fake_touch doesn't work for a weaponbox in the air
Reply With Quote #1

Quote:
Originally Posted by sekac View Post
I mean it doesn't return 1 if it is successful and 0 otherwise. Touching a weaponbox in the air is not my intention, but often when I call fake_touch it fails because it's in the air and I want to fix that.
Then simply check if it's on ground before calling fake_touch(pev_flags & FL_ONGROUND).
__________________

Last edited by HamletEagle; 07-08-2018 at 07:15.
HamletEagle is offline
Reply



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 12:43.


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