env_entity_maker spawns with offset - solved

Avatar
Brainstone
401 Posts
Posted Aug 12, 2012
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.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Devolution
8 Posts
Posted Aug 12, 2012
Replied 1 hour later
Did you specify a targetname in the parameters for the forceSpawnAtEntityOrigin?
Avatar
Alexander Bell
306 Posts
Posted Aug 12, 2012
Replied 19 minutes later
Coulnd't you move it over? Thats what I did for my bomb dropper.
Avatar
Brainstone
401 Posts
Posted Aug 12, 2012
Replied 23 minutes later

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.

Avatar
Skotty
671 Posts
Posted Aug 12, 2012
Replied 14 minutes later
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.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Brainstone
401 Posts
Posted Aug 13, 2012
Replied 1 day later
Wow. I would have never thought of that. Thank you skotty.