script help

Tranthor

2009-08-24 05:42:57

Hi there,

I am trying to make a script that will repeat over and over as long as I hold down the bound key. It's not for this game, it's for a sourcemod, but i figured this was the best knowledge-base around.

I want to set an alias, call it "action1"
that alias performs 4 or 5 things, like so "+something; +differentthing; -something; -differentthing; +anotherthing; +somemorecrap; -anotherthing; -somemorecrap"
or something along those lines. They are all + or - actions for example +attack, +duck, etc.

if I bind a key to "action1", what do I need to put where to make those actions repeat as soon as the last one happens? Is this even possible?

Thanks,
Tranthor the space hippo

keefy

2009-08-24 16:32:45

I think you need to put all the pluses in one alias adn all the minuses in another e.g

alias "+duckjump" "+jump; wait; +duck; +attack"
alias "-duckjump" "-jump; -duck; -attack"

You wont continually jump (+jump doesnt work like that) but you do stay ducked and keep firing until you let go of the binded key.

Tranthor

2009-08-24 23:27:10

it's not actually with duck and jump

also, I want it to stop doing THE FIRST action before the THIRD action stops, etc. like the example shows, i want to to repeat through doing and undoing the actions in that order.

don[t think it's possible