Blockland Forums > Modification Help
Weapon "Damage Type" error
<< < (2/3) > >>
Glitchman365:
-snip, uneeded post-
Amade:
Okay look. None of us really care what you're making or are going to steal the idea. If you don't give us the actual script we're not going to be able to help you. The syntax error appears to be caused by the weapon's name which likely includes a symbol that torquescript can't process correctly.
Glitchman365:
Fine. I'm making an Ar2, I just don't want a bunch of noobs running in here and saying "OMG UR MAKIGN A AR@ I WANTED THAT SO MUCH".

Full script at the top now.
I have a server.cs which is only "exec(Weapon_Ar2.cs);" as well as a description and namecheck.
Sniper4hire:
You forgot the ";" at the end of:

--- Code: ---datablock AudioProfile(Ar2ReloadSound)
{
   filename   = "ar2_reload.wav";
   description = AudioClose3d;
   preload      = true;
} <<need a ; here
--- End code ---
Space Guy:
The filename for Ar2ReloadSound should be "./ar2_reload.wav" so that it loads correctly; otherwise it's looking in your base Blockland folder instead of where your mod is located.
Navigation
Message Index
Next page
Previous page

Go to full version