Please or Register to create posts and topics.

Having trouble with point_clientcommand

I am trying to make a map with changing gravity by having a linked_portal_door on the ceiling of two rooms, and using the console command "sv_gravity -150" to fly through to the second room, and then "sv_gravity 600" once you reach the second room, to give the illusion that your walking on the ceiling. All of this works perfectly when I enter the commands by hand, but I can't seem to get the point_clientcommand entity to work.

I noticed that you cant jump without the gravity being at 600, and that the change in gravity wont apply to you until you enter a situation where gravity would need to be applied (like during a jump). So I am using a trigger_multiple on the floor of the room to OnEndTouch have the point_clientcommand use the command sv_gravity -150. That way the gravity will be changed when the player jumps (and is no longer touching the floor.

But when I load up the map and jump, nothing happens. How do I fix this?

(I would attach the map so you can better understand but I am new to the forum and don't know how to do this.)

Use a point_servercommand, not a point_clientcommand.

Falsi sumus crusto!

Ok now the game freezes for a second when i jump for the first time, and then nothing different happens.

use push triggers instead, my Mod Back-Stock uses gravity changing a few different times in a few different ways, but I never change the sv_gravity



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps

What parameters did you use? Its not working very well for me.

What about Trigger_Gravity?

Thanks for the help, I have now been able to get both trigger_push and trigger_gravity working. You guys are awesome!
But just out of curiosity why didn't the point_clientcommand/servercommand work? What if I wanted to use other commands like timescale in the future?

then use client command then use the command option with the parameter of the thing you would type in the console, dont include quotes.



Also, I made a map just for you! Sunset
Click Here to view my Workshop and play my puzzlemaker maps

well yes, the entire point of this post is that just doing that doesnt work for me. ( i never included the quotes im not entirely sure why i typed them back there )