Entities
Hello, i need help again.
I need to check if entity with class func_wall is in another entity with class func_wall and if it is, i need to know (return) both entities ids. It's for basebuilder mod. Like some player moved entity func_wall to gates(func_wall, name: barrier) and when it touches gates - remove moved entity. |
Re: Entities
I would try it with Ham_Touch.
|
Re: Entities
Ok, i'll try it.
And what about this? Not at home till Sunday, can't check. register_forward(FM_Touch, "fwdTouch"); |
Re: Entities
Would be better to use register_touch with "func_wall" classnames.
|
Re: Entities
Nothing (ham, fm, engine) can register func_wall touch func_wall.
Fakemeta: Code:
register_forward(FM_Touch, "fwdTouch")Ham: Code:
RegisterHam(Ham_Touch, "func_wall", "hamTouch_wall")Engine: Code:
register_touch("*", "*", "engine_touch") or register_touch("func_wall", "func_wall", "engine_touch")I'm in dispair. |
Re: Entities
are you sure both are entities and both classes are func_wall ?
|
Re: Entities
Yes, i'm sure. When player touches entity it's registered in log and it doesn't matter, which method i use.
|
Re: Entities
func_walls may not "touch" other entities. you could check mins/maxs of all func_walls when one func_wall is moved.
|
Re: Entities
Quote:
|
| All times are GMT -4. The time now is 11:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.