Please or Register to create posts and topics.

env_entity_maker spawns with offset - solved

In my map, I have a carriable, portalable wall, which consists out of several brushes, prop_dynamics and physboxes. To respawn it, I use a point_template. Unfortunately, the respawn procedure takes place in a dark area, so the wall is not lightened at all. The VDC says (in the point_template article) , if i need to spawn the template at another point than its own origin, I'd need an env_entity_maker.

But when I use one and give it the input "forceSpawn", the wall is spawned not at the location of the env_entity_maker but with an offset. (ca. 256 units).
When I give it the Input "forceSpawnAtEntityOrigin" nothing happens at all, although in this case, the same thing as without the env_entity_maker should happen.

The Aperture Alpha
A map pack coming soon. - click for more information
Image

Did you specify a targetname in the parameters for the forceSpawnAtEntityOrigin?

Coulnd't you move it over? Thats what I did for my bomb dropper.

Devolution wrote:
Did you specify a targetname in the parameters for the forceSpawnAtEntityOrigin?

When I do that, the wall starts with the same offset relative to said targetname.

Of course I could just move the spawn point into the void, then surround it with nodraw to compensate the offset roughly, however that is somewhat guessing and also I'm a perfectionist.

The Aperture Alpha
A map pack coming soon. - click for more information
Image

The env_entity_maker uses the point_template as origin. If the wall is 256 units away of the point_template, the env_entity_maker will spawn it everytime 256 units away from itself. It uses the relative distance of the templated entity and the point_template.

Means: The point_template must be at your entities origin if you want to spawn the entity on the env_entity_makers origin.

Wow. I would have never thought of that. Thank you skotty.

The Aperture Alpha
A map pack coming soon. - click for more information
Image