Just a quick question.. for one of my custom maps I have a few triggered doors.. I'd like to open one with rcon. Is this possible?
I have a door,
Classname: trigger_use
target: uks1
Is there something I could do just server-side to make it triggerable through rcon?
trigger door with rcon
Moderator: Moderators
I want it triggerable with rcon.. can you be a little more specific? I'm a n00b at some of this.Viper wrote:you want to make it triggerable with rcon or u want to open it with rcon?
if you want it triggerable after an rcon command put the trigger in a while loop and after an if(cvar).
*edit*
It's triggered to open with a button.. but I want to be able to open it with rcon, if possible. Is there a command I can put it in or do I have to script that?
I don't mean to be a pain..
Does anyone get what I'm saying, or must I elaborate further? (not trying to sound mean)
I have a secret door. It's only openable from the inside via a switch on the wall. BUT; I want to open it from the outside, but have no existing button on the outside. So only administrators can open it [with rcon]. It's hard to describe things when you know what you want to other people.. my brain "fills in the blanks" sometimes.. I hope this helps.
Does anyone get what I'm saying, or must I elaborate further? (not trying to sound mean)
I have a secret door. It's only openable from the inside via a switch on the wall. BUT; I want to open it from the outside, but have no existing button on the outside. So only administrators can open it [with rcon]. It's hard to describe things when you know what you want to other people.. my brain "fills in the blanks" sometimes.. I hope this helps.
Yes, I know. I have switches all over the place.. people find them and lock themselves in rooms.. just wondering if there was a way to use rcon to open one of those doors 
It's an exclusive map for us to toy around in.. I'm just adding a few improvements today and was hoping I could find a way to do this
It's an exclusive map for us to toy around in.. I'm just adding a few improvements today and was hoping I could find a way to do this
I think you can make a door open with script not sure at the moment how though $door open maybe ? I know you can make a script_origin and then use $SO douse $mydoor and it maybe possible to use that with a trigger also or it maybe as simple as $mytrigger trigger . In the sdk is says
open( Entity other )
Opens the door.
play with that maybe you will get the right syntax
open( Entity other )
Opens the door.
play with that maybe you will get the right syntax
the quickest way that comes to mind for me is setting a cvar that auto-resets itself, and when the rcon user hit it for it to firethe door.
make the door open by doing
it switches back automatically.
it's not good for multiple doors to have this, since you have to wait manually and this'll slow down your game a bit, but if it's just one door.
Code: Select all
watchDoor:
while(1)
{
if(getcvar(rconDoor) == 1)
{
$door open
wait 5
$door close
$door lock
setcvar rconDoor "0"
}
wait 1 // long wait time, this is intentional since in MP scripts cause a lot of lag if used improperly
}Code: Select all
rcon rconDoor 1it's not good for multiple doors to have this, since you have to wait manually and this'll slow down your game a bit, but if it's just one door.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006

