MOVETYPE_TOSS and touch event
Hello, I made a code where zombie shots an entity and when a player touches the entity it gives him a green screen while the entity is being in the air, and when there is more than one player in the entity's way only one player gets the green screen.
PHP Code:
|
Re: MOVETYPE_TOSS and touch event
Use a Radius, Use this function and modify, put in to the register touch public
PHP Code:
|
Re: MOVETYPE_TOSS and touch event
Thanks a bunch! Also is it possible to destroy an entity when it travels a certain distance ?
|
Re: MOVETYPE_TOSS and touch event
I dont know about that but you can set a task when spawn the entity and then find a entity by his classname and remove the entity
PHP Code:
|
Re: MOVETYPE_TOSS and touch event
Found a better way. In ent prethink check the distance between the ent owner and the entity and remove it if distance is greater than allowed
PHP Code:
|
| All times are GMT -4. The time now is 09:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.