Is There Any Way To.....
attrition
Join Date: 2004-10-13 Member: 32242Members
<div class="IPBDescription">Can this be scripted?</div> Is there anyway to have a script set up so it does the +use command over and over again without me having to press anything? So I could like just look at the button when I’m close enough to use it? I think that something like this would be handy but I’m not sure if it is possible without using the _special command and I’m not sure if that is disabled or not.
Oh, and if this is in fact possible maybe there should be a toggle to turn it on and off so that you don’t trip stuff accidentally (like when you are sieging bio and don’t want the elevator to go down).
Also... I was just thinking about this a little bit and wouldnt it be posible to loop through seperate .cfgs? Like have it do the command so many times in one config then have the last command in the file go exec configlooppart2 then repeat the commands again and end that with exec configlooppart1? Then you could have a simple bind to exec configlooppart1 and start the loop that way?
The only confilict I see with this is I dont know how you would stop it again unless you designed a counter in there somewhere to stop it after a while?
Would something like that crash the game?
Oh, and if this is in fact possible maybe there should be a toggle to turn it on and off so that you don’t trip stuff accidentally (like when you are sieging bio and don’t want the elevator to go down).
Also... I was just thinking about this a little bit and wouldnt it be posible to loop through seperate .cfgs? Like have it do the command so many times in one config then have the last command in the file go exec configlooppart2 then repeat the commands again and end that with exec configlooppart1? Then you could have a simple bind to exec configlooppart1 and start the loop that way?
The only confilict I see with this is I dont know how you would stop it again unless you designed a counter in there somewhere to stop it after a while?
Would something like that crash the game?
Comments
No. It cannot be scripted due to scripting not being capable of executing an infinite command, and still allowing you to further perform other commands. Also, it would slow you down greatly, because that's what +use does.
As for the second part:
You cannot jump between configs due to exactly what you've mentioned. I've tried it in the past MANY different ways. When one config executes, it instantly executes the other.. then back and forth, permitting no further keys to be used. It basically just locks you up until you restart NS. Also, no -alias would be executed, and it would be necessary to have for the bindings.
alias useoff "-use;bind <usekey> useon"
bind <usekey> "useon"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
so if you want to be able to run to a building, stop, and automatically build it, thats possible...
I forgot about the +use thing, I was thinking they took that out (but i guess thats only in dod and cs for accuracy reasons).