fake_touch doesn't work for a weaponbox in the air
So if I call fake_touch on a weaponbox that's in the air it doesn't work.
Here is the code: PHP Code:
Any way to do this? |
Re: fake_touch doesn't work for a weaponbox in the air
weaponbox has owner? Maybe use find_ent_by_class ?
|
Re: fake_touch doesn't work for a weaponbox in the air
When I use find_ent_by_owner when a weapon is in the air it returns the same entity as when the weapon is on the ground, but fake_touch only works if it's on the ground for some reason.
|
Re: fake_touch doesn't work for a weaponbox in the air
https://github.com/s1lentq/ReGameDLL...pons.cpp#L1603
PHP Code:
|
Re: fake_touch doesn't work for a weaponbox in the air
So is there a way of doing this? It doesn't even return a value so we can do it until it's successful...
|
Re: fake_touch doesn't work for a weaponbox in the air
Quote:
|
Re: fake_touch doesn't work for a weaponbox in the air
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.
|
Re: fake_touch doesn't work for a weaponbox in the air
Quote:
|
Re: fake_touch doesn't work for a weaponbox in the air
Yes, but I need it to work even if it's in the air. So if I call it while it's in the air how would I wait for the weaponbox to be on the ground to call fake touch?
|
Re: fake_touch doesn't work for a weaponbox in the air
I'm afraid this is some kind of XY problem. Again, what are you trying to do? And no, the answer is not "touching a weaponbox". What's the purpose of this? In what context you want to force the touch?
|
| All times are GMT -4. The time now is 12:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.