Hook an entity's touch of ground
Hey. I would like to know that how can we hook the event in which an entity touches the ground.
I know that it can be done by using Code:
register_touch(...)But what is the entity-name of the ground, i don't know that. So please help. |
Re: Hook an entity's touch of ground
I think you can do
PHP Code:
|
Re: Hook an entity's touch of ground
What about FL_ONGROUND?
|
Re: Hook an entity's touch of ground
Quote:
And about Code:
|
Re: Hook an entity's touch of ground
Instead of asking, why don't you test it yourself?
|
Re: Hook an entity's touch of ground
I am away right now. Testing would be possible only after a few days.
|
Re: Hook an entity's touch of ground
PHP Code:
|
Re: Hook an entity's touch of ground
@Xalus, you don't get what he is asking. If this is what I think, it's for his last plugin, when he force a drop on the weapon and he needs to remove the dropped weapon ent. Also, he is asking how to hook touch for an entity with unknow classname, which is impossible. So, instead of asking this question, explain what's your real problem so we can give you the best way.
|
Re: Hook an entity's touch of ground
Quote:
I am asking for a new plugin |
Re: Hook an entity's touch of ground
Quote:
|
| All times are GMT -4. The time now is 17:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.