egoninja Posted February 18, 2009 Author Share Posted February 18, 2009 I have already read a couple of scripting tuts and Its still pretty confusing. I use the Total Eclipse flying script and added it into the bottom of my Main.txt, so I wanted to know how to set the script to a hotkey to make the char fly and land…Im just starting out with no scripting experience at all so help is greatly appreaciated! Link to comment Share on other sites More sharing options...
Alster Posted February 18, 2009 Share Posted February 18, 2009 Shouldn't this be in scripting questions…Say what key you want to 'bind'. Link to comment Share on other sites More sharing options...
egoninja Posted February 18, 2009 Author Share Posted February 18, 2009 Well I would want to "bind" the F key obviously for the fly command. Thank you I didnt know there was a scripting questions forum segment. Link to comment Share on other sites More sharing options...
Alster Posted February 18, 2009 Share Posted February 18, 2009 Well I jumped the gun a bit and put in a simple slash command. Not exactly what you wanted but I'm bored. I'll get around to the key bind in a minute…EDIT: I don't know if this'll work in TE... Where's Baron when you need him... I'll give the key bind thing a shot...Put this in```Sub Commands(Index)`````` Case "/flyaway" Call PlayerMsg(Index, "Just a test...", WHITE) 'Paste the flying script here. Exit Sub```Just paste the flying script in there and replace the '/flyaway' with the command you want. And get rid of (or replace) the PlayerMsg. Link to comment Share on other sites More sharing options...
zade_o Posted February 18, 2009 Share Posted February 18, 2009 the keybind needs some source edit too.go to the source and go to frmMirage, then find form_keyUp, add something like this``` If KeyCode = vbKeyF Then Call SendHotScript(5) End If```then go to the main.txtand find sub HotScript and add```case 5 'flying stuff```at the end of all the other cases Link to comment Share on other sites More sharing options...
egoninja Posted February 18, 2009 Author Share Posted February 18, 2009 Actually Slash command could work pretty nicely!And Thanks ghost I'll try that as we'll! Link to comment Share on other sites More sharing options...
Alster Posted February 18, 2009 Share Posted February 18, 2009 I'm probably wrong but if you press the F key wouldn't that type the letter F as well… that'd be pretty annoying... Link to comment Share on other sites More sharing options...
egoninja Posted February 18, 2009 Author Share Posted February 18, 2009 Thats why Im trying your Slash command idea first, right after I do some more spriting Link to comment Share on other sites More sharing options...
zade_o Posted February 18, 2009 Share Posted February 18, 2009 Sorry I fixed it, it should've been VbKeyF.anyways, yes.You'd have to use the mod where you have to press enter to talk.Then it would be```If KeyCode=VbKeyF Then If txtMyChat.visible=false Then SendHotScript(5) End IfEnd If``` Link to comment Share on other sites More sharing options...
egoninja Posted February 18, 2009 Author Share Posted February 18, 2009 Alright, after some adjustments I'll decide which one to use. Link to comment Share on other sites More sharing options...
Xavi Posted February 19, 2009 Share Posted February 19, 2009 I think (but I must admit I know none of VB6) that Ghost's code will make it so that even if you have the text box thing activated, whenever you type F it will still make you fly…not sure though... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now