Player touches my entity - how to detect?
All right, code:
PHP Code:
PHP Code:
|
Re: Player touches my entity - how to detect?
register_touch("myent", "player", "YourFunction")
Then you won't have to filter through info_target and through toucher ents. If nothing is triggered, see your ent properties. set_pev(ent, pev_owner, id) MAY prevent id from touching it for example. |
Re: Player touches my entity - how to detect?
You also need to spawn the entity for the touch to trigger.
|
Re: Player touches my entity - how to detect?
SOLID_SLIDEBOX -> SOLID_TRIGGER solved problem.
Quote:
|
| All times are GMT -4. The time now is 15:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.