Help with TF2 Class Specific Script

I am creating a script to rebind my keys for the engineer, I have everything setup but cannot for the life of me figure out the command that needs to be used to get the engineer to rotate the sentry, dispenser, entrance and exit. If someone would be so kind as to inform me how to do this I would be greatly impressed. Also if anyone know a good site that has a list of class commands that would be even better.

As of right now I have the following:

//rotate
alias "+rotate" "+attack2;"
alias "-rotate" "-attack2;"

bind "x" "+rotate"

Click to expand...

edit: I guess this works are the hotkey to pickup as well, so I would've thought it would've been attack2 but for some reason it just isn't working.

edit edit: nvm, I figured out the issue, had nothing to do with the command used, accidentally had the key unbinding at the end of the script.