I don't think I mention this later on, all entities are BRUSH entities.
I've been playing around with a mod that moves entities around by holding your IN_USE key and also has an additional feature that gives information about an entity you're looking at. The problem is, when I stop moving the entity and reset the origin to the original location, the entity for whatever reason is completely unselectable. I've trued changing various things within my code, and when I disable origin changing, it works fine. I was wondering if this was a known bug that someone had experienced before and maybe solved. Also, is_valid_ent(ent) returns 0 still.
I've tried a few different things so far, and I've noticed that the entities only become unselectable when they pass through a func_wall area (I'm using this as a zone for the mod). I've tried leaving them in, dropping them in and taking them out, or just "dipping" them in, all giving me the same results. Thanks for any help/ideas.
I've been able to narrow the problem down to the fact that my "zone" is SOLID_NOT. I am going to try and find a way to make it so that players will interact with it as a SOLID_NOT entity, but the "zone" must be solid to other things. Additionally, the entities when they move back seem to only visually there, not physically (they're non-solid and my plugin doesn't touch their solidity). I also confirmed this by checking the grab and drop solid, movetype and contents of the entity.
Just in case someone else encounters this problem, it turns out that using entity_set_vector(ent, EV_VEC_origin, Float
rigin); does not work correctly. You should use entity_set_origin(ent, Float
rigin); instead
__________________