Strange Cube Spawn
Posted Aug 10, 2011
I am trying to spawn a cube in a vertical shaft. I would like the cube to spawn in the middle of the shaft and just above the floor. I place the spawner accordingly, but when it triggers the cube will always spawn in one of two corners. The cube does spawn (if incorrectly) so I don't think space is the problem. In case one of the other objects in the shaft is interfering I have tried placing the spawner up in some of the empty sections of the shaft, but the cube still spawns in a corner. If I move the spawner into the corridor next to the shaft the cube will spawn normally, where I place the spawner. Any idea why this happens and how I can fix it?
Registered users don’t see ads!
Register now!
Posted Aug 10, 2011
Replied
30 minutes
later
I don't know what to tell you, unless I saw the vmf.
Posted Aug 10, 2011
Replied
10 minutes
later
Valve uses a set of angled surfaces near the bottom of their shafts to straighten cubes up. You could try a similar solution, but have this angling surface near the cube spawn, the have it continue funneling through a tight shaft, as it goes into the main shaft. (putting it near bottom like valve does, the cube still ends up tumbling around potentially)
Registered users don’t see ads!
Register now!
Posted Aug 10, 2011
Replied
5 hours
later
Alright, I figured it out after some further experimentation. I wanted to spawn the cube in a particular orientation, and apparently messing with the roll/pitch/yaw settings changes its spawn position in relation to the spawning entity. I just needed to adjust where I placed my spawner, so after a bit of guesswork I figured out where it needed to be (inside a wall) to spawn the cube in the right spot. Still, thanks for the help guys!