A problem with point_servercommand
the point_servercommand entity seemed to be a nice way to issue a bind command for a ent_fire which would then trigger the logic_relay. However, it won't work. I suspect a problem with the syntax of my output (on a logic_auto for binding on mapspawn). Heres what the output looks like:
**
onMapSpawn
@servercommand
command
bind v ent_fire relay01 user1**
I'd greatly appreciate some help.
Sindri
But binding keys in a map is a bad idea. They'll override players' custom bindings, and be applied permanently. If another map features a @relay01 it will also be triggered by pressing v, even if v used to be the player's binding for (in my case) removing and replacing the portal gun if something goes wrong.
Try using a logic_playerproxy or a game_ui instead, those are Hammer methods for essentially binding keys that will work across platforms.
FelixGriffin wrote:
Try using a logic_playerproxy or a game_ui instead, those are Hammer methods for essentially binding keys that will work across platforms.
Thanks, I'll look into those and stop bothering about my servercommands (the @ doesn't solve the problem ...)
Sindri
Second of all your command is wrong;
it should be
Quote:
bind v 'ent_fire @relay01 trigger'
Note that the whole command is in quotations; that's what you're binding v to. 
Anyways have a nice day
Oh fiddlesticks woops I was totally wrong here; as said below NEVER USE ", use ' instead.
Sindri