Author Topic: How do I make a gun fire?  (Read 641 times)

Okay, I'm planning to make a weapon. My friend, Pecon7, told me one code: and it was this code:
statefire[] = true;
He then said that I need to go through some fundamentals in programming that I need to learn before I can do a code like that.
Any suggestions?
(I'm using Notepad++, language C#, I got Notepad++ today)

C# is not the correct language to use. Blockland uses Torque.

C# is not the correct language to use. Blockland uses Torque.
Oh, my mistake. But Pecon7 told me it was that, and Notepad++ doesn't have Torque language in it. Anything else?

Oh, my mistake. But Pecon7 told me it was that, and Notepad++ doesn't have Torque language in it. Anything else?
The program you use doesn't really matter much. Notepad++ works just fine.

The program you use doesn't really matter much. Notepad++ works just fine.
Then is C# good enough for Torque, or what? What should I use?

Then is C# good enough for Torque, or what? What should I use?
C# is fine for syntax highlighting. That's what he was referring to.

You code in TorqueScript.

In case you were wondering, there are a few syntax highlighting plugins for Torque Script, available here, created by a fellow blocklander and here.

I don't use Notepad++ so I don't know how to import these, however Greek2Me provided instructions in his post so I'll just quote that:

Quote
- download file
- open Notepad++
- in the View menu, click "User Defined Dialogue..."
- Click Import and select the file you downloaded
- restart Notepad++
- in the Language menu, you should now see a language called Torquescript at the bottom. Select it, and you're ready to go.

As for learning Torque Script, there aren't really many tutorials out there, however there is documentation on the language that you can find here, read through that a couple of times and experiment with the examples ( because there is no better way to learn than practice ;) ).

Then once you're familiar with the languages basics, start reading the code to other add-ons(this is crucial for understanding how to create weapons) written for blockland, experiment with the code to see how changing X effects Y, then once you're familiar with how code works; apply that knowledge in your own projects, starting small and expanding on your idea as you learn more.
« Last Edit: June 18, 2013, 09:57:02 AM by Kadon »