Portal spawning?

Avatar
yohoat9
274 Posts
Posted Sep 07, 2010
I'm working on my first good map (with audio, more than one test chamber, etc) and I'm trying to have you start off with no portal gun, but how to you toggle a prop portal on and off?
Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted Sep 07, 2010
Replied 1 hour later

http://developer.valvesoftware.com/wiki/Prop_portal

Just use normal I/O to enable and disable a prop_portal.

Avatar
yohoat9
274 Posts
Posted Sep 07, 2010
Replied 41 minutes later
also, an off topic question relating to the map I'm making, I'm trying to make just one cube anti gravity, so it sits still in the air, but you can still move it, how would I make it apply to only one cube?
Avatar
msleeper
4,136 Posts
Admin
Posted Sep 07, 2010
Replied 8 minutes later

http://developer.valvesoftware.com/wiki ... vator_name

Name the single cube a unique name, and then set the filter_activator_name to the targetname of the single cube in question. Then for your func_vphysics brush, have it use the name of your filter_activator_name.

Avatar
yohoat9
274 Posts
Posted Sep 08, 2010
Replied 18 hours later
thanks, I kept trying to use a trigger_gravity with the filter_activator_name but it wasn't working, I didn't know you had to use something else
Avatar
yohoat9
274 Posts
Posted Sep 08, 2010
Replied 4 minutes later
wait, a func_clip_vphysics? or a trigger_vphysics_motion?
Avatar
msleeper
4,136 Posts
Admin
Posted Sep 08, 2010
Replied 1 hour later
Sorry, I meant trigger_vphysics_motion. I rarely if ever use that entity so I always think it's a func_.

At least, that's how I would do the reverse gravity. It's not "gravity" and just a physics force, but in theory it should work/function the same way. If trigger_gravity works for you then go for it, but I didn't think that worked on physics objects.

And as always, make sure the brush entity's flags are set properly. Disabled clients, enable physics objects, etc. If you still have problems, post a VMF of the room and I'll look at it.

Avatar
yohoat9
274 Posts
Posted Sep 08, 2010
Replied 32 minutes later
yeah, I can't seem to filer out just that brush, this coffee mug is the only thing that's floating, I can't even get the cube to float at all!
Avatar
msleeper
4,136 Posts
Admin
Posted Sep 08, 2010
Replied 1 minutes later
Post a screenshot of the entity settings for both the filter and the trigger_vphysics, and any I/O you have going on.
Avatar
yohoat9
274 Posts
Posted Sep 08, 2010
Replied 9 minutes later
Your kidding me, I've been trying this all day and when I went to try the map again it worked, wow...

well thanks for telling me about the trigger_vphysics_motion, it works now!

Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted Sep 08, 2010
Replied 49 minutes later
Any time.